Bug: High Frequency keyboard/browser_toolbarButtonKeyPress.js | A promise chain failed to handle a rejection: can't access property "pktUI", this.browsingContext.topChromeWindow is null - stack: receiveMessage@resource:///actors/AboutPocketParent.jsm:54:9
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2021-02-11 00:49:02+00:00
Resolved: 2021-02-15 06:26:21+00:00

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

---
```
[task 2021-02-10T23:31:52.614Z] 23:31:52     INFO - TEST-START | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js
[task 2021-02-10T23:31:56.353Z] 23:31:56     INFO - GECKO(9884) | console.info: Skipping device list refresh; not signed in
[task 2021-02-10T23:32:01.853Z] 23:32:01     INFO - TEST-INFO | started process screenshot
[task 2021-02-10T23:32:02.096Z] 23:32:02     INFO - TEST-INFO | screenshot: exit 0
[task 2021-02-10T23:32:02.096Z] 23:32:02     INFO - Buffered messages logged at 23:31:52
[task 2021-02-10T23:32:02.097Z] 23:32:02     INFO - Entering test bound setPref
[task 2021-02-10T23:32:02.098Z] 23:32:02     INFO - Leaving test bound setPref
[task 2021-02-10T23:32:02.098Z] 23:32:02     INFO - Entering test bound testAppMenuButtonPress
[task 2021-02-10T23:32:02.098Z] 23:32:02     INFO - Buffered messages logged at 23:31:53
[task 2021-02-10T23:32:02.099Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside app menu after toolbar button pressed - 
[task 2021-02-10T23:32:02.099Z] 23:32:02     INFO - Leaving test bound testAppMenuButtonPress
[task 2021-02-10T23:32:02.100Z] 23:32:02     INFO - Entering test bound testAppMenuButtonWrongKey
[task 2021-02-10T23:32:02.100Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | App menu is closed after tab - 
[task 2021-02-10T23:32:02.101Z] 23:32:02     INFO - Leaving test bound testAppMenuButtonWrongKey
[task 2021-02-10T23:32:02.101Z] 23:32:02     INFO - Entering test bound testLibraryButtonPress
[task 2021-02-10T23:32:02.101Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside Library menu after toolbar button pressed - 
[task 2021-02-10T23:32:02.102Z] 23:32:02     INFO - Leaving test bound testLibraryButtonPress
[task 2021-02-10T23:32:02.102Z] 23:32:02     INFO - Entering test bound testDeveloperButtonPress
[task 2021-02-10T23:32:02.103Z] 23:32:02     INFO - Buffered messages logged at 23:31:54
[task 2021-02-10T23:32:02.103Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside Developer menu after toolbar button pressed - 
[task 2021-02-10T23:32:02.104Z] 23:32:02     INFO - Leaving test bound testDeveloperButtonPress
[task 2021-02-10T23:32:02.104Z] 23:32:02     INFO - Entering test bound testDeveloperButtonWrongKey
[task 2021-02-10T23:32:02.105Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Developer menu not open after tab - 
[task 2021-02-10T23:32:02.105Z] 23:32:02     INFO - Leaving test bound testDeveloperButtonWrongKey
[task 2021-02-10T23:32:02.106Z] 23:32:02     INFO - Entering test bound testPageActionsButtonPress
[task 2021-02-10T23:32:02.106Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside Page Actions menu after toolbar button pressed - 
[task 2021-02-10T23:32:02.107Z] 23:32:02     INFO - Leaving test bound testPageActionsButtonPress
[task 2021-02-10T23:32:02.108Z] 23:32:02     INFO - Entering test bound testBackForwardButtonPress
[task 2021-02-10T23:32:02.109Z] 23:32:02     INFO - Buffered messages logged at 23:31:55
[task 2021-02-10T23:32:02.109Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Location changed after back button pressed - 
[task 2021-02-10T23:32:02.110Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Location changed after forward button pressed - 
[task 2021-02-10T23:32:02.110Z] 23:32:02     INFO - Leaving test bound testBackForwardButtonPress
[task 2021-02-10T23:32:02.111Z] 23:32:02     INFO - Entering test bound testSendTabToDeviceButtonPress
[task 2021-02-10T23:32:02.111Z] 23:32:02     INFO - Buffered messages logged at 23:31:56
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside Page Actions menu after toolbar button pressed - 
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - Leaving test bound testSendTabToDeviceButtonPress
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - Entering test bound testReloadButtonPress
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - Buffered messages logged at 23:31:58
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Page loaded after Reload button pressed - 
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - Leaving test bound testReloadButtonPress
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - Entering test bound testSidebarsButtonPress
[task 2021-02-10T23:32:02.112Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Sidebars button not checked at start of test - 
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Sidebar hidden at start of test - 
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Sidebars button checked after press - 
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Sidebar visible after press - 
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Sidebars button not checked after press - 
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Sidebar hidden after press - 
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - Leaving test bound testSidebarsButtonPress
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - Entering test bound testBookmarkButtonPress
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - Buffered messages logged at 23:31:59
[task 2021-02-10T23:32:02.113Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside edit bookmark panel after Bookmark button pressed - 
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - Leaving test bound testBookmarkButtonPress
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - Entering test bound testBookmarksmenuButtonPress
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - Buffered messages logged at 23:32:00
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Bookmarks Menu shown after toolbar button pressed - 
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - Leaving test bound testBookmarksmenuButtonPress
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - Entering test bound testOverflowButtonPress
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside overflow menu after toolbar button pressed - 
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - Leaving test bound testOverflowButtonPress
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - Entering test bound testDownloadsButtonPress
[task 2021-02-10T23:32:02.114Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside Downloads panel after toolbar button pressed - 
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - Leaving test bound testDownloadsButtonPress
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - Entering test bound testPocketButtonPress
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - Buffered messages logged at 23:32:01
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - Global property added while loading chrome://pocket/content/main.js: pktUIMessaging
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - Global property added while loading chrome://pocket/content/main.js: pktApi
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - Global property added while loading chrome://pocket/content/main.js: pktTelemetry
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | undefined assertion name - 
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - TEST-PASS | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | Focus inside Pocket iframe after Bookmark button pressed - 
[task 2021-02-10T23:32:02.115Z] 23:32:02     INFO - Buffered messages finished
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | A promise chain failed to handle a rejection: can't access property "pktUI", this.browsingContext.topChromeWindow is null - stack: receiveMessage@resource:///actors/AboutPocketParent.jsm:54:9
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - Rejection date: Wed Feb 10 2021 23:32:01 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 282
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - Stack trace:
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:282
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1119
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - Leaving test bound testPocketButtonPress
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - GECKO(9884) | JavaScript error: resource:///actors/AboutPocketParent.jsm, line 54: TypeError: can't access property "pktUI", this.browsingContext.topChromeWindow is null
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - Console message: [JavaScript Error: "TypeError: can't access property "pktUI", this.browsingContext.topChromeWindow is null" {file: "resource:///actors/AboutPocketParent.jsm" line: 54}]
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - GECKO(9884) | MEMORY STAT | vsize 19406312MB | vsizeMaxContiguous 65333344MB | residentFast 1071MB
[task 2021-02-10T23:32:02.116Z] 23:32:02     INFO - TEST-OK | browser/base/content/test/keyboard/browser_toolbarButtonKeyPress.js | took 9335ms```