tor-browser

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

verify-get-undefined-module.js (446B)


      1 // Copyright 2023 The Chromium Authors
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 class VerifyGetUndefinedURLSelectionOperation {
      6  async run(urls, data) {
      7    if (await sharedStorage.get('key-not-previously-set') === undefined) {
      8      return 1;
      9    }
     10 
     11    return -1;
     12  }
     13 }
     14 
     15 register(
     16    'verify-get-undefined-url-selection-operation',
     17    VerifyGetUndefinedURLSelectionOperation);