summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_1234021.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/sessionstore/test/browser_1234021.js')
-rw-r--r--browser/components/sessionstore/test/browser_1234021.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/browser/components/sessionstore/test/browser_1234021.js b/browser/components/sessionstore/test/browser_1234021.js
new file mode 100644
index 000000000..a307d1e01
--- /dev/null
+++ b/browser/components/sessionstore/test/browser_1234021.js
@@ -0,0 +1,18 @@
+"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(function* test() {
+ yield pushPrefs([PREF, BEHAVIOR_REJECT]);
+
+ yield BrowserTestUtils.withNewTab({
+ gBrowser: gBrowser,
+ url: PAGE_URL
+ }, function* handler(aBrowser) {
+ yield TabStateFlusher.flush(aBrowser);
+ ok(true, "Flush didn't time out");
+ });
+});