Bug: Intermittent browser/components/sessionstore/test/browser_privatetabs.js | A promise chain failed to handle a rejection: can't access property "getAttribute", tab is undefined - stack: crashFrame@resource://testing-common/BrowserTestUtils.jsm:1789:11
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-03-27 17:16:17+00:00
Resolved: 2021-07-06 17:04:54+00:00

**Filed by:** opoprus [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=295091307&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/HRicVxbSSo6bn_x2PAyZUg/runs/0/artifacts/public/logs/live_backing.log

---

[task 2020-03-27T17:01:37.220Z] 17:01:37     INFO - TEST-START | browser/components/sessionstore/test/browser_privatetabs.js
[task 2020-03-27T17:01:37.235Z] 17:01:37     INFO - GECKO(5592) | [Child 3540: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 018AB800 == 3 [pid = 3540] [id = {30adecce-b3fa-456e-9619-9d60bdc74aa2}]
[task 2020-03-27T17:01:37.235Z] 17:01:37     INFO - GECKO(5592) | [Child 3540: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (0180B350) [pid = 3540] [serial = 59] [outer = 00000000]
[task 2020-03-27T17:01:37.235Z] 17:01:37     INFO - GECKO(5592) | [Child 3540: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (018AD400) [pid = 3540] [serial = 60] [outer = 0180B350]
[task 2020-03-27T17:01:37.315Z] 17:01:37     INFO - GECKO(5592) | [Parent 3236, IPDL Background] WARNING: 'cms->ExpectFutureSource(aClientInfo)', file /builds/worker/checkouts/gecko/dom/clients/manager/ClientManagerParent.cpp, line 118
[task 2020-03-27T17:01:37.315Z] 17:01:37     INFO - GECKO(5592) | Crash cleaned up
[task 2020-03-27T17:01:37.330Z] 17:01:37     INFO - GECKO(5592) | JavaScript error: resource://testing-common/BrowserTestUtils.jsm, line 1790: TypeError: can't access property "getAttribute", tab is undefined
[task 2020-03-27T17:01:37.345Z] 17:01:37     INFO - GECKO(5592) | [Child 3540: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (076E9800) [pid = 3540] [serial = 61] [outer = 0180B350]
[task 2020-03-27T17:01:37.380Z] 17:01:37     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 074E5400 == 5 [pid = 4676] [id = {311eebd2-f7cd-4734-b366-ea9ea7969976}]
[task 2020-03-27T17:01:37.380Z] 17:01:37     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (0190C010) [pid = 4676] [serial = 324] [outer = 00000000]
[task 2020-03-27T17:01:37.380Z] 17:01:37     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 14 (074E7800) [pid = 4676] [serial = 325] [outer = 0190C010]
[task 2020-03-27T17:01:37.401Z] 17:01:37     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 15 (0CF1B400) [pid = 4676] [serial = 326] [outer = 0190C010]
[task 2020-03-27T17:01:37.601Z] 17:01:37     INFO - GECKO(5592) | [Parent 3236, IPDL Background] WARNING: 'cms->ExpectFutureSource(aClientInfo)', file /builds/worker/checkouts/gecko/dom/clients/manager/ClientManagerParent.cpp, line 118
[task 2020-03-27T17:01:37.628Z] 17:01:37     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 16 (0CFC9800) [pid = 4676] [serial = 327] [outer = 0190C010]
[task 2020-03-27T17:01:37.748Z] 17:01:37     INFO - GECKO(5592) | [Child 3488: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 013AB800 == 3 [pid = 3488] [id = {0179ea61-020f-4ca5-84f6-67c2bd10fde8}]
[task 2020-03-27T17:01:37.748Z] 17:01:37     INFO - GECKO(5592) | [Child 3488: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (0130CBC0) [pid = 3488] [serial = 25] [outer = 00000000]
[task 2020-03-27T17:01:37.748Z] 17:01:37     INFO - GECKO(5592) | [Child 3488: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (071E8400) [pid = 3488] [serial = 26] [outer = 0130CBC0]
[task 2020-03-27T17:01:37.795Z] 17:01:37     INFO - TEST-INFO | started process screenshot
[task 2020-03-27T17:01:37.862Z] 17:01:37     INFO - TEST-INFO | screenshot: exit 0
[task 2020-03-27T17:01:37.862Z] 17:01:37     INFO - Buffered messages logged at 17:01:37
[task 2020-03-27T17:01:37.862Z] 17:01:37     INFO - Entering test bound cleanup
[task 2020-03-27T17:01:37.863Z] 17:01:37     INFO - Forgetting closed tabs
[task 2020-03-27T17:01:37.863Z] 17:01:37     INFO - Leaving test bound cleanup
[task 2020-03-27T17:01:37.863Z] 17:01:37     INFO - Entering test bound 
[task 2020-03-27T17:01:37.863Z] 17:01:37     INFO - Setting up public tab
[task 2020-03-27T17:01:37.864Z] 17:01:37     INFO - Console message: [JavaScript Error: "TypeError: can't access property "getAttribute", tab is undefined" {file: "resource://testing-common/BrowserTestUtils.jsm" line: 1790}]
[task 2020-03-27T17:01:37.864Z] 17:01:37     INFO - Setting up private tab
[task 2020-03-27T17:01:37.864Z] 17:01:37     INFO - Flush to make sure chrome received all data.
[task 2020-03-27T17:01:37.864Z] 17:01:37     INFO - Checking out state
[task 2020-03-27T17:01:37.878Z] 17:01:37     INFO - State: {"version":["sessionrestore",1],"windows":[{"tabs":[{"entries":[{"url":"http://example.com/public/0.8110457422847537","title":"404 Not Found","cacheKey":0,"ID":34,"docshellUUID":"{30adecce-b3fa-456e-9619-9d60bdc74aa2}","originalURI":"http://example.com/public/0.8110457422847537","resultPrincipalURI":"http://example.com/public/0.8110457422847537","loadReplace":false,"loadReplace2":true,"principalToInherit_base64":"eyIwIjp7IjAiOiJtb3otbnVsbHByaW5jaXBhbDp7OTEwYjVjYjctZjYxNS00ZWY3LTkyYTYtNDNhNDQzNDY0MTBjfSJ9fQ==","storagePrincipalToInherit_base64":"eyIwIjp7IjAiOiJtb3otbnVsbHByaW5jaXBhbDp7OTEwYjVjYjctZjYxNS00ZWY3LTkyYTYtNDNhNDQzNDY0MTBjfSJ9fQ==","triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":36507222051,"persist":true}],"lastAccessed":1585328497216,"hidden":false,"attributes":{},"userContextId":0,"index":1,"requestedIndex":0,"image":null}],"selected":0,"_closedTabs":[],"busy":false,"width":1168,"height":959,"screenX":4,"screenY":4,"sizemode":"maximized","sizemodeBeforeMinimized":"maximized","zIndex":1}],"selectedWindow":1,"_closedWindows":[{"tabs":[{"entries":[{"url":"about:blank","title":"about:blank","cacheKey":0,"ID":485540498,"docshellUUID":"{5e668143-56e4-4ebc-8fbd-1324247677af}","resultPrincipalURI":null,"principalToInherit_base64":"eyIwIjp7IjAiOiJtb3otbnVsbHByaW5jaXBhbDp7YTAyYmMzYTItODMzZC00ZmVhLWFmN2QtZjQzNDZkYzBjNzgxfSJ9fQ==","storagePrincipalToInherit_base64":"eyIwIjp7IjAiOiJtb3otbnVsbHByaW5jaXBhbDp7YTAyYmMzYTItODMzZC00ZmVhLWFmN2QtZjQzNDZkYzBjNzgxfSJ9fQ==","triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":32212254811,"persist":false}],"lastAccessed":1585328456363,"hidden":false,"attributes":{},"index":1,"userContextId":0,"image":null,"requestedIndex":0},{"entries":[{"url":"about:logo","title":"(PNG Image, 300 × 236 pixels)","cacheKey":0,"ID":485541054,"docshellUUID":"{eb4ce48f-6561-40d0-8828-3546fec64e5c}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":313,"persist":true}],"lastAccessed":1585328473554,"hidden":false,"attributes":{},"index":1,"userContextId":0,"image":null,"requestedIndex":0}],"selected":2,"_closedTabs":[{"state":{"entries":[{"url":"about:newinstall","title":"Important News","cacheKey":0,"ID":485540478,"docshellUUID":"{5025ee6f-9420-4348-9bb8-5761a2bb17a9}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":15032385641,"persist":true}],"lastAccessed":1585328473519,"hidden":false,"attributes":{},"userContextId":0,"index":1,"requestedIndex":0,"image":"chrome://branding/content/icon32.png"},"title":"Important News","image":"chrome://branding/content/icon32.png","pos":2,"closedAt":1585328473524,"closedId":393},{"state":{"entries":[{"url":"about:welcome","title":"Welcome to Nightly","cacheKey":0,"ID":485538931,"docshellUUID":"{525bbf75-13cf-4f0d-9efc-e2e831e42195}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":25769803795,"persist":true}],"lastAccessed":1585328471918,"hidden":false,"attributes":{},"userContextId":0,"index":1,"requestedIndex":0,"image":"chrome://branding/content/icon32.png"},"title":"Welcome to Nightly","image":"chrome://branding/content/icon32.png","pos":2,"closedAt":1585328471923,"closedId":391},{"state":{"entries":[{"url":"about:sessionrestore","title":"Restore Session","cacheKey":0,"ID":485535577,"docshellUUID":"{1596f3eb-a761-4e3c-b4d5-0455e04d5bbb}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":307,"persist":true}],"lastAccessed":1585328468102,"hidden":false,"attributes":{},"userContextId":0,"index":1,"requestedIndex":0,"image":"chrome://global/skin/icons/warning.svg"},"title":"Restore Session","image":"chrome://global/skin/icons/warning.svg","pos":2,"closedAt":1585328468108,"closedId":389},{"state":{"entries":[{"url":"about:welcomeback","title":"Success!","cacheKey":0,"ID":485533178,"docshellUUID":"{65dd8219-2854-4fdd-84d9-8bb61b452d8b}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":303,"persist":true}],"lastAccessed":1585328465713,"hidden":false,"attributes":{},"userContextId":0,"index":1,"requestedIndex":0,"image":"chrome://browser/skin/info.svg"},"title":"Success!","image":"chrome://browser/skin/info.svg","pos":2,"closedAt":1585328465719,"closedId":387},{"state":{"entries":[{"url":"about:home","title":"New Tab","cacheKey":0,"ID":485528776,"docshellUUID":"{0e78a224-f5e4-4a67-9a8f-acdc50ff5274}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":25769803789,"persist":true}],"lastAccessed":1585328462087,"hidden":false,"attributes":{},"userContextId":0,"index":1,"requestedIndex":0,"image":"chrome://branding/content/icon32.png"},"title":"New Tab","image":"chrome://branding/content/icon32.png","pos":2,"closedAt":1585328462097,"closedId":384}],"sizemodeBeforeMinimized":"maximized","width":1168,"height":959,"screenX":4,"screenY":4,"sizemode":"maximized","title":"(PNG Image, 300 × 236 pixels)","closedAt":1585328473554,"closedId":394},{"tabs":[{"entries":[{"url":"http://www.example.com/3","title":"http://www.example.com/3","cacheKey":0,"ID":77,"docshellUUID":"{fe63484e-fe4b-4df2-a06e-099d5eff437f}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":32212254800,"persist":true}],"lastAccessed":1585328451419,"hidden":false,"attributes":{},"index":1,"userContextId":0,"userTypedValue":"","userTypedClear":0,"image":"","requestedIndex":0},{"entries":[{"url":"http://www.example.com/4","title":"404 Not Found","cacheKey":0,"ID":91,"docshellUUID":"{de27ec0f-6c2a-4435-a860-85a4c0a855a1}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":15032385629,"persist":true}],"lastAccessed":1585328455114,"hidden":false,"attributes":{},"userContextId":0,"index":1,"requestedIndex":0,"image":null}],"selected":2,"_closedTabs":[],"width":1168,"height":959,"screenX":4,"screenY":4,"sizemode":"maximized","sizemodeBeforeMinimized":"maximized","title":"404 Not Found","closedAt":1585328455115,"closedId":378},{"tabs":[{"entries":[{"url":"http://www.example.com/2","title":"404 Not Found","cacheKey":0,"ID":76,"docshellUUID":"{2f5b9fec-87a3-44bf-81c1-90c3778ebfe5}","resultPrincipalURI":null,"triggeringPrincipal_base64":"eyIzIjp7fX0=","docIdentifier":32212254799,"persist":true}],"lastAccessed":1585328455014,"hidden":false,"attributes":{},"index":1,"userContextId":0,"image":null,"requestedIndex":0}],"selected":1,"_closedTabs":[],"width":1168,"height":959,"screenX":4,"screenY":4,"sizemode":"maximized","sizemodeBeforeMinimized":"maximized","title":"404 Not Found","closedAt":1585328455014,"closedId":377}],"session":{"lastUpdate":1585328497693,"startTime":1585328134713,"recentCrashes":0},"global":{},"cookies":[]}
[task 2020-03-27T17:01:37.879Z] 17:01:37     INFO - TEST-PASS | browser/components/sessionstore/test/browser_privatetabs.js | State contains public tab - 
[task 2020-03-27T17:01:37.879Z] 17:01:37     INFO - TEST-PASS | browser/components/sessionstore/test/browser_privatetabs.js | State does not contain private tab - 
[task 2020-03-27T17:01:37.879Z] 17:01:37     INFO - TEST-PASS | browser/components/sessionstore/test/browser_privatetabs.js | Public tab supports undo close - 
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - TEST-PASS | browser/components/sessionstore/test/browser_privatetabs.js | Private tab does not support undo close - 
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - Buffered messages finished
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_privatetabs.js | A promise chain failed to handle a rejection: can't access property "getAttribute", tab is undefined - stack: crashFrame@resource://testing-common/BrowserTestUtils.jsm:1790:11
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - async*test_pinned_tab_dataloss@chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_pinned_tabs.js:332:20
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1062:34
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1097:11
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:925:14
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:918:23
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - Rejection date: Fri Mar 27 2020 17:01:37 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - Stack trace:
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-03-27T17:01:37.880Z] 17:01:37     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1093
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1097
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:925
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - Leaving test bound 
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - Entering test bound 
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10276000 == 13 [pid = 3236] [id = {f45fba83-d13f-4efd-843a-6b8d68624cc3}]
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 61 (108599A0) [pid = 3236] [serial = 1000] [outer = 00000000]
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 62 (1027AC00) [pid = 3236] [serial = 1001] [outer = 108599A0]
[task 2020-03-27T17:01:37.881Z] 17:01:37     INFO - GECKO(5592) | [Child 3488, Main Thread] WARNING: NS_ENSURE_TRUE(request) failed: file /builds/worker/checkouts/gecko/netwerk/base/nsLoadGroup.cpp, line 591
[task 2020-03-27T17:01:38.068Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 13FBE400 == 14 [pid = 3236] [id = {e6b221f5-d663-4e6b-9caa-fc0bf4e82a7e}]
[task 2020-03-27T17:01:38.068Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 63 (10859EF0) [pid = 3236] [serial = 1002] [outer = 00000000]
[task 2020-03-27T17:01:38.143Z] 17:01:38     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0C74C400 == 6 [pid = 4676] [id = {825ca623-612c-43cd-b9c9-b8dceedb8d7c}]
[task 2020-03-27T17:01:38.143Z] 17:01:38     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 17 (074B7020) [pid = 4676] [serial = 328] [outer = 00000000]
[task 2020-03-27T17:01:38.143Z] 17:01:38     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 18 (0CF15800) [pid = 4676] [serial = 329] [outer = 074B7020]
[task 2020-03-27T17:01:38.158Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236, Main Thread] WARNING: '!mInitSucceeded', file /builds/worker/checkouts/gecko/editor/libeditor/TextEditSubActionHandler.cpp, line 102
[task 2020-03-27T17:01:38.165Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236, Main Thread] WARNING: '!mInitSucceeded', file /builds/worker/checkouts/gecko/editor/libeditor/TextEditSubActionHandler.cpp, line 102
[task 2020-03-27T17:01:38.200Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 64 (13FBB000) [pid = 3236] [serial = 1003] [outer = 10859EF0]
[task 2020-03-27T17:01:38.319Z] 17:01:38     INFO - GECKO(5592) | [Child 4676: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 19 (0DB0A400) [pid = 4676] [serial = 330] [outer = 074B7020]
[task 2020-03-27T17:01:38.394Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236, Main Thread] WARNING: '!mInitSucceeded', file /builds/worker/checkouts/gecko/editor/libeditor/TextEditSubActionHandler.cpp, line 102
[task 2020-03-27T17:01:38.441Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 16ECD800 == 15 [pid = 3236] [id = {41b75e56-0d7f-4c2e-9310-5417607a2cb2}]
[task 2020-03-27T17:01:38.441Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 65 (1BEAA240) [pid = 3236] [serial = 1004] [outer = 00000000]
[task 2020-03-27T17:01:38.441Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 66 (180D9C00) [pid = 3236] [serial = 1005] [outer = 1BEAA240]
[task 2020-03-27T17:01:38.496Z] 17:01:38     INFO - GECKO(5592) | [Parent 3236: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 67 (186D4400) [pid = 3236] [serial = 1006] [outer = 1BEAA240]