You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing web extension source code, reload the extension in Firefox so you can test it as you save your source files. There might be a couple ways to do this.
Firstly, the platform supports a special symlink file: If you put a text file in profile/extensions whose name is the addon id and the content is the absolute path to your addon source, you can reload it.
To reload it, you just need to disable it, flush the cache, and re-enable it (see flushJarCache() and flushStartupCache()). We will add a button for this but ideally web-ext could use the debugging API to send a message to Firefox to reload when necessary.
When reloaded, the add-on will see the shutdown and startup methods called, it won't see the uninstall/install called, but you probably don't want that for reload anyway
This reload trick won't work for XPI paths, only for directory paths.
The text was updated successfully, but these errors were encountered:
There are some features in about:debugging that activate hot reloading for files like stylesheets (see bug 1257525). When running web-ext from the command line, we'll want to trigger this same behavior. We may need to do it like:
patch about:debugging to make remote actor calls instead of calling AddonManager APIs directly
When editing web extension source code, reload the extension in Firefox so you can test it as you save your source files. There might be a couple ways to do this.
Firstly, the platform supports a special symlink file: If you put a text file in profile/extensions whose name is the addon id and the content is the absolute path to your addon source, you can reload it.
To reload it, you just need to disable it, flush the cache, and re-enable it (see flushJarCache() and flushStartupCache()). We will add a button for this but ideally web-ext could use the debugging API to send a message to Firefox to reload when necessary.
When reloaded, the add-on will see the shutdown and startup methods called, it won't see the uninstall/install called, but you probably don't want that for reload anyway
This reload trick won't work for XPI paths, only for directory paths.
The text was updated successfully, but these errors were encountered: