From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- dom/tests/mochitest/localstorage/chrome.ini | 11 + .../localstorage/file_tryAccessSessionStorage.html | 10 + .../mochitest/localstorage/frameChromeSlave.html | 9 + dom/tests/mochitest/localstorage/frameKeySync.html | 51 ++++ .../frameLocalStorageCookieSettings.html | 26 +++ .../localstorage/frameLocalStorageSessionOnly.html | 8 + .../mochitest/localstorage/frameMasterEqual.html | 56 +++++ .../localstorage/frameMasterNotEqual.html | 47 ++++ dom/tests/mochitest/localstorage/frameOrder.html | 27 +++ dom/tests/mochitest/localstorage/frameQuota.html | 97 ++++++++ .../localstorage/frameQuotaSessionOnly.html | 101 ++++++++ dom/tests/mochitest/localstorage/frameReplace.html | 72 ++++++ .../mochitest/localstorage/frameSlaveEqual.html | 51 ++++ .../mochitest/localstorage/frameSlaveNotEqual.html | 44 ++++ .../mochitest/localstorage/interOriginFrame.js | 53 +++++ .../mochitest/localstorage/interOriginTest.js | 41 ++++ .../mochitest/localstorage/interOriginTest2.js | 53 +++++ .../mochitest/localstorage/localStorageCommon.js | 131 +++++++++++ dom/tests/mochitest/localstorage/mochitest.ini | 47 ++++ dom/tests/mochitest/localstorage/page_blank.html | 6 + .../mochitest/localstorage/test_brokenUTF-16.html | 100 ++++++++ .../localstorage/test_bug600307-DBOps.html | 178 ++++++++++++++ .../mochitest/localstorage/test_bug746272-1.html | 32 +++ .../mochitest/localstorage/test_bug746272-2.html | 31 +++ .../mochitest/localstorage/test_cookieBlock.html | 53 +++++ .../mochitest/localstorage/test_embededNulls.html | 40 ++++ dom/tests/mochitest/localstorage/test_keySync.html | 33 +++ .../localstorage/test_localStorageBase.html | 247 ++++++++++++++++++++ ...ocalStorageBasePrivateBrowsing_perwindowpb.html | 256 +++++++++++++++++++++ .../test_localStorageBaseSessionOnly.html | 211 +++++++++++++++++ .../test_localStorageCookieSettings.html | 77 +++++++ .../localstorage/test_localStorageEnablePref.html | 65 ++++++ .../localstorage/test_localStorageFromChrome.xhtml | 60 +++++ .../localstorage/test_localStorageKeyOrder.html | 73 ++++++ .../localstorage/test_localStorageOriginsDiff.html | 41 ++++ .../test_localStorageOriginsDomainDiffs.html | 41 ++++ .../test_localStorageOriginsEquals.html | 42 ++++ .../test_localStorageOriginsPortDiffs.html | 41 ++++ .../test_localStorageOriginsSchemaDiffs.html | 41 ++++ .../localstorage/test_localStorageQuota.html | 136 +++++++++++ ...calStorageQuotaPrivateBrowsing_perwindowpb.html | 191 +++++++++++++++ .../test_localStorageQuotaSessionOnly.html | 134 +++++++++++ .../test_localStorageQuotaSessionOnly2.html | 98 ++++++++ .../localstorage/test_localStorageReplace.html | 80 +++++++ .../localstorage/test_storageConstructor.html | 35 +++ dom/tests/mochitest/localstorage/windowProxy.html | 3 + 46 files changed, 3280 insertions(+) create mode 100644 dom/tests/mochitest/localstorage/chrome.ini create mode 100644 dom/tests/mochitest/localstorage/file_tryAccessSessionStorage.html create mode 100644 dom/tests/mochitest/localstorage/frameChromeSlave.html create mode 100644 dom/tests/mochitest/localstorage/frameKeySync.html create mode 100644 dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html create mode 100644 dom/tests/mochitest/localstorage/frameLocalStorageSessionOnly.html create mode 100644 dom/tests/mochitest/localstorage/frameMasterEqual.html create mode 100644 dom/tests/mochitest/localstorage/frameMasterNotEqual.html create mode 100644 dom/tests/mochitest/localstorage/frameOrder.html create mode 100644 dom/tests/mochitest/localstorage/frameQuota.html create mode 100644 dom/tests/mochitest/localstorage/frameQuotaSessionOnly.html create mode 100644 dom/tests/mochitest/localstorage/frameReplace.html create mode 100644 dom/tests/mochitest/localstorage/frameSlaveEqual.html create mode 100644 dom/tests/mochitest/localstorage/frameSlaveNotEqual.html create mode 100644 dom/tests/mochitest/localstorage/interOriginFrame.js create mode 100644 dom/tests/mochitest/localstorage/interOriginTest.js create mode 100644 dom/tests/mochitest/localstorage/interOriginTest2.js create mode 100644 dom/tests/mochitest/localstorage/localStorageCommon.js create mode 100644 dom/tests/mochitest/localstorage/mochitest.ini create mode 100644 dom/tests/mochitest/localstorage/page_blank.html create mode 100644 dom/tests/mochitest/localstorage/test_brokenUTF-16.html create mode 100644 dom/tests/mochitest/localstorage/test_bug600307-DBOps.html create mode 100644 dom/tests/mochitest/localstorage/test_bug746272-1.html create mode 100644 dom/tests/mochitest/localstorage/test_bug746272-2.html create mode 100644 dom/tests/mochitest/localstorage/test_cookieBlock.html create mode 100644 dom/tests/mochitest/localstorage/test_embededNulls.html create mode 100644 dom/tests/mochitest/localstorage/test_keySync.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageBase.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageBasePrivateBrowsing_perwindowpb.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageBaseSessionOnly.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageCookieSettings.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageEnablePref.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageFromChrome.xhtml create mode 100644 dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageOriginsDiff.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageOriginsDomainDiffs.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageOriginsEquals.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageOriginsPortDiffs.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageOriginsSchemaDiffs.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageQuota.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly2.html create mode 100644 dom/tests/mochitest/localstorage/test_localStorageReplace.html create mode 100644 dom/tests/mochitest/localstorage/test_storageConstructor.html create mode 100644 dom/tests/mochitest/localstorage/windowProxy.html (limited to 'dom/tests/mochitest/localstorage') diff --git a/dom/tests/mochitest/localstorage/chrome.ini b/dom/tests/mochitest/localstorage/chrome.ini new file mode 100644 index 0000000000..6cc5562c00 --- /dev/null +++ b/dom/tests/mochitest/localstorage/chrome.ini @@ -0,0 +1,11 @@ +[DEFAULT] +skip-if = os == 'android' +support-files = + page_blank.html + frameQuota.html + interOriginFrame.js + +[test_localStorageBasePrivateBrowsing_perwindowpb.html] +skip-if = true # bug 1156725 +[test_localStorageFromChrome.xhtml] +[test_localStorageQuotaPrivateBrowsing_perwindowpb.html] diff --git a/dom/tests/mochitest/localstorage/file_tryAccessSessionStorage.html b/dom/tests/mochitest/localstorage/file_tryAccessSessionStorage.html new file mode 100644 index 0000000000..1def32a62a --- /dev/null +++ b/dom/tests/mochitest/localstorage/file_tryAccessSessionStorage.html @@ -0,0 +1,10 @@ + diff --git a/dom/tests/mochitest/localstorage/frameChromeSlave.html b/dom/tests/mochitest/localstorage/frameChromeSlave.html new file mode 100644 index 0000000000..fd87702e9d --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameChromeSlave.html @@ -0,0 +1,9 @@ + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameKeySync.html b/dom/tests/mochitest/localstorage/frameKeySync.html new file mode 100644 index 0000000000..a6b39d47d7 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameKeySync.html @@ -0,0 +1,51 @@ + + +frame for localStorage test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html b/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html new file mode 100644 index 0000000000..4952a81c44 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html @@ -0,0 +1,26 @@ + + +localStorage cookies settings test + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameLocalStorageSessionOnly.html b/dom/tests/mochitest/localstorage/frameLocalStorageSessionOnly.html new file mode 100644 index 0000000000..f6c7f0291f --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameLocalStorageSessionOnly.html @@ -0,0 +1,8 @@ + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameMasterEqual.html b/dom/tests/mochitest/localstorage/frameMasterEqual.html new file mode 100644 index 0000000000..4d83c4fef2 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameMasterEqual.html @@ -0,0 +1,56 @@ + + +frame for localStorage test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameMasterNotEqual.html b/dom/tests/mochitest/localstorage/frameMasterNotEqual.html new file mode 100644 index 0000000000..fef476bed3 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameMasterNotEqual.html @@ -0,0 +1,47 @@ + + +frame for localStorage test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameOrder.html b/dom/tests/mochitest/localstorage/frameOrder.html new file mode 100644 index 0000000000..3b3f0ebef8 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameOrder.html @@ -0,0 +1,27 @@ + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameQuota.html b/dom/tests/mochitest/localstorage/frameQuota.html new file mode 100644 index 0000000000..5ff9855c99 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameQuota.html @@ -0,0 +1,97 @@ + + +slave for sessionStorage test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameQuotaSessionOnly.html b/dom/tests/mochitest/localstorage/frameQuotaSessionOnly.html new file mode 100644 index 0000000000..754a5b3598 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameQuotaSessionOnly.html @@ -0,0 +1,101 @@ + + +slave for sessionStorage test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameReplace.html b/dom/tests/mochitest/localstorage/frameReplace.html new file mode 100644 index 0000000000..145bfe8fce --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameReplace.html @@ -0,0 +1,72 @@ + + +localStorage replace frame + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameSlaveEqual.html b/dom/tests/mochitest/localstorage/frameSlaveEqual.html new file mode 100644 index 0000000000..b64b8de10a --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameSlaveEqual.html @@ -0,0 +1,51 @@ + + +frame for localStorage test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/frameSlaveNotEqual.html b/dom/tests/mochitest/localstorage/frameSlaveNotEqual.html new file mode 100644 index 0000000000..9daf9e9f73 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameSlaveNotEqual.html @@ -0,0 +1,44 @@ + + +frame for localStorage test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/interOriginFrame.js b/dom/tests/mochitest/localstorage/interOriginFrame.js new file mode 100644 index 0000000000..64470c4ef6 --- /dev/null +++ b/dom/tests/mochitest/localstorage/interOriginFrame.js @@ -0,0 +1,53 @@ +function postMsg(message) { + parent.postMessage(message, "http://mochi.test:8888"); +} + +window.addEventListener("message", onMessageReceived); + +function onMessageReceived(event) { + if (event.data == "step") { + var performed = false; + try { + performed = doStep(); + } catch (ex) { + postMsg("FAILURE: exception threw at " + location + ":\n" + ex); + finishTest(); + } + + if (performed) { + postMsg("perf"); + } + + return; + } + + postMsg("Invalid message"); +} + +function ok(a, message) { + if (!a) { + postMsg("FAILURE: " + message); + } else { + postMsg(message); + } +} + +function is(a, b, message) { + if (a != b) { + postMsg("FAILURE: " + message + ", expected " + b + " got " + a); + } else { + postMsg(message + ", expected " + b + " got " + a); + } +} + +function todo(a, b, message) { + postMsg("TODO: " + message + ", expected " + b + " got " + a); +} + +function finishTest() { + try { + localStorage.clear(); + } catch (e) {} + postMsg("done"); + return false; +} diff --git a/dom/tests/mochitest/localstorage/interOriginTest.js b/dom/tests/mochitest/localstorage/interOriginTest.js new file mode 100644 index 0000000000..526b5b0fb1 --- /dev/null +++ b/dom/tests/mochitest/localstorage/interOriginTest.js @@ -0,0 +1,41 @@ +var slaveLoadsPending = 1; + +var slaveOrigin = ""; +var slave = null; + +var failureRegExp = new RegExp("^FAILURE"); +const slavePath = "/tests/dom/tests/mochitest/localstorage/"; + +window.addEventListener("message", onMessageReceived); + +function onMessageReceived(event) { + switch (event.data) { + // Indication of the frame onload event + case "frame loaded": + if (--slaveLoadsPending) { + break; + } + + // Indication of successfully finished step of a test + // fall through + case "perf": + if (event.data == "perf") { + doStep(); + } + + slave.postMessage("step", slaveOrigin); + break; + + // Indication of all test parts finish (from any of the frames) + case "done": + localStorage.clear(); + slaveLoadsPending = 1; + doNextTest(); + break; + + // Any other message indicates error or succes message of a test + default: + SimpleTest.ok(!event.data.match(failureRegExp), event.data); + break; + } +} diff --git a/dom/tests/mochitest/localstorage/interOriginTest2.js b/dom/tests/mochitest/localstorage/interOriginTest2.js new file mode 100644 index 0000000000..ca64cbde22 --- /dev/null +++ b/dom/tests/mochitest/localstorage/interOriginTest2.js @@ -0,0 +1,53 @@ +var t = async_test(document.title); + +var frameLoadsPending = 2; + +var callMasterFrame = true; +var testDone = false; + +var masterFrameOrigin = ""; +var slaveFrameOrigin = ""; + +var failureRegExp = new RegExp("^FAILURE"); + +const framePath = "/tests/dom/tests/mochitest/localstorage/"; + +window.addEventListener("message", onMessageReceived); + +function onMessageReceived(event) { + switch (event.data) { + // Indication of the frame onload event + case "frame loaded": + if (--frameLoadsPending) { + break; + } + + // Indication of successfully finished step of a test + // Just fall through... + case "perf": + if (callMasterFrame) { + masterFrame.postMessage("step", masterFrameOrigin); + } else { + slaveFrame.postMessage("step", slaveFrameOrigin); + } + callMasterFrame = !callMasterFrame; + break; + + // Indication of all test parts finish (from any of the frames) + case "done": + if (testDone) { + break; + } + + testDone = true; + t.done(); + break; + + // Any other message indicates error, succes or todo message of a test + default: + t.step(function() { + assert_true(!event.data.match(failureRegExp), event.data); + }); + break; + } +} diff --git a/dom/tests/mochitest/localstorage/localStorageCommon.js b/dom/tests/mochitest/localstorage/localStorageCommon.js new file mode 100644 index 0000000000..ebe7f64fdd --- /dev/null +++ b/dom/tests/mochitest/localstorage/localStorageCommon.js @@ -0,0 +1,131 @@ +function localStorageFlush(cb) { + if (SpecialPowers.Services.domStorageManager.nextGenLocalStorageEnabled) { + SimpleTest.executeSoon(function() { + cb(); + }); + return; + } + + var ob = { + observe(sub, top, dat) { + os().removeObserver(ob, "domstorage-test-flushed"); + cb(); + }, + }; + os().addObserver(ob, "domstorage-test-flushed"); + notify("domstorage-test-flush-force"); +} + +function localStorageReload(callback) { + if (SpecialPowers.Services.domStorageManager.nextGenLocalStorageEnabled) { + localStorage.close(); + let qms = SpecialPowers.Services.qms; + let principal = SpecialPowers.wrap(document).nodePrincipal; + let request = qms.resetStoragesForPrincipal(principal, "default", "ls"); + request.callback = SpecialPowers.wrapCallback(function() { + localStorage.open(); + callback(); + }); + return; + } + + notify("domstorage-test-reload"); + SimpleTest.executeSoon(function() { + callback(); + }); +} + +function localStorageFlushAndReload(callback) { + if (SpecialPowers.Services.domStorageManager.nextGenLocalStorageEnabled) { + localStorage.close(); + let qms = SpecialPowers.Services.qms; + let principal = SpecialPowers.wrap(document).nodePrincipal; + let request = qms.resetStoragesForPrincipal(principal, "default", "ls"); + request.callback = SpecialPowers.wrapCallback(function() { + localStorage.open(); + callback(); + }); + return; + } + + localStorageFlush(function() { + localStorageReload(callback); + }); +} + +function localStorageClearAll(callback) { + if (SpecialPowers.Services.domStorageManager.nextGenLocalStorageEnabled) { + let qms = SpecialPowers.Services.qms; + let ssm = SpecialPowers.Services.scriptSecurityManager; + + qms.getUsage( + SpecialPowers.wrapCallback(function(request) { + if (request.resultCode != SpecialPowers.Cr.NS_OK) { + callback(); + return; + } + + let clearRequestCount = 0; + for (let item of request.result) { + let principal = ssm.createContentPrincipalFromOrigin(item.origin); + let clearRequest = qms.clearStoragesForPrincipal( + principal, + "default", + "ls" + ); + clearRequestCount++; + clearRequest.callback = SpecialPowers.wrapCallback(function() { + if (--clearRequestCount == 0) { + callback(); + } + }); + } + }) + ); + return; + } + + os().notifyObservers(null, "cookie-changed", "cleared"); + SimpleTest.executeSoon(function() { + callback(); + }); +} + +function localStorageClearDomain(domain, callback) { + if (SpecialPowers.Services.domStorageManager.nextGenLocalStorageEnabled) { + let qms = SpecialPowers.Services.qms; + let principal = SpecialPowers.wrap(document).nodePrincipal; + let request = qms.clearStoragesForPrincipal(principal, "default", "ls"); + let cb = SpecialPowers.wrapCallback(callback); + request.callback = cb; + return; + } + + os().notifyObservers(null, "extension:purge-localStorage", domain); + SimpleTest.executeSoon(function() { + callback(); + }); +} + +function os() { + return SpecialPowers.Services.obs; +} + +function notify(top) { + os().notifyObservers(null, top); +} + +/** + * Enable testing observer notifications in DOMStorageObserver.cpp. + */ +function localStorageEnableTestingMode(cb) { + SpecialPowers.pushPrefEnv( + { + set: [ + ["dom.storage.testing", true], + ["dom.quotaManager.testing", true], + ], + }, + cb + ); +} diff --git a/dom/tests/mochitest/localstorage/mochitest.ini b/dom/tests/mochitest/localstorage/mochitest.ini new file mode 100644 index 0000000000..02fc3b671e --- /dev/null +++ b/dom/tests/mochitest/localstorage/mochitest.ini @@ -0,0 +1,47 @@ +[DEFAULT] +support-files = + frameChromeSlave.html + frameLocalStorageCookieSettings.html + frameKeySync.html + frameMasterEqual.html + frameMasterNotEqual.html + frameOrder.html + frameQuota.html + frameQuotaSessionOnly.html + frameReplace.html + frameSlaveEqual.html + frameSlaveNotEqual.html + interOriginFrame.js + interOriginTest.js + interOriginTest2.js + localStorageCommon.js + frameLocalStorageSessionOnly.html + file_tryAccessSessionStorage.html + windowProxy.html + +[test_brokenUTF-16.html] +[test_bug600307-DBOps.html] +[test_bug746272-1.html] +[test_bug746272-2.html] +skip-if = verify +[test_cookieBlock.html] +[test_embededNulls.html] +[test_keySync.html] +[test_localStorageBase.html] +skip-if = e10s +[test_localStorageBaseSessionOnly.html] +[test_localStorageCookieSettings.html] +[test_localStorageEnablePref.html] +[test_localStorageKeyOrder.html] +[test_localStorageOriginsDiff.html] +[test_localStorageOriginsDomainDiffs.html] +[test_localStorageOriginsEquals.html] +[test_localStorageOriginsPortDiffs.html] +[test_localStorageOriginsSchemaDiffs.html] +[test_localStorageQuota.html] +[test_localStorageQuotaSessionOnly.html] +skip-if = true # bug 1611317 +[test_localStorageQuotaSessionOnly2.html] +skip-if = true # bug 1347690 +[test_localStorageReplace.html] +[test_storageConstructor.html] diff --git a/dom/tests/mochitest/localstorage/page_blank.html b/dom/tests/mochitest/localstorage/page_blank.html new file mode 100644 index 0000000000..157317d64b --- /dev/null +++ b/dom/tests/mochitest/localstorage/page_blank.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_brokenUTF-16.html b/dom/tests/mochitest/localstorage/test_brokenUTF-16.html new file mode 100644 index 0000000000..a9289b195c --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_brokenUTF-16.html @@ -0,0 +1,100 @@ + + +incomplete UTF-16 test + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_bug600307-DBOps.html b/dom/tests/mochitest/localstorage/test_bug600307-DBOps.html new file mode 100644 index 0000000000..cfce270d5d --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_bug600307-DBOps.html @@ -0,0 +1,178 @@ + + +bug 600307 + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_bug746272-1.html b/dom/tests/mochitest/localstorage/test_bug746272-1.html new file mode 100644 index 0000000000..36612fe79f --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_bug746272-1.html @@ -0,0 +1,32 @@ + + +incomplete UTF-16 test + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_bug746272-2.html b/dom/tests/mochitest/localstorage/test_bug746272-2.html new file mode 100644 index 0000000000..31edbc906a --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_bug746272-2.html @@ -0,0 +1,31 @@ + + +incomplete UTF-16 test + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_cookieBlock.html b/dom/tests/mochitest/localstorage/test_cookieBlock.html new file mode 100644 index 0000000000..9cc7495d40 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_cookieBlock.html @@ -0,0 +1,53 @@ + + +cookie blocking test + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_embededNulls.html b/dom/tests/mochitest/localstorage/test_embededNulls.html new file mode 100644 index 0000000000..b12a403b85 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_embededNulls.html @@ -0,0 +1,40 @@ + + +embeded nulls test + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_keySync.html b/dom/tests/mochitest/localstorage/test_keySync.html new file mode 100644 index 0000000000..3f23945e2f --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_keySync.html @@ -0,0 +1,33 @@ + + +localStorage equal origins + + + + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageBase.html b/dom/tests/mochitest/localstorage/test_localStorageBase.html new file mode 100644 index 0000000000..7c243452a4 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageBase.html @@ -0,0 +1,247 @@ + + +localStorage basic test + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageBasePrivateBrowsing_perwindowpb.html b/dom/tests/mochitest/localstorage/test_localStorageBasePrivateBrowsing_perwindowpb.html new file mode 100644 index 0000000000..ada3c2a6ab --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageBasePrivateBrowsing_perwindowpb.html @@ -0,0 +1,256 @@ + + +localStorage basic test, while in sesison only mode + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageBaseSessionOnly.html b/dom/tests/mochitest/localstorage/test_localStorageBaseSessionOnly.html new file mode 100644 index 0000000000..39df8ac519 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageBaseSessionOnly.html @@ -0,0 +1,211 @@ + + +localStorage basic test, while in sesison only mode + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageCookieSettings.html b/dom/tests/mochitest/localstorage/test_localStorageCookieSettings.html new file mode 100644 index 0000000000..32f944561d --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageCookieSettings.html @@ -0,0 +1,77 @@ + + +localStorage cookies settings test + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageEnablePref.html b/dom/tests/mochitest/localstorage/test_localStorageEnablePref.html new file mode 100644 index 0000000000..485f4e010a --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageEnablePref.html @@ -0,0 +1,65 @@ + + +localStorage enable preference test + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageFromChrome.xhtml b/dom/tests/mochitest/localstorage/test_localStorageFromChrome.xhtml new file mode 100644 index 0000000000..fe7be443e9 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageFromChrome.xhtml @@ -0,0 +1,60 @@ + + +localStorage basic test + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html b/dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html new file mode 100644 index 0000000000..a5dbb28b42 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html @@ -0,0 +1,73 @@ + + +localStorage key order test + + + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageOriginsDomainDiffs.html b/dom/tests/mochitest/localstorage/test_localStorageOriginsDomainDiffs.html new file mode 100644 index 0000000000..c1a4417727 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageOriginsDomainDiffs.html @@ -0,0 +1,41 @@ + + +localStorage different domains + + + + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageOriginsEquals.html b/dom/tests/mochitest/localstorage/test_localStorageOriginsEquals.html new file mode 100644 index 0000000000..35cdd86b32 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageOriginsEquals.html @@ -0,0 +1,42 @@ + + +localStorage equal origins + + + + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageOriginsPortDiffs.html b/dom/tests/mochitest/localstorage/test_localStorageOriginsPortDiffs.html new file mode 100644 index 0000000000..d34e0dbcd1 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageOriginsPortDiffs.html @@ -0,0 +1,41 @@ + + +localStorage different port numbers + + + + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageOriginsSchemaDiffs.html b/dom/tests/mochitest/localstorage/test_localStorageOriginsSchemaDiffs.html new file mode 100644 index 0000000000..57e4fb5ab3 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageOriginsSchemaDiffs.html @@ -0,0 +1,41 @@ + + +localStorage different domains + + + + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageQuota.html b/dom/tests/mochitest/localstorage/test_localStorageQuota.html new file mode 100644 index 0000000000..a26252b313 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageQuota.html @@ -0,0 +1,136 @@ + + +localStorage and DOM quota test + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html b/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html new file mode 100644 index 0000000000..71981ffd72 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html @@ -0,0 +1,191 @@ + + +localStorage and DOM quota test + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly.html b/dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly.html new file mode 100644 index 0000000000..1d32776907 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly.html @@ -0,0 +1,134 @@ + + +localStorage and DOM quota test + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly2.html b/dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly2.html new file mode 100644 index 0000000000..156ff02bf6 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageQuotaSessionOnly2.html @@ -0,0 +1,98 @@ + + +localStorage and DOM quota test + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_localStorageReplace.html b/dom/tests/mochitest/localstorage/test_localStorageReplace.html new file mode 100644 index 0000000000..b80c35dbc5 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_localStorageReplace.html @@ -0,0 +1,80 @@ + + +localStorage replace test + + + + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/test_storageConstructor.html b/dom/tests/mochitest/localstorage/test_storageConstructor.html new file mode 100644 index 0000000000..e0aa4e11dc --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_storageConstructor.html @@ -0,0 +1,35 @@ + + +Storage interface + + + + + + + + + + + diff --git a/dom/tests/mochitest/localstorage/windowProxy.html b/dom/tests/mochitest/localstorage/windowProxy.html new file mode 100644 index 0000000000..39ba8eab0f --- /dev/null +++ b/dom/tests/mochitest/localstorage/windowProxy.html @@ -0,0 +1,3 @@ + + + -- cgit v1.2.3