Closed Bug 1706806 Opened 4 years ago Closed 4 years ago

Make devtools/client/inspector/markup/test/browser_markup_load_01.js work with native menus

Categories

(Core :: Widget: Cocoa, task)

All
macOS
task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

(Whiteboard: [stockwell disabled] [proton-uplift])

Attachments

(2 files)

This test kept a menu open for too long.

Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/0bc6d559d013 Use clickOnInspectMenuItem in browser_markup_load_01.js. r=mac-reviewers,harry

Actually, I think before this fix, the test wasn't working! It was right-clicking in content and then immediately sending a keypress. However, the content area context menu opens asynchronously. So the keypress probably always went into thin air! With the patch that just landed, we're correctly waiting for the menu to open, and then correctly inspecting the clicked element. But we seem to be timing out while waiting for the menu to open. The right click happens during page load, so it's possible that the context menu may not open at all in some cases.

So then it would be better to disable the test, and file a follow-up bug to make it do what it wanted to do in the first place.

Sheriffs, before backing out this patch, please consider landing https://phabricator.services.mozilla.com/D113057 instead, to disable the test.

Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c409ea0b91d4 Disable browser_markup_load_01.js due to timeouts. DONTBUILD
Keywords: leave-open
Whiteboard: [stockwell disabled]

Re-enabling the test is tracked in bug 1706833.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Whiteboard: [stockwell disabled] → [stockwell disabled] [proton-uplift]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: