Bug: Perma browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | Uncaught exception in test - Theme is active - threw exception: TypeError: can't access property "isActive", theme is null
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2022-02-08 04:35:32+00:00
Resolved: 2022-03-10 08:31:46+00:00

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

---
```
[task 2022-02-08T00:08:27.783Z] 00:08:27     INFO - TEST-START | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js
[task 2022-02-08T00:08:28.439Z] 00:08:28     INFO - TEST-INFO | started process screencapture
[task 2022-02-08T00:08:28.554Z] 00:08:28     INFO - TEST-INFO | screencapture: exit 0
[task 2022-02-08T00:08:28.555Z] 00:08:28     INFO - Buffered messages logged at 00:08:27
[task 2022-02-08T00:08:28.555Z] 00:08:28     INFO - Entering test bound open_close_dialog
[task 2022-02-08T00:08:28.555Z] 00:08:28     INFO - TEST-PASS | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | Upgrade dialog opened and closed - true == true - 
[task 2022-02-08T00:08:28.556Z] 00:08:28     INFO - Leaving test bound open_close_dialog
[task 2022-02-08T00:08:28.556Z] 00:08:28     INFO - Entering test bound double_click
[task 2022-02-08T00:08:28.557Z] 00:08:28     INFO - TEST-PASS | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | Incorrectly handling clicks would have triggered exception - true == true - 
[task 2022-02-08T00:08:28.557Z] 00:08:28     INFO - Leaving test bound double_click
[task 2022-02-08T00:08:28.558Z] 00:08:28     INFO - Entering test bound theme_change
[task 2022-02-08T00:08:28.558Z] 00:08:28     INFO - Buffered messages finished
[task 2022-02-08T00:08:28.559Z] 00:08:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | Uncaught exception in test - Theme is active - threw exception: TypeError: can't access property "isActive", theme is null
[task 2022-02-08T00:08:28.559Z] 00:08:28     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-02-08T00:08:28.560Z] 00:08:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | A promise chain failed to handle a rejection: can't access property "enable" of null - stack: enableTheme@chrome://browser/content/upgradeDialog.js:93:23
[task 2022-02-08T00:08:28.560Z] 00:08:28     INFO - Rejection date: Tue Feb 08 2022 00:08:28 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-02-08T00:08:28.560Z] 00:08:28     INFO - Stack trace:
[task 2022-02-08T00:08:28.560Z] 00:08:28     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-02-08T00:08:28.560Z] 00:08:28     INFO - chrome://mochikit/content/browser-test.js:handleTask:1017
[task 2022-02-08T00:08:28.561Z] 00:08:28     INFO - Leaving test bound theme_change
[task 2022-02-08T00:08:28.561Z] 00:08:28     INFO - Entering test bound keyboard_focus_okay
[task 2022-02-08T00:08:28.561Z] 00:08:28     INFO - GECKO(3851) | JavaScript error: chrome://browser/content/upgradeDialog.js, line 93: TypeError: can't access property "enable" of null
[task 2022-02-08T00:08:28.562Z] 00:08:28     INFO - Console message: [JavaScript Error: "TypeError: can't access property "enable" of null" {file: "chrome://browser/content/upgradeDialog.js" line: 93}]
[task 2022-02-08T00:08:28.957Z] 00:08:28     INFO - GECKO(3851) | JavaScript error: chrome://browser/content/upgradeDialog.js, line 93: TypeError: can't access property "enable" of null
[task 2022-02-08T00:08:28.958Z] 00:08:28     INFO - Console message: [JavaScript Error: "TypeError: can't access property "enable" of null" {file: "chrome://browser/content/upgradeDialog.js" line: 93}]
[task 2022-02-08T00:08:56.060Z] 00:08:56     INFO - GECKO(3851) | 2022-02-08 00:08:56.059 firefox[3851:72967] Persistent UI failed to open file file:///Users/cltbld/Library/Saved%20Application%20State/org.mozilla.nightly.savedState/window_1.data: No such file or directory (2)
[task 2022-02-08T00:09:12.976Z] 00:09:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-02-08T00:09:12.977Z] 00:09:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | Test timed out - 
[task 2022-02-08T00:09:12.977Z] 00:09:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-02-08T00:09:12.978Z] 00:09:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | Uncaught exception received from previously timed out test - subdialog-loaded observer not removed before the end of test
[task 2022-02-08T00:09:12.978Z] 00:09:12     INFO - Entering test bound keep_home
[task 2022-02-08T00:09:12.979Z] 00:09:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-02-08T00:09:12.979Z] 00:09:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | A promise chain failed to handle a rejection: can't access property "enable" of null - stack: enableTheme@chrome://browser/content/upgradeDialog.js:93:23
[task 2022-02-08T00:09:12.980Z] 00:09:12     INFO - Rejection date: Tue Feb 08 2022 00:08:28 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-02-08T00:09:12.980Z] 00:09:12     INFO - Stack trace:
[task 2022-02-08T00:09:12.980Z] 00:09:12     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-02-08T00:09:12.980Z] 00:09:12     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-02-08T00:09:12.980Z] 00:09:12     INFO - GECKO(3851) | MEMORY STAT | vsize 7883MB | residentFast 293MB | heapAllocated 119MB
[task 2022-02-08T00:09:12.981Z] 00:09:12     INFO - TEST-OK | browser/components/tests/browser/browser_browserGlue_upgradeDialog.js | took 45198ms
[task 2022-02-08T00:09:12.990Z] 00:09:12     INFO - GECKO(3851) | JavaScript error: chrome://browser/content/tabbrowser-tabs.js, line 1131: TypeError: can't access property "closing", selectedTab is null
[task 2022-02-08T00:09:12.991Z] 00:09:12     INFO - Console message: [JavaScript Error: "TypeError: can't access property "closing", selectedTab is null" {file: "chrome://browser/content/tabbrowser-tabs.js" line: 1131}]
[task 2022-02-08T00:15:23.046Z] 00:15:23     INFO - Buffered messages finished
```