Closed Bug 1754126 Opened 2 years ago Closed 2 years ago

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

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

RESOLVED FIXED
99 Branch
Iteration:
99.1 - Feb 7 - Feb 20
Tracking Status
firefox-esr91 --- unaffected
firefox97 --- fixed
firefox98 --- fixed
firefox99 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: Mardak)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

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

Hi Dave! Can you please take a look at this? Maybe you could find the problem or what triggered this behaviour.

Flags: needinfo?(dtownsend)
See Also: → 1754127
Iteration: --- → 99.1 - Feb 7 - Feb 20
Component: General → Messaging System
Flags: needinfo?(dtownsend)
Priority: P5 → P1
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4450b54eea9f
temporary disable browser_browserGlue_upgradeDialog.js on all platforms CLOSED TREE DONTBUILD

Test got temporary disabled on all platforms to reduce noise in trees.

Keywords: leave-open
Whiteboard: [stockwell disabled]
Has Regression Range: --- → yes
Flags: needinfo?(edilee)
Keywords: regression
Regressed by: 1738323
Blocks: 1728848

Silently ignore themes that are expired and can't be enabled.

Assignee: nobody → edilee
Flags: needinfo?(edilee)
Keywords: leave-open
Pushed by elee@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/113b63526eb2
Skip colorway theme test if it has already expired r=pdahiya
Keywords: leave-open
See Also: → 1754756

(In reply to Atila Butkovits from comment #10)

https://hg.mozilla.org/mozilla-central/rev/113b63526eb2

Looks like this might need to be uplifted to beta too, failures.

Flags: needinfo?(edilee)
Attachment #9262873 - Attachment description: Bug 1754126 - Skip colorway theme test if it has already expired r?pdahiya → Bug 1754126 - Skip colorway theme test if it has already expired r=pdahiya

Comment on attachment 9262873 [details]
Bug 1754126 - Skip colorway theme test if it has already expired r=pdahiya

Beta/Release Uplift Approval Request

  • User impact if declined: Basically none. Except for users who force the upgrade spotlight to show (it's off by default as the UI is outdated showing expired themes), trying to select the expired theme would not result in an browser console error message.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Skips error messages for feature that's off by default. Patch in phabricator rebased onto mozilla-beta with different browser/components/tests/browser/browser.ini (from mozilla-central)
  • String changes made/needed: None
Flags: needinfo?(edilee)
Attachment #9262873 - Flags: approval-mozilla-beta?

Comment on attachment 9262873 [details]
Bug 1754126 - Skip colorway theme test if it has already expired r=pdahiya

Approved for 98 beta 4, thanks.

Attachment #9262873 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Status: NEW → RESOLVED
Closed: 2 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch

Comment on attachment 9262873 [details]
Bug 1754126 - Skip colorway theme test if it has already expired r=pdahiya

We need this on Release too.

Attachment #9262873 - Flags: approval-mozilla-release+
Whiteboard: [stockwell disabled]
Blocks: 1754127
Blocks: 1754756
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: