Closed
Bug 1943531
Opened 1 month ago
Closed 1 month ago
netmonitor test context menu helper is duplicated and broken
Categories
(DevTools :: Netmonitor, defect)
DevTools
Netmonitor
Tracking
(firefox136 fixed)
RESOLVED
FIXED
136 Branch
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file)
This blocks me for writing tests properly for network overrides.
The 3 helpers:
- getContextMenuItem
- selectContextMenuItem
- maybeOpenAncestorMenu
Have been duplicated between netmonitor head.js and shared-head.js (the latter always taking over...)
They also rely on
if (parentPopup.state == "shown") {
Which doesn't work for XULPopupElement which has an "open" state. Not sure if "some" context menus might not be like this in netmonitor?
https://searchfox.org/mozilla-central/rev/f41e8cacb8e8ce254204e2526e98d49d024f1674/dom/chrome-webidl/XULPopupElement.webidl#155-161
* Returns the state of the popup:
* closed - the popup is closed
* open - the popup is open
* showing - the popup is in the process of being shown
* hiding - the popup is in the process of being hidden
*/
readonly attribute DOMString state;
Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d3e82a9ba9b9
[devtools] Fix netmonitor test helpers to interact with the context menu r=devtools-reviewers,nchevobbe
Comment 3•1 month ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox136:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•