tor-browser

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

bug1818818-fastclick-legacy-shim.js (603B)


      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 1818818 - Neutralize FastClick
      9 *
     10 * The patch is applied on sites using older version of FastClick library.
     11 * This allows to disable FastClick and fix various breakage caused
     12 * by the library.
     13 */
     14 
     15 /* globals exportFunction */
     16 
     17 (
     18  window.CSSStyleProperties ?? window.CSS2Properties
     19 ).prototype.wrappedJSObject.msTouchAction =
     20  window.wrappedJSObject.String("none");