mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 069cb3dad411 for M2 failure
This commit is contained in:
parent
21905d6393
commit
63f47bcc6f
@ -1,48 +0,0 @@
|
||||
/* Any copyright is dedicated to the public domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Test that the mozprivatebrowsing attribute works.
|
||||
"use strict";
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
browserElementTestHelpers.setEnabledPref(true);
|
||||
browserElementTestHelpers.addPermission();
|
||||
|
||||
function createFrame(aIsPrivate) {
|
||||
var iframe = document.createElement("iframe");
|
||||
SpecialPowers.wrap(iframe).mozbrowser = true;
|
||||
if (aIsPrivate) {
|
||||
iframe.setAttribute("mozprivatebrowsing", "true");
|
||||
}
|
||||
return iframe;
|
||||
}
|
||||
|
||||
function createTest(aIsPrivate, aExpected, aNext) {
|
||||
info("createTest " + aIsPrivate + " " + aExpected);
|
||||
var deferred = Promise.defer();
|
||||
|
||||
var iframe = createFrame(aIsPrivate);
|
||||
document.body.appendChild(iframe);
|
||||
|
||||
iframe.addEventListener("mozbrowsershowmodalprompt", function(e) {
|
||||
is(e.detail.message, aExpected, "Checking localstorage");
|
||||
deferred.resolve();
|
||||
});
|
||||
|
||||
iframe.src = "file_browserElement_PrivateBrowsing.html";
|
||||
|
||||
return deferred.promise;
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
// We first create a iframe in non private browsing mode, set up some
|
||||
// localstorage, reopen it to check that we get the previously set value.
|
||||
// Finally, open it in private browsing mode and check that localstorage
|
||||
// is clear.
|
||||
createTest(false, "EMPTY")
|
||||
.then(() => { return createTest(false, "bar"); })
|
||||
.then(() => { return createTest(true, "EMPTY"); })
|
||||
.then(SimpleTest.finish);
|
||||
}
|
||||
|
||||
addEventListener("testready", runTest);
|
@ -1,10 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
var initialValue = localStorage.getItem("foo") || "EMPTY";
|
||||
localStorage.setItem("foo", "bar");
|
||||
alert(initialValue);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -59,7 +59,6 @@ skip-if = (toolkit == 'gonk' && !debug)
|
||||
[test_browserElement_oop_OpenWindowRejected.html]
|
||||
skip-if = (toolkit == 'gonk' && !debug)
|
||||
[test_browserElement_oop_Opensearch.html]
|
||||
[test_browserElement_oop_PrivateBrowsing.html]
|
||||
[test_browserElement_oop_PromptCheck.html]
|
||||
[test_browserElement_oop_PromptConfirm.html]
|
||||
[test_browserElement_oop_PurgeHistory.html]
|
||||
|
@ -43,7 +43,6 @@ support-files =
|
||||
browserElement_OpenWindowInFrame.js
|
||||
browserElement_OpenWindowRejected.js
|
||||
browserElement_Opensearch.js
|
||||
browserElement_PrivateBrowsing.js
|
||||
browserElement_PromptCheck.js
|
||||
browserElement_PromptConfirm.js
|
||||
browserElement_PurgeHistory.js
|
||||
@ -90,7 +89,6 @@ support-files =
|
||||
file_browserElement_OpenWindowDifferentOrigin.html
|
||||
file_browserElement_OpenWindowInFrame.html
|
||||
file_browserElement_OpenWindowRejected.html
|
||||
file_browserElement_PrivateBrowsing.html
|
||||
file_browserElement_SecurityChange.html
|
||||
file_browserElement_SetVisibleFrames2_Outer.html
|
||||
file_browserElement_SetVisibleFrames_Inner.html
|
||||
@ -172,7 +170,6 @@ skip-if = (toolkit == 'gonk' && !debug)
|
||||
[test_browserElement_inproc_OpenWindowRejected.html]
|
||||
skip-if = (toolkit == 'gonk' && !debug)
|
||||
[test_browserElement_inproc_Opensearch.html]
|
||||
[test_browserElement_inproc_PrivateBrowsing.html]
|
||||
[test_browserElement_inproc_PromptCheck.html]
|
||||
[test_browserElement_inproc_PromptConfirm.html]
|
||||
[test_browserElement_inproc_PurgeHistory.html]
|
||||
|
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=832700
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 832700</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="browserElementTestHelpers.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=832700">Mozilla Bug 832700</a>
|
||||
|
||||
<script type="application/javascript;version=1.7" src="browserElement_PrivateBrowsing.js">
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=832700
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 832700</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="browserElementTestHelpers.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=832700">Mozilla Bug 832700</a>
|
||||
|
||||
<script type="application/javascript;version=1.7" src="browserElement_PrivateBrowsing.js">
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user