summaryrefslogtreecommitdiff
path: root/extensions/cookie/test/test_bug1041808.html
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/cookie/test/test_bug1041808.html')
-rw-r--r--extensions/cookie/test/test_bug1041808.html61
1 files changed, 0 insertions, 61 deletions
diff --git a/extensions/cookie/test/test_bug1041808.html b/extensions/cookie/test/test_bug1041808.html
deleted file mode 100644
index 38a8832e0..000000000
--- a/extensions/cookie/test/test_bug1041808.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<!--
-https://bugzilla.mozilla.org/show_bug.cgi?id=1041808
--->
-<head>
- <meta charset="utf-8">
- <title>Test for Bug 1041808</title>
- <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
- <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
- <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
- <script type="application/javascript">
-
- /** Test for Bug 1041808 **/
-
-SimpleTest.waitForExplicitFinish();
-
-var dialogsOpened = 0;
-var dialogsClosed = 0;
-function dismissDialog(aSubject, aTopic, aData)
-{
- if (aTopic == "domwindowopened") {
- var win = SpecialPowers.wrap(aSubject);
- win.addEventListener("pageshow", function() {
- win.removeEventListener("pageshow", arguments.callee, false);
- sendKey("RETURN", aSubject);
- }, false);
- ++dialogsOpened;
- } else if (aTopic == "domwindowclosed") {
- ++dialogsClosed;
- }
-}
-
-function runTest()
-{
- SpecialPowers.Services.ww.registerNotification(dismissDialog);
- document.cookie = "test1=testValue";
- document.cookie = "test2=testValue";
- document.cookie = "test3=testValue";
- SpecialPowers.Services.ww.unregisterNotification(dismissDialog);
- is(dialogsOpened, 3, "Setting a cookie should have asked for permission");
- is(dialogsOpened - dialogsClosed, 0,
- "Setting a cookie shouldn't have left any additional windows open");
- SimpleTest.finish();
-}
-
-SpecialPowers.pushPrefEnv({"set": [["network.cookie.lifetimePolicy", 1]]},
- runTest);
-
- </script>
-</head>
-<body>
-<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1041808">Mozilla Bug 1041808</a>
-<p id="display"></p>
-<div id="content" style="display: none">
-
-</div>
-<pre id="test">
-</pre>
-</body>
-</html>