tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug1859617-installtrigger-removal-shim.js (657B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 /**
      8 * Bug 1859617 - Generic window.InstallTrigger removal shim
      9 *
     10 * This interventions shims window.InstallTrigger to undefine it.
     11 */
     12 
     13 /* globals exportFunction */
     14 
     15 if (typeof window.InstallTrigger !== "undefined") {
     16  console.info(
     17    "window.InstallTrigger has been undefined for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1859617 for details."
     18  );
     19 
     20  delete window.wrappedJSObject.InstallTrigger;
     21 }