tor-browser

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

browser_storage_indexeddb_duplicate_names.js (663B)


      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 // Test to verify that indexedDBs with duplicate names (different types / paths)
      6 // work as expected.
      7 
      8 "use strict";
      9 
     10 add_task(async function () {
     11  const TESTPAGE =
     12    MAIN_DOMAIN_SECURED + "storage-indexeddb-duplicate-names.html";
     13 
     14  setPermission(TESTPAGE, "indexedDB");
     15 
     16  await openTabAndSetupStorage(TESTPAGE);
     17 
     18  await checkState([
     19    [
     20      ["indexedDB", "https://test1.example.org"],
     21      ["idb1 (default)", "idb2 (default)"],
     22    ],
     23  ]);
     24 });