WebExtensions removed from the source are never removed from the extension cache
Categories
(Toolkit :: Add-ons Manager, defect, P3)
Tracking
()
People
(Reporter: standard8, Unassigned)
References
Details
A while ago, we removed twitter form the built-in list of search engines. As the search service didn't remove the engine before it was removed from Firefox, those profiles that had Twitter installed, now always start up with an error:
Error while loading 'jar:file:///Applications/FirefoxNightly.app/Contents/Resources/browser/omni.ja!/chrome/browser/search-extensions/twitter/manifest.json' (NS_ERROR_FILE_NOT_FOUND)
1600435492568 addons.xpi WARN Exception running bootstrap method startup on twitter@search.mozilla.org: Error: Error while loading 'jar:file:///Applications/FirefoxNightly.app/Contents/Resources/browser/omni.ja!/chrome/browser/search-extensions/twitter/manifest.json' (NS_ERROR_FILE_NOT_FOUND)(resource://gre/modules/Extension.jsm:600:20) JS Stack trace: readJSON/</<@Extension.jsm:600:20
onStopRequest@NetUtil.jsm:128:18
I would have expected these to be removed from the cache so that we're not trying to load a missing WebExtension on each startup.
| Reporter | ||
Comment 1•6 years ago
|
||
Just realised, this ia a duplicate of bug 1547662.
| Reporter | ||
Comment 2•6 years ago
|
||
Having just thought about this and bug 1547662 a little more. I think there's always potential for cases where although we do our best, the search service might not be able to clean up a built-in add-on before it is removed. Therefore I think we should probably have something in the add-on manager to ensure the clean-up of built-in add-ons when appropriate.
Updated•6 years ago
|
| Reporter | ||
Comment 3•6 months ago
|
||
I've just been testing this with an upgrade from Firefox 127 -> latest firefox-main, with the firefox-main build modified to remove the search extensions.
On first startup of the latest nightly, messages are raised about the add-ons not being able to be loaded. However, they are now removed from the cache, and on subsequent restarts there are no more messages being raised.
Hence it looks like we've fixed this along the way, so we'll go ahead and remove the old extensions.
Comment 4•5 months ago
|
||
I'm seeing these error messages after removing the extensions from Thunderbird. In some profiles but not others.
| Reporter | ||
Comment 5•5 months ago
|
||
For me the errors went away after restart. Though there could be something that meant they were kept. In theory it shouldn't do any harm apart from being ever so slightly slower to start up due to having to check for the files each time.
Description
•