Changes

Jump to: navigation, search

Mobile/Fennec/Extensions/BestPractices

832 bytes added, 20:17, 23 May 2009
no edit summary
* Do not add buttons to the URLbar
* Minimize your extension's UI to the point of making it almost invisible
* (TODO: Add more places for extensions to add UI)
== Use Less Dialogs and Popups ==
** If your dialog has more than one label, one form control and three buttons, you lose.
* Use Alerts to notify the user that some event has happened.
* nsIPromptService and nsIAlertsService are overridden in Fennec. Use them the same way you would for Firefox.
* Avoid <code>window.open</code> and <code>window.openDialog</code> for displaying dialogs. Instead, use boxes in the main browser stack to display your dialog as a panel (TODO: Add sample and tutorial).
 
== Do Not Use Context Menus ==
Context menus, as used in desktop Firefox could never create a good experience in Fennec. The Fennec UX and Front-end teams are working on a solution. Currently, we recommend not using context menus in your extensions.
 
== Blend In ==
Whenever possible, please use the CSS styles shipped with Fennec to allow your extension to blend into the rest of the application.
* (TODO: Add blanks for buttons)
* (TODO: Add sample and tutorial)
== Assume Nothing is Safe ==
Canmove, confirm, emeritus
2,798
edits

Navigation menu