Closed Bug 1578716 Opened 5 years ago Closed 5 years ago

Make browser_ext_contextMenus_targetUrlPatterns.js wait for end of load of about:reader before sending mouse event

Categories

(WebExtensions :: Frontend, defect, P2)

defect

Tracking

(Fission Milestone:M4, firefox71 fixed)

RESOLVED FIXED
mozilla71
Fission Milestone M4
Tracking Status
firefox71 --- fixed

People

(Reporter: peterv, Assigned: peterv)

References

Details

Attachments

(1 file)

We're running into a test failure in browser/components/extensions/test/browser/browser_ext_contextMenus_targetUrlPatterns.js with session history running in the parent.
The privileged_are_allowed_to_use_restrictedSchemes test switches a document to reader mode, and then sends a mouse event to open a context menu. However, it doesn't wait till we've actually loaded the about:reader document (it uses an onUpdated listener but doesn't check that changeInfo.status is 'complete', so the code in the listener runs when changeInfo.status is 'loading'). Sending the mouse event fails, depending on timing issues, if layout for the about:reader document hasn't happened yet.

Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0b809df52f3f
Make browser_ext_contextMenus_targetUrlPatterns.js wait for end of load of about:reader before sending mouse event. r=kmag
Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bb2edf57e24c
Make browser_ext_contextMenus_targetUrlPatterns.js wait for end of load of about:reader before sending mouse event. r=kmag
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71

Hello,

Will this fix require manual validation? If yes, please provide some steps to reproduce in order to correctly test it and also, please set the "qe-verify+" flag. Otherwise, could the "qe-verify-" flag be added? Thanks!

Setting qe-verify-, this is a test-only change.

Flags: needinfo?(peterv) → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: