summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_1234021.js
blob: f6a95ad68da146ef517839b3cb78b1f3e30123a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"use strict";

const PREF = "network.cookie.cookieBehavior";
const PAGE_URL =
  "http://mochi.test:8888/browser/" +
  "browser/components/sessionstore/test/browser_1234021_page.html";
const BEHAVIOR_REJECT = 2;

add_task(async function test() {
  await pushPrefs([PREF, BEHAVIOR_REJECT]);

  await BrowserTestUtils.withNewTab(
    {
      gBrowser,
      url: PAGE_URL,
    },
    async function handler(aBrowser) {
      await TabStateFlusher.flush(aBrowser);
      ok(true, "Flush didn't time out");
    }
  );
});