Bug 1330822 - Remove CPOWs from browser_usercontext.js. r=Gijs draft
authorBlake Kaplan <mrbkap@gmail.com>
Thu, 12 Jan 2017 15:33:05 -0800
changeset 463347 be1d00ff9e58fe0ac7bd5442ea6cf5e0a73fb592
parent 463342 96cb95af530477edb66ae48d98c18533476e57bb
child 463348 fc5158ab34dbe9fb469a7a8a171a8e30b1dbff54
push id42038
push userbmo:mrbkap@mozilla.com
push dateWed, 18 Jan 2017 23:45:52 +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);
     }