Closed Bug 2092082 Opened 15 days ago Closed 14 days ago

browser_952963_areaType_getter_no_area.js fails when run twice in the same browser

Categories

(Firefox :: Toolbars and Customization, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(1 external file)

When browser/components/customizableui/test/browser_952963_areaType_getter_no_area.js runs twice in a row (as in the upcoming mochitest-browser-chrome-repeat jobs), the second run fails with "areaType getter shouldn't throw." because CustomizableUI.getWidget() returns null.

The test's asyncCleanup task calls resetCustomization() while its API widget is still registered. CustomizableUI.reset() marks still-registered external widgets as seen. The registerCleanupFunction then destroys the widget, so its id stays in gSeenWidgets without being in gPalette, and getWidget() returns null for it.

The fix destroys the test widget before resetting customization.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a65fa5dadc79 https://hg.mozilla.org/integration/autoland/rev/6a1cb9392936 Destroy the test widget before resetting customization in browser_952963_areaType_getter_no_area.js, r=firefox-desktop-core-reviewers ,mossop.
Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: