Bug 1363975 - Have loadOneTab() tests provide the correct triggeringPrincipal. r=gijs
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Wed, 31 May 2017 20:36:43 +0200
changeset 412127 5ef0facc604aede5b1997d19ca8a77820e18a4e5
parent 412126 96875dd613f8bb6691f5c0bbcfd28a0501145f79
child 412128 16af57faa3e09019e7b69786e55c7c941e099836
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgijs
bugs1363975
milestone55.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 1363975 - Have loadOneTab() tests provide the correct triggeringPrincipal. r=gijs
accessible/tests/mochitest/events/test_scroll.xul
accessible/tests/mochitest/relations/test_embeds.xul
accessible/tests/mochitest/states/test_visibility.html
--- a/accessible/tests/mochitest/events/test_scroll.xul
+++ b/accessible/tests/mochitest/events/test_scroll.xul
@@ -59,17 +59,23 @@
       ];
 
       this.unexpectedEventSeq = [
         new invokerChecker(EVENT_SCROLLING_START, getAnchorJumpInTabDocument, 1)
       ];
 
       this.invoke = function loadTabInBackground_invoke()
       {
-        tabBrowser().loadOneTab(aURL, null, "", null, true);
+        tabBrowser().loadOneTab(aURL, {
+          referrerURI: null,
+          charset: "",
+          postData: null,
+          inBackground: true,
+          triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
+        });
       }
 
       this.getID = function loadTabInBackground_getID()
       {
         return "load tab in background: " + aURL;
       }
     }
 
--- a/accessible/tests/mochitest/relations/test_embeds.xul
+++ b/accessible/tests/mochitest/relations/test_embeds.xul
@@ -51,17 +51,23 @@
         return "load uri " + aURI;
       }
     }
 
     function loadOneTab(aURI)
     {
       this.invoke = function loadOneTab_invoke()
       {
-        tabBrowser().loadOneTab(aURI, null, null, null, false);
+        tabBrowser().loadOneTab(aURI, {
+          referrerURI: null,
+          charset: null,
+          postData: null,
+          inBackground: false,
+          triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
+        });
       }
 
       this.eventSeq = [
         new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, currentTabDocument)
       ];
 
       this.finalCheck = function loadURI_finalCheck()
       {
--- a/accessible/tests/mochitest/states/test_visibility.html
+++ b/accessible/tests/mochitest/states/test_visibility.html
@@ -48,17 +48,23 @@
     function addTabInvoker(aURL, aFunc)
     {
       this.eventSeq = [
         new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 1)
       ];
 
       this.invoke = function addTabInvoker_invoke()
       {
-        tabBrowser().loadOneTab(aURL, null, "", null, false);
+        tabBrowser().loadOneTab(aURL, {
+          referrerURI: null,
+          charset: "",
+          postData: null,
+          inBackground: false,
+          triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
+        });
       }
 
       this.finalCheck = function addTabInvoker_finalCheck()
       {
         aFunc.call();
       }
 
       this.getID = function addTabInvoker_getID()