tor-browser

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

bug1928941-oasis.decart.ai-window-chrome-shim.js (590B)


      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 1928941 - UA spoof for oasis.decart.ai
      9 *
     10 * This sites is checking for window.chrome, so let's spoof that.
     11 */
     12 
     13 /* globals exportFunction */
     14 
     15 console.info(
     16  "window.chrome has been shimmed for compatibility reasons. https://bugzilla.mozilla.org/show_bug.cgi?id=1928941 for details."
     17 );
     18 
     19 window.wrappedJSObject.chrome = new window.wrappedJSObject.Object();