tor-browser

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

browser_storage_cookies_hostOnly.js (820B)


      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 // Test that the HostOnly values displayed in the table are correct.
      8 
      9 SpecialPowers.pushPrefEnv({
     10  set: [["security.allow_eval_with_system_principal", true]],
     11 });
     12 
     13 add_task(async function () {
     14  await openTabAndSetupStorage(MAIN_DOMAIN + "storage-complex-values.html");
     15 
     16  gUI.tree.expandAll();
     17 
     18  showColumn("hostOnly", true);
     19 
     20  const c1id = getCookieId("c1", "test1.example.org", "/browser");
     21  await selectTableItem(c1id);
     22  checkCell(c1id, "hostOnly", "true");
     23 
     24  const c2id = getCookieId("cs2", ".example.org", "/");
     25  await selectTableItem(c2id);
     26  checkCell(c2id, "hostOnly", "false");
     27 });