Closed
Bug 2029187
Opened 7 months ago
Closed 7 months ago
browser_popupNotification_3.js Test#8 fails on repeat due to leftover anchor element
Categories
(Toolkit :: PopupNotifications and Notification Bars, task, P3)
Toolkit
PopupNotifications and Notification Bars
Tracking
()
RESOLVED
FIXED
151 Branch
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
Test#8 in browser_popupNotification_3.js fails when run with --repeat 2.
The test creates a box element with id="test26-anchor" and appends it to PopupNotifications.iconBox, but never removes it during cleanup. On the second run, a new element with the same id is appended, resulting in two elements with id="test26-anchor". The notification's anchorElement getter uses iconBox.querySelector("#test26-anchor") which returns the old (first) element, so _showIcons sets the showing attribute on the stale element while the test checks the new one.
Fix: add anchor.remove() in the test cleanup.
| Assignee | ||
Comment 1•7 months ago
|
||
Updated•7 months ago
|
Severity: -- → N/A
Type: defect → task
Priority: -- → P3
| Assignee | ||
Updated•7 months ago
|
Pushed by fqueze@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/2d1a58209388
https://hg.mozilla.org/integration/autoland/rev/93744880553c
Clean up anchor element in browser_popupNotification_3.js Test#8, r=Gijs.
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
status-firefox151:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Updated•7 months ago
|
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in
before you can comment on or make changes to this bug.
Description
•