background preloader

Addon Firefox restartless

Facebook Twitter

Repagination/bootstrap.js at master · nmaier/repagination. Add-ons Sync Prefs: A Restartless Add-on for SeaMonkey 2.8. Ever since I ported Sync to SeaMonkey (2.1), the list of supported engines had been fixed: Bookmarks, History, Passwords, Preferences, and Tabs. With Firefox 11, the Sync developers added a new engine capable of syncing add-ons (or more precisely, which add-ons are installed). Since the Sync back-end is shared code, SeaMonkey 2.8 will include it, too. But while Firefox 11 will include UI for activating the new Add-ons engine, SeaMonkey 2.8 will lack it.

This is because the Firefox changes landed pretty close to the l10n freeze so we were not able to port them in time. SeaMonkey 2.9 will include the UI changes, but why wait so long? On January 31st, SeaMonkey 2.7 will be released (well, that's the plan). A few days later, the first beta of SeaMonkey 2.8 will follow. Now I was wondering what the SeaMonkey developers could do to allow users of SeaMonkey 2.8 (on aurora, beta or release) to enable/disable the Add-ons Sync engine through preferences UI.

Labels: addons, restartless, sync. Document.loadOverlay. Summary Loads a XUL overlay and merges it with the current document, notifying an observer when the merge is complete. Syntax document.loadOverlay(url, observer); url A string containing the absolute URL of the overlay to load. observer An object implementing nsIObserver that will be notified with a message of topic "xul-overlay-merged" when the merge is complete, or null if no observer is needed. Notes This API is not frozen and may change later. Subsequent document.loadOverlay calls do not work bug 330458.

Loading an overlay with the same URI twice is not currently supported, although it may work sometimes. Note: Starting in Firefox 3.5, overlays that include script elements that import their code from anything other than chrome: URLs will fail to import the scripts; this is a fix for a security issue. Specification XUL-specific method. Document Tags and Contributors. Adblock Plus and (a little) more: How many hacks does it take to make your extension install without a restart? How many hacks does it take to make your extension install without a restart?

· 2010-09-10 15:50 by Wladimir Palant Dave Townsend did some really great work on the add-on manager recently, he managed to completely rewrite the old crappy backend code and replace it with something far more sane. Along the way a new feature was added: starting with Firefox 4 some add-ons should be able to opt-in and install/uninstall without requiring a browser restart. This feature was primarily meant for JetPack-built extensions but is generally open to all other extensions as well. Catch 1: No XPCOM components. At this point my hack-o-meter exploded and, as you all well know, programming without a functional hack-o-meter isn’t safe. Tags: adblock plus gecko Commenting is closed for this article.

Restartless tutorial

618101 – SyntaxError ("let" doesn't work) when loading bootstrap.js to call uninstall() from a disabled add-on. Bootstrapped extensions. Note: All extensions created using the Add-on SDK are bootstrapped! All the bootstrapping code is generated for you, so you don't really need to think about it. Not using the Add-on SDK? Read on... Traditional extensions include overlays, wherein the application can load up XUL from the extension's package and automatically apply it atop its own UI. While this makes creating extensions that add to the application's user interface relatively easy, it means that updating, installing, or disabling an extension requires an application restart.

Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) introduces bootstrapped extensions. These are special extensions that, instead of using overlays to apply their user interface to the application, programmatically insert themselves into the application. All the application does is call into this script file; the extension is responsible for adding and removing its user interface and handling any other setup and shutdown tasks it requires. startup.