Bug 1254867 - Remove some CPOWs from browser_windowName.js to avoid a dead CPOW intermittent. r=mconley, a=test-only
authorKevin Chan <Kevchan85@yahoo.com>
Wed, 31 Aug 2016 12:23:00 -0400
changeset 333037 d76058fbf56fd00bc0e69136a1f8ae73047efe74
parent 333036 8224f8bc9ebde49a01063402615a53168aa4694b
child 333038 99c0c53f5ea3ca670d75e420d165de97e60d6db1
push id9975
push userryanvm@gmail.com
push dateFri, 02 Sep 2016 01:47:46 +0000
treeherdermozilla-aurora@d76058fbf56f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, test-only
bugs1254867
milestone50.0a2
Bug 1254867 - Remove some CPOWs from browser_windowName.js to avoid a dead CPOW intermittent. r=mconley, a=test-only
browser/components/contextualidentity/test/browser/browser_windowName.js
--- a/browser/components/contextualidentity/test/browser/browser_windowName.js
+++ b/browser/components/contextualidentity/test/browser/browser_windowName.js
@@ -42,28 +42,28 @@ add_task(function* test() {
   info("Opening a window from the first tab...");
   yield ContentTask.spawn(browser1, { url: BASE_URI + '?new' }, function(opts) {
     yield (new content.window.wrappedJSObject.Promise(resolve => {
       let w = content.window.wrappedJSObject.open(opts.url, 'tab-2');
       w.onload = function() { resolve(); }
     }));
   });
 
-  is(browser1.contentDocument.title, '?old', "Tab1 title must be 'old'");
-  is(browser1.contentDocument.nodePrincipal.userContextId, 1, "Tab1 UCI must be 1");
+  is(browser1.contentTitle, '?old', "Tab1 title must be 'old'");
+  is(browser1.contentPrincipal.userContextId, 1, "Tab1 UCI must be 1");
 
-  is(browser2.contentDocument.title, '?old', "Tab2 title must be 'old'");
-  is(browser2.contentDocument.nodePrincipal.userContextId, 2, "Tab2 UCI must be 2");
+  is(browser2.contentTitle, '?old', "Tab2 title must be 'old'");
+  is(browser2.contentPrincipal.userContextId, 2, "Tab2 UCI must be 2");
 
   let found = false;
   for (let i = 0; i < gBrowser.tabContainer.childNodes.length; ++i) {
     let tab = gBrowser.tabContainer.childNodes[i];
     let browser = gBrowser.getBrowserForTab(tab);
-    if (browser.contentDocument.title == '?new') {
-      is(browser.contentDocument.nodePrincipal.userContextId, 1, "Tab3 UCI must be 1");
+    if (browser.contentTitle == '?new') {
+      is(browser.contentPrincipal.userContextId, 1, "Tab3 UCI must be 1");
       isnot(browser, browser1, "Tab3 is not browser 1");
       isnot(browser, browser2, "Tab3 is not browser 2");
       gBrowser.removeTab(tab);
       found = true;
       break;
     }
   }