tor-browser

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

0002-service-worker-url.patch (825B)


      1 diff --git a/src/common/runtime/helper/test_worker.ts b/src/common/runtime/helper/test_worker.ts
      2 index 7b7922a88f..9e10b666da 100644
      3 --- a/src/common/runtime/helper/test_worker.ts
      4 +++ b/src/common/runtime/helper/test_worker.ts
      5 @@ -200,7 +200,9 @@
      6     const selfPathDir = selfPath.substring(0, selfPath.lastIndexOf('/'));
      7     // Construct the path to the worker file, then use URL to resolve the `../` components.
      8     const serviceWorkerURL = new URL(
      9 -      `${selfPathDir}/../../../${suite}/webworker/${fileName}.as_worker.js`
     10 +      // NOTE: This is a Mozilla-specific hack! Please follow-up at
     11 +      // <https://bugzilla.mozilla.org/asdf> for removal.
     12 +      `${location.origin}/_mozilla/webgpu/${suite}/webworker/${fileName}.as_worker.js`
     13     ).toString();
     14 
     15     // Ensure the correct service worker is registered.