[tbb-commits] [tor-browser/tor-browser-84.0.2-10.0-1] Bug 33342: Avoid disconnect search addon error after removal.

sysrqb at torproject.org sysrqb at torproject.org
Fri Jan 8 16:14:03 UTC 2021


commit c0aa26251de657a7fbea82372de8b1616128a9fb
Author: Alex Catarineu <acat at torproject.org>
Date:   Fri Mar 13 18:19:30 2020 +0100

    Bug 33342: Avoid disconnect search addon error after removal.
    
    We removed the addon in #32767, but it was still being loaded
    from addonStartup.json.lz4 and throwing an error on startup
    because its resource: location is not available anymore.
---
 toolkit/mozapps/extensions/internal/XPIProvider.jsm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/toolkit/mozapps/extensions/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
index 4c0ffd7f8896..c0fd26e34b7c 100644
--- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm
+++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
@@ -976,6 +976,12 @@ var BuiltInLocation = new (class _BuiltInLocation extends XPIStateLocation {
   isLinkedAddon(/* aId */) {
     return false;
   }
+
+  restore(saved) {
+    super.restore(saved);
+    // Bug 33342: avoid restoring disconnect addon from addonStartup.json.lz4.
+    this.removeAddon("disconnect at search.mozilla.org");
+  }
 })();
 
 /**





More information about the tbb-commits mailing list