Bug 1382531 - Part 2: add pref for docshell/base/crashtests/914521.html. r=smaug
authorYoshi Huang <allstars.chh@mozilla.com>
Mon, 24 Jul 2017 18:15:48 +0800
changeset 419491 49eda81bca010b3547f176538ed24d99f4115cb7
parent 419490 808600f024419fe90f24c9ace7c7cf65a4e31855
child 419492 853cfa601a8f4d94f94af50505e2960624e1ca12
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1382531, 914521
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1382531 - Part 2: add pref for docshell/base/crashtests/914521.html. r=smaug I found that use a seperate document will have differnet behavior than the original test, so configured this test will run with pref off.
docshell/base/crashtests/914521.html
--- a/docshell/base/crashtests/914521.html
+++ b/docshell/base/crashtests/914521.html
@@ -15,19 +15,27 @@ function f()
     }
 
     window.addEventListener("popstate", spin);
     window.close();
     window.location = "#c";
     finish();
 }
 
+function init()
+{
+  SpecialPowers.pushPrefEnv({"set": [["security.data_uri.unique_opaque_origin", false]]}, start);
+}
+
 function start()
 {
     var html = "<script>" + f + "<\/script><body onload=f()>";
     var win = window.open("data:text/html," + encodeURIComponent(html), null, "width=300,height=300");
-    win.finish = function() { document.documentElement.removeAttribute("class"); };
+    win.finish = function() {
+      SpecialPowers.clearUserPref("security.data_uri.unique_opaque_origin");
+      document.documentElement.removeAttribute("class");
+    };
 }
 
 </script>
 </head>
-<body onload="start();"></body>
+<body onload="init();"></body>
 </html>