tor-browser

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

browser_storage_cookies_domain.js (872B)


      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 cookies with domain equal to full host name are listed.
      8 // E.g., ".example.org" vs. example.org). Bug 1149497.
      9 
     10 add_task(async function () {
     11  await openTabAndSetupStorage(MAIN_DOMAIN + "storage-cookies.html");
     12 
     13  await checkState([
     14    [
     15      ["cookies", "http://test1.example.org"],
     16      [
     17        getCookieId("test1", ".test1.example.org", "/browser"),
     18        getCookieId("test2", "test1.example.org", "/browser"),
     19        getCookieId("test3", ".test1.example.org", "/browser"),
     20        getCookieId("test4", "test1.example.org", "/browser"),
     21        getCookieId("test5", ".test1.example.org", "/browser"),
     22      ],
     23    ],
     24  ]);
     25 });