Bug 1492482 - Remove CPOW usage from browser_usercontext.js. r=Felipe
authorMike Conley <mconley@mozilla.com>
Tue, 02 Oct 2018 17:57:20 +0000
changeset 494965 517aee4235da13396a5e3dfd5dda8098277981c5
parent 494964 17c32940a63fed73043fb6ce13483b567a62259e
child 494966 8e71dda1db8298d36c7ed73cf679a532c7fbf3af
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe
bugs1492482
milestone64.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 1492482 - Remove CPOW usage from browser_usercontext.js. r=Felipe Depends on D6954 Differential Revision: https://phabricator.services.mozilla.com/D6955
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(async function test() {
 
     let tab = openTabInUserContext(BASE_URI, userContextId);
 
     // wait for load
     let browser = gBrowser.getBrowserForTab(tab);
     await BrowserTestUtils.browserLoaded(browser);
 
     // get the title
-    let title = browser.contentDocumentAsCPOW.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);
     }