xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
954 stars 83 forks source link

A question: Is there a way to load a webextension from bootstrap context? #99

Closed 117649 closed 2 years ago

117649 commented 2 years ago

Or get a running sandbox and play with it?

xiaoxiaoflood commented 2 years ago

Probably it is, but I never looked into it. Take at look at searchfox.org, I think that in automated tests they do this a lot, running fake WebExtensions instances through JS.

What I do know is that you can get into a WebExtensions context and play with it. I do this in mouseGestures.uc.js (userChrome.jsm is used to save WebExtensions references).

117649 commented 2 years ago

Thanks.