7^6

Results 99 comments of 7^6

@onemen I have partially success with the `autoRegister`. Tested on 141 by use a `chrome.manifest` FILE with absolute path I can register an addon's chrome path when addon is disabled....

> [@117649](https://github.com/117649) > > test this [utils.zip](https://github.com/user-attachments/files/20967207/utils.zip) > > I replaced `Components.manager.addBootstrappedManifestLocation(file)` with: > > const addonManagerStartup = Cc["@mozilla.org/addons/addon-manager-startup;1"] > .getService(Ci.amIAddonManagerStartup); > const manifestURI = getURIForResourceInFile(file, 'chrome.manifest'); > const chromeEntries...

@onemen Use this [BootstrapLoader.zip](https://github.com/user-attachments/files/20981093/BootstrapLoader.zip) Put into the `utils` and replace `bootstraploader`. Mind the file name. No change to the addons. You'll need a path under `utils` called `addonManifest` to host...

> @117649 > > On My Windows 11 pc, when Firefox start cold, and {dc572301-7619-498c-a57d-39143191b318}.manifest does not exist > i get this error: > `Could not read chrome manifest 'file:///C:/Users/_______/AppData/Roaming/Mozilla/Firefox/Profiles/40xnlurj.Default%20Nightly%202025/chrome/utils/addonManifest/%7Bdc572301-7619-498c-a57d-39143191b318%7D.manifest'.`...

> regarding autoUnregister [read this](https://devdoc.net/web/developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIComponentRegistrar.html#autoUnregister()) ![Image](https://github.com/user-attachments/assets/8270a349-81ac-42cf-9dd9-eb1c23496ea9) And no result on https://searchfox.org/mozilla-central/search?q=autoUnregister&path=&case=false&regexp=false This method seems to be long gone unlucky for us.

> > [BootstrapLoader.zip](https://github.com/user-attachments/files/20981093/BootstrapLoader.zip) > > This is working fine to restore the two legacy addons installed but there is one bug: if you close the browser and re-open it the...

@onemen @marty60 Add a ```js Cc["@mozilla.org/chrome/chrome-registry;1"] .getService(Ci.nsIXULChromeRegistry) .checkForNewChrome(); ``` somewhere before `autoRegister()` seems has effect.

Don't do`deleteTemporaryFileOnExit(tempFile)` for now? ```js let tempDir = Services.dirsvc.get("ProfD", Ci.nsIFile) tempDir.append("browser-extension-data"); tempDir.append(addon.id); function createManifestTemporarily(manifestText) { let tempFile = tempDir.clone(); tempFile.append("chrome.manifest"); let foStream = Cc[ "@mozilla.org/network/file-output-stream;1" ].createInstance(Ci.nsIFileOutputStream); foStream.init(tempFile, 0x02 | 0x08...

> [@117649](https://github.com/117649) > > why not simply create a unique filename with timestamp? > > - tempFile.append("chrome.manifest"); > + tempFile.append("temp.manifest." + Date.now()); I don't know, what happens if you start...

> [@117649](https://github.com/117649) , > > Maybe we does not need to create temp manifest at all this code work with `Tab Mix Plus` > > Can you test it >...