summaryrefslogtreecommitdiffstats
path: root/dom/settings/tests/file_bug1110872.html
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/settings/tests/file_bug1110872.html
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/settings/tests/file_bug1110872.html')
-rw-r--r--dom/settings/tests/file_bug1110872.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/dom/settings/tests/file_bug1110872.html b/dom/settings/tests/file_bug1110872.html
new file mode 100644
index 000000000..3dcc45b82
--- /dev/null
+++ b/dom/settings/tests/file_bug1110872.html
@@ -0,0 +1,47 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>Test for Bug {1110872} Settings API Reloads</title>
+ </head>
+ <body>
+ <script type="application/javascript;version=1.7">
+
+ var createLock = function (msg) {
+ var lock = navigator.mozSettings.createLock();
+ var req = lock.get("wallpaper.image");
+ // We don't actually care about success or failure here, we just
+ // want to know the queue gets processed at all.
+ req.onsuccess = function () {
+ parent.postMessage({name:"done" + msg.data.step}, "*");
+ }
+ req.onerror = function () {
+ parent.postMessage({name:"done" + msg.data.step}, "*");
+ };
+ return req;
+ }
+ window.onload = function() {
+ window.addEventListener("message", function (msg) {
+ var i;
+ var reqs = [];
+ if (msg.data.step == 1) {
+ for (i = 0; i < 100; ++i) {
+ reqs.push(createLock(msg));
+ }
+ } else {
+ reqs.push(createLock(msg));
+ }
+ // If this is our first time through, reload
+ // before the SettingsManager has a chance to get a response
+ // to our query.
+ if (msg.data.step == 1) {
+ location.reload();
+ }
+ });
+ }
+ </script>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id={1110872}">Mozilla Bug {1110872} Inner Window for Reload Test</a>
+ <p id="display"></p>
+ <div id="content" style="display: none">
+ </div>
+ </body>
+</html>