Closed Bug 2091414 Opened 19 days ago Closed 17 days ago

`browser_941083_invalidate_wrapper_cache_createWidget.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)

browser_941083_invalidate_wrapper_cache_createWidget.js fails on its second run in the mochitest-repeat jobs with "Should get group wrapper."

The test creates and destroys the API widget test-invalidate-wrapper-cache. createWidget records the id in gSeenWidgets, and destroyWidget keeps it there on purpose. For a seen id that is no longer in the palette, getWidgetProvider returns null, so on the next run CustomizableUI.getWidget returns null.

The fix is for the test to remove its id from gSeenWidgets in a cleanup function.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f84a638e9ec9 https://hg.mozilla.org/integration/autoland/rev/0ca6c75c6b12 Remove the test widget from gSeenWidgets after `browser_941083_invalidate_wrapper_cache_createWidget.js`, so it passes when run twice, r=firefox-desktop-core-reviewers ,Gijs.
Status: ASSIGNED → RESOLVED
Closed: 17 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: