Bug 1330822 - Remove CPOWs from browser_usercontext.js. r=Gijs
authorBlake Kaplan <mrbkap@gmail.com>
Thu, 12 Jan 2017 15:33:05 -0800
changeset 463624 46b7136b8790630322141034c03deb5bc51a1867
parent 463623 f0e76631e0eb450d7a10a5474a4b25c057033377
child 463625 79079769f4c9f345a8f7fdc6f878247135280e2c
push id42137
push userjichen@mozilla.com
push dateThu, 19 Jan 2017 15:08:06 +0000
reviewersGijs
bugs1330822
milestone53.0a1
Bug 1330822 - Remove CPOWs from browser_usercontext.js. r=Gijs MozReview-Commit-ID: 6gFJKF76ZDE
browser/components/contextualidentity/test/browser/browser_usercontext.js
--- a/browser/components/contextualidentity/test/browser/browser_usercontext.js
+++ b/browser/components/contextualidentity/test/browser/browser_usercontext.js
@@ -64,17 +64,17 @@ add_task(function* test() {
 
     let tab = openTabInUserContext(BASE_URI, userContextId);
 
     // wait for load
     let browser = gBrowser.getBrowserForTab(tab);
     yield BrowserTestUtils.browserLoaded(browser);
 
     // get the title
-    let title = browser.contentDocument.title.trim().split("|");
+    let title = browser.contentTitle.trim().split("|");
 
     // check each item in the title and validate it meets expectatations
     for (let part of title) {
       let [storageMethodName, value] = part.split("=");
       is(value, expectedContext,
             "the title reflects the expected contextual identity of " +
             expectedContext + " for method " + storageMethodName + ": " + value);
     }