Closed Bug 1254867 Opened 9 years ago Closed 8 years ago

Intermittent e10s browser_windowName.js | Uncaught exception - at :0 - Error: operation not possible on dead CPOW

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
e10s + ---
firefox48 --- wontfix
firefox49 --- fixed
firefox50 --- fixed
firefox51 --- fixed

People

(Reporter: philor, Assigned: kevchan85, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 2 obsolete files)

Blocks: e10s-tests
tracking-e10s: --- → +
Intermittent e10s test failure
Priority: -- → P5
Hey Mike, 

So I looked at the log and saw this:

 07:44:13     INFO -  96 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | Uncaught exception - at :0 - Error: operation not possible on dead CPOW
 1997 
 07:44:13     INFO -  Stack trace:
 1998 
 07:44:13     INFO -      Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
 1999 
 07:44:13     INFO -      this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
 2000 
 07:44:13     INFO -      Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
 2001 
 07:44:13     INFO -      this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
 2002 
 07:44:13     INFO -      this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
 2003 
 07:44:13     INFO -      Tester_execTest@chrome://mochikit/content/browser-test.js:791:9
 2004 
 07:44:13     INFO -      Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:711:7
 2005 
 07:44:13     INFO -      SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59

Am I looking at the right place for stack info for this problem? I did a quick search on promise and mozilla said something about using DOM promise... I'm afraid I have come a block on this one.
Flags: needinfo?(mconley)
Hey kevin,

So what's annoying about this intermittent is that we haven't seen any reports for about a month. Perhaps it went away on its own (either a code change, test change, or machine change could have done that). Because these failures happened before bug 1249698 landed, that means we don't have useful stack information that we can use to help us find where the CPOW is (and so we have to do it by inspection unless we can get a trace with a stack).
Flags: needinfo?(mconley)
By inspection, looking at the test, I've found some likely candidates:

http://searchfox.org/mozilla-central/rev/f80822840bc5f3d2d3cae3ece621ddbce72e7f54/browser/components/contextualidentity/test/browser/browser_windowName.js#50

These calls to browserX.contentDocument are suspect. contentDocument is a CPOW for accessing the DOM document in the selected browser. It's getting at the title, so you can use the same trick you used in the last bug to just get the title directly from the browser.

For the principal, I believe you can use browserX.contentPrincipal, which is NOT a CPOW, and should work fine.
Hi Mike,

So I have a few questions about understanding the code base. I see the method has contentTitle and contentPrincipal as attributes. The code in browser_windowName.js was referencing other variables past contentWindow. I looked here: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Property/contentDocument but did not find anything about it. I would like to know more about the code base... Where can I find more information?
I tried to use .contentPrincipal but the test gave me errors.
Attachment #8785456 - Flags: review?(mconley)
(In reply to kevin from comment #19)
> Hi Mike,
> 
> So I have a few questions about understanding the code base. I see the
> method has contentTitle and contentPrincipal as attributes. The code in
> browser_windowName.js was referencing other variables past contentWindow. I
> looked here:
> https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Property/
> contentDocument but did not find anything about it. I would like to know
> more about the code base... Where can I find more information?

This is tricky stuff. contentDocument is supposed to refer to the document that's loaded within a particular browser tab (the "browser1" variable refers to a "XUL browser", which is the component that shows documents. There's one XUL browser per tab).

So if you were looking at a website that had some nodes in the body of the document, you could (in theory) do:

dump("There are " + Array.from(browser.contentDocument.body.children).length + " nodes in the browser document body\n");

to print out the number of nodes.

HOWEVER, with e10s (a.k.a "Electrolysis", a.k.a. multi-process Firefox), the parent process (which the test runs in) is not supposed to have direct access to that contentDocument, or any of the things that are being rendered in it. contentWindow is the same.

Other properties on the XUL browser are not referring to things within the content area. For example, contentTitle, contentPrincipal. Unfortunately, XUL browser isn't super well documented, but here's what we've got:

https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/browser

That documentation should link to the various things that the XUL browser is pointing at if you're curious.
Comment on attachment 8785456 [details] [diff] [review]
bug1254867_intermittent_e10s.diff

Review of attachment 8785456 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks Kevin, see below.

::: browser/components/contextualidentity/test/browser/browser_windowName.js
@@ +51,1 @@
>    is(browser1.contentDocument.nodePrincipal.userContextId, 1, "Tab1 UCI must be 1");

Hm, we definitely don't want to use these CPOWs here for the principal. What was the error that was thrown when you tried to switch these to use browser1.contentPrincipal ?
Attachment #8785456 - Flags: review?(mconley) → review-
Hey Mike, 

So this is the out put of the last two tests I did. The first was one with changes from (browserX.contentDocument.nodePrincipal.userContextId, X, "Tab1 UCI must be X") to 
(browserX.contentPrincipal, "TabX UCI must be X") I also tried (browserX.contentPrincipal, X, "TabX UCI must be 1") and (browserX.contentPrincipal). 

So it could be because I do not understand what the is() function is trying to do that caused the error. 
any guidance from there would be appreciated. 


Kevins-iMac:projects Kevin$ ./mach mochitest browser/components/contextualidentity/test/browser/browser_windowName.js

######
### Now running mochitest-browser.
######

Checking for orphan ssltunnel processes...
Checking for orphan xpcshell processes...
SUITE-START | Running 1 tests
dir: browser/components/contextualidentity/test/browser
mozprofile.addons WARNING | Could not install /Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/extensions/mozscreenshots: [Errno 2] No such file or directory: '/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/extensions/mozscreenshots/install.rdf'
pk12util: PKCS12 IMPORT SUCCESSFUL
MochitestServer : launching [u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/bin/xpcshell', '-g', u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/Nightly.app/Contents/Resources', '-v', '170', '-f', u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/s4/k_q4xbm118ngj2wx61jwws0w0000gn/T/tmp8p6bhZ.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false;", '-f', '/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/server.js']
runtests.py | Server pid: 96870
runtests.py | Websocket server pid: 96871
runtests.py | SSL tunnel pid: 96872
runtests.py | Running with e10s: True
runtests.py | Running tests: start.

runtests.py | Application pid: 96873
TEST-INFO | started process Main app process
1472243320248	Marionette	INFO	Listening on port 2828
0 INFO *** Start BrowserChrome Test Results ***
1 INFO checking window state
2 INFO TEST-START | browser/components/contextualidentity/test/browser/browser_windowName.js
3 INFO Entering test bound setup
4 INFO Leaving test bound setup
5 INFO Entering test bound test
6 INFO Creating first tab...
7 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?old" line: 0}]
8 INFO Creating second tab...
9 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?old" line: 0}]
10 INFO Opening a window from the first tab...
11 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab1 title must be 'old' -
12 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab1 UCI must be 1 - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected 1
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:51
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
13 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab2 title must be 'old' -
14 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab2 UCI must be 2 - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected 2
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:54
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
15 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 UCI must be 1 - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected 1
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:61
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
16 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 is not browser 1 -
17 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 is not browser 2 -
18 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?new" line: 0}]
19 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | We have tab3 -
20 INFO Leaving test bound test
MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
MEMORY STAT | vsize 3098MB | residentFast 343MB | heapAllocated 138MB
21 INFO TEST-OK | browser/components/contextualidentity/test/browser/browser_windowName.js | took 322ms
22 INFO checking window state
Completed ShutdownLeaks collections in process 96874
Completed ShutdownLeaks collections in process 96873
23 INFO TEST-START | Shutdown
24 INFO Browser Chrome Test Summary
25 INFO Passed:  5
26 INFO Failed:  3
27 INFO Todo:    0
28 INFO Mode:    e10s
29 INFO *** End BrowserChrome Test Results ***
-*- PresentationControlService.js: PresentationControlService - close
TEST-INFO | Main app process: exit 0
runtests.py | Application ran for: 0:00:04.294758
zombiecheck | Reading PID log: /var/folders/s4/k_q4xbm118ngj2wx61jwws0w0000gn/T/tmpqu87bppidlog
==> process 96873 launched child process 96874
zombiecheck | Checking for orphan process with PID: 96874
Stopping web server
Stopping web socket server
Stopping ssltunnel
WARNING | leakcheck | refcount logging is off, so leaks can't be detected!
runtests.py | Running tests: end.
TEST-INFO | checking window state
Browser Chrome Test Summary
	Passed: 5
	Failed: 3
	Todo: 0
	Mode: e10s
*** End BrowserChrome Test Results ***
The following tests failed:
30 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab1 UCI must be 1 - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected 1
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:51
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
31 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab2 UCI must be 2 - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected 2
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:54
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
32 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 UCI must be 1 - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected 1
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:61
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
SUITE-END | took 4s



#############################Test two########################
Kevins-iMac:projects Kevin$ ./mach mochitest browser/components/contextualidentity/test/browser/browser_windowName.js

######
### Now running mochitest-browser.
######

Checking for orphan ssltunnel processes...
Checking for orphan xpcshell processes...
SUITE-START | Running 1 tests
dir: browser/components/contextualidentity/test/browser
mozprofile.addons WARNING | Could not install /Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/extensions/mozscreenshots: [Errno 2] No such file or directory: '/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/extensions/mozscreenshots/install.rdf'
pk12util: PKCS12 IMPORT SUCCESSFUL
MochitestServer : launching [u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/bin/xpcshell', '-g', u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/Nightly.app/Contents/Resources', '-v', '170', '-f', u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/s4/k_q4xbm118ngj2wx61jwws0w0000gn/T/tmp0Szh6U.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false;", '-f', '/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/server.js']
runtests.py | Server pid: 96922
runtests.py | Websocket server pid: 96923
runtests.py | SSL tunnel pid: 96924
runtests.py | Running with e10s: True
runtests.py | Running tests: start.

runtests.py | Application pid: 96925
TEST-INFO | started process Main app process
1472243344253	Marionette	INFO	Listening on port 2828
0 INFO *** Start BrowserChrome Test Results ***
1 INFO checking window state
2 INFO TEST-START | browser/components/contextualidentity/test/browser/browser_windowName.js
3 INFO Entering test bound setup
4 INFO Leaving test bound setup
5 INFO Entering test bound test
6 INFO Creating first tab...
7 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?old" line: 0}]
8 INFO Creating second tab...
9 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?old" line: 0}]
10 INFO Opening a window from the first tab...
11 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab1 title must be 'old' -
12 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab1 UCI must be 1 -
13 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab2 title must be 'old' -
14 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab2 UCI must be 2 -
15 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 UCI must be 1 -
16 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 is not browser 1 -
17 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 is not browser 2 -
18 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?new" line: 0}]
19 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | We have tab3 -
20 INFO Leaving test bound test
MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
MEMORY STAT | vsize 3097MB | residentFast 341MB | heapAllocated 137MB
21 INFO TEST-OK | browser/components/contextualidentity/test/browser/browser_windowName.js | took 327ms
22 INFO checking window state
Completed ShutdownLeaks collections in process 96926
Completed ShutdownLeaks collections in process 96925
23 INFO TEST-START | Shutdown
24 INFO Browser Chrome Test Summary
25 INFO Passed:  8
26 INFO Failed:  0
27 INFO Todo:    0
28 INFO Mode:    e10s
29 INFO *** End BrowserChrome Test Results ***
-*- PresentationControlService.js: PresentationControlService - close
TEST-INFO | Main app process: exit 0
runtests.py | Application ran for: 0:00:04.258213
zombiecheck | Reading PID log: /var/folders/s4/k_q4xbm118ngj2wx61jwws0w0000gn/T/tmpJ8ZoyQpidlog
==> process 96925 launched child process 96926
zombiecheck | Checking for orphan process with PID: 96926
Stopping web server
Stopping web socket server
Stopping ssltunnel
WARNING | leakcheck | refcount logging is off, so leaks can't be detected!
runtests.py | Running tests: end.
TEST-INFO | checking window state
Browser Chrome Test Summary
	Passed: 8
	Failed: 0
	Todo: 0
	Mode: e10s
*** End BrowserChrome Test Results ***
SUITE-END | took 4s

##################test 3######################


Kevins-iMac:projects Kevin$ ./mach mochitest browser/components/contextualidentity/test/browser/browser_windowName.js

######
### Now running mochitest-browser.
######

Checking for orphan ssltunnel processes...
Checking for orphan xpcshell processes...
SUITE-START | Running 1 tests
dir: browser/components/contextualidentity/test/browser
mozprofile.addons WARNING | Could not install /Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/extensions/mozscreenshots: [Errno 2] No such file or directory: '/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/extensions/mozscreenshots/install.rdf'
pk12util: PKCS12 IMPORT SUCCESSFUL
MochitestServer : launching [u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/bin/xpcshell', '-g', u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/Nightly.app/Contents/Resources', '-v', '170', '-f', u'/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/s4/k_q4xbm118ngj2wx61jwws0w0000gn/T/tmpQfiCD0.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false;", '-f', '/Users/Kevin/Documents/projects/obj-x86_64-apple-darwin15.6.0/_tests/testing/mochitest/server.js']
runtests.py | Server pid: 97315
runtests.py | Websocket server pid: 97316
runtests.py | SSL tunnel pid: 97317
runtests.py | Running with e10s: True
runtests.py | Running tests: start.

runtests.py | Application pid: 97318
TEST-INFO | started process Main app process
1472259639213	Marionette	INFO	Listening on port 2828
0 INFO *** Start BrowserChrome Test Results ***
1 INFO checking window state
2 INFO TEST-START | browser/components/contextualidentity/test/browser/browser_windowName.js
3 INFO Entering test bound setup
4 INFO Leaving test bound setup
5 INFO Entering test bound test
6 INFO Creating first tab...
7 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?old" line: 0}]
8 INFO Creating second tab...
9 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?old" line: 0}]
10 INFO Opening a window from the first tab...
11 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab1 title must be 'old' - 
12 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | undefined assertion name - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected undefined
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:51
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
13 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab2 title must be 'old' - 
14 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | undefined assertion name - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected undefined
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:54
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
15 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | undefined assertion name - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected undefined
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:61
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
16 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 is not browser 1 - 
17 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | Tab3 is not browser 2 - 
18 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://mochi.test:8888/browser/browser/components/contextualidentity/test/browser/empty_file.html?new" line: 0}]
19 INFO TEST-PASS | browser/components/contextualidentity/test/browser/browser_windowName.js | We have tab3 - 
20 INFO Leaving test bound test
MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
MEMORY STAT | vsize 3098MB | residentFast 342MB | heapAllocated 138MB
21 INFO TEST-OK | browser/components/contextualidentity/test/browser/browser_windowName.js | took 522ms
22 INFO checking window state
Completed ShutdownLeaks collections in process 97319
Completed ShutdownLeaks collections in process 97318
23 INFO TEST-START | Shutdown
24 INFO Browser Chrome Test Summary
25 INFO Passed:  5
26 INFO Failed:  3
27 INFO Todo:    0
28 INFO Mode:    e10s
29 INFO *** End BrowserChrome Test Results ***
-*- PresentationControlService.js: PresentationControlService - close
TEST-INFO | Main app process: exit 0
runtests.py | Application ran for: 0:00:08.196661
zombiecheck | Reading PID log: /var/folders/s4/k_q4xbm118ngj2wx61jwws0w0000gn/T/tmpLjoMHJpidlog
==> process 97318 launched child process 97319
zombiecheck | Checking for orphan process with PID: 97319
Stopping web server
Stopping web socket server
Stopping ssltunnel
WARNING | leakcheck | refcount logging is off, so leaks can't be detected!
runtests.py | Running tests: end.
TEST-INFO | checking window state
Browser Chrome Test Summary
	Passed: 5
	Failed: 3
	Todo: 0
	Mode: e10s
*** End BrowserChrome Test Results ***
The following tests failed:
30 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | undefined assertion name - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected undefined
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:51
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
31 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | undefined assertion name - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected undefined
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:54
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
32 INFO TEST-UNEXPECTED-FAIL | browser/components/contextualidentity/test/browser/browser_windowName.js | undefined assertion name - Got [xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)], expected undefined
Stack trace:
    chrome://mochikit/content/browser-test.js:test_is:960
    chrome://mochitests/content/browser/browser/components/contextualidentity/test/browser/browser_windowName.js:test:61
    Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
    this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
    Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
    this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
    this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
    TaskImpl_run@resource://gre/modules/Task.jsm:324:13
    Async*TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:395:7
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:388:16
    TaskImpl_run@resource://gre/modules/Task.jsm:327:13
    TaskImpl@resource://gre/modules/Task.jsm:280:3
    createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:254:14
    Task_spawn@resource://gre/modules/Task.jsm:168:12
    Tester_execTest@chrome://mochikit/content/browser-test.js:784:9
    Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:704:7
    SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:741:59
SUITE-END | took 11s
(In reply to kevin from comment #23)
Hey Kevin,

I think I see the problem here:

We're trying to replace the usage of contentDocument.nodePrincipal in "browser2.contentDocument.nodePrincipal.userContextId" with browser2.contentPrincipal.

However, we still need to access the userContextId on that principal. So we should ultimately end up replacing each instance with:

browser2.contentPrincipal.userContextId

Does that work?
Assignee: nobody → kevchan85
Flags: needinfo?(kevchan85)
The addition of .usercontextID did help! Thanks.
Flags: needinfo?(kevchan85)
Attachment #8786163 - Flags: review?(mconley)
Attachment #8785456 - Attachment is obsolete: true
Comment on attachment 8786163 [details] [diff] [review]
bug1254867_intermittent_e10s.diff

Review of attachment 8786163 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/components/contextualidentity/test/browser/browser_windowName.js
@@ +50,1 @@
>    is(browser1.contentDocument.nodePrincipal.userContextId, 1, "Tab1 UCI must be 1");

I'm afraid this patch is still using contentDocument.nodePrincipal. Did you forget to commit your change?
Attachment #8786163 - Flags: review?(mconley) → review-
Sorry I uploaded the wrong file. This should be the right one
Attachment #8786163 - Attachment is obsolete: true
Attachment #8786893 - Flags: review?(mconley)
Mentor: mconley
Comment on attachment 8786893 [details] [diff] [review]
bug1254867_intermittent_e10.diff

Review of attachment 8786893 [details] [diff] [review]:
-----------------------------------------------------------------

This looks right to me! I've pushed the patch to try.
Attachment #8786893 - Flags: review?(mconley) → review+
Try looks good!

Author: kevin <kevchan85@yahoo.com>
Bug number: 1254867
Commit message: Bug 1134307 - Remove some CPOWs from browser_windowName.js to avoid a dead CPOW intermittent. r=mconley
Keywords: checkin-needed
Thanks for your work on this stuff, kevin!

If you'd like, feel free to join us in #fx-team on irc.mozilla.org[1] if you want more real-time communication. Also, you got a shout-out last Tuesday in the Firefox Desktop engineering meeting[2] for all of your hard work!

[1]: https://wiki.mozilla.org/IRC
[2]: https://wiki.mozilla.org/Firefox/Meeting
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4df393dfb6f1
Remove some CPOWs from browser_windowName.js to avoid a dead CPOW intermittent. r=mconley
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/4df393dfb6f1
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Flags: needinfo?(kevchan85)
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: