Bug 1383011 : rewrite test_principalInherit.xul. r=smaug
authorYoshi Huang <allstars.chh@mozilla.com>
Fri, 21 Jul 2017 14:39:28 +0800
changeset 419222 7accd152f3e0ebe51dd91427413419be545477a4
parent 419221 1f551cfb7a2d3699093cfa3411f4fe153cdc6c19
child 419223 5edfe512460d3d2f5f9577e7f76c4361bc9f7292
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
bugs1383011
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 1383011 : rewrite test_principalInherit.xul. r=smaug Use legacy data: URI behavior to make this test simpler. If we were to use a new document for the iframe, we need to figure out how to do postMessage from content side to a XUL window
docshell/test/chrome/test_principalInherit.xul
--- a/docshell/test/chrome/test_principalInherit.xul
+++ b/docshell/test/chrome/test_principalInherit.xul
@@ -76,17 +76,18 @@ var tests = [
       });
       newWin.document.documentElement.appendChild(frame);
     });
   }
 ];
 
 addLoadEvent(function onLoad() {
   ok(Components.stack, "this test must be run with the system principal");
-  SimpleTest.executeSoon(nextTest);
+  SpecialPowers.pushPrefEnv({"set": [
+    ["security.data_uri.unique_opaque_origin", false]]}, nextTest);
 });
 
 function loadListener(target, func) {
   target.addEventListener("load", function lis() {
     target.removeEventListener("load", lis, true);
     func();
   }, true);
 }