Commit 15f72d35 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! BB 40925: Implemented the Security Level component

BB 45037: Fix a potential runtime error in search service.

Upstream code has been updated after our initial patch, but that code
path is hard to trigger, if not impossible, so we never actually found
the bug until checking that code for other reasons.
parent fd558d1b
Loading
Loading
Loading
Loading
Loading
+3 −3
Changes for toolkit/components/search/SearchService.sys.mjs: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -3806,9 +3806,9 @@ export const SearchService = new (class SearchService {

      case TOPIC_JSENABLED_CHANGED:
        lazy.logConsole.debug("JavaScript toggled");
        this._maybeReloadEngines(
          Ci.nsISearchService.CHANGE_REASON_CONFIG
        ).catch(console.error);
        this.#maybeReloadEngines(this.CHANGE_REASON.CONFIG).catch(
          console.error
        );
        break;
    }
  }