gecko-dev/docshell
Olli Pettay dab3100cbd Bug 1668919 - try to make browser_tab_touch_events.js less racy, r=edgar
As far as I see the test is racy. It adds event listener to a window object, which reload() will replace.
So if the load event for non-transient about:blank gets chance to fire, then the test passes without the patch.
The main thing the patch does is to listen for the load event on the iframe element, since that object isn't
replaced.

The intermittent failure happens quite rarely and not locally, so the patch is based on code inspection.
Locally the test was run successfully 100 times both with opt and debug builds.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=8b3c65c89c55cd16bf57cf0b78db9ee99ba23df2

Differential Revision: https://phabricator.services.mozilla.com/D98305
2020-12-01 13:20:51 +00:00
..
base Bug 1679456 - Use transient user activation for iframe external protocol blocking. r=smaug,edgar 2020-11-30 16:16:41 +00:00
build Bug 1674569 - about:processes registration should no longer be limited to Nightly builds, r=mconley 2020-11-05 19:37:01 +00:00
resources/content Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
shistory Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
test Bug 1668919 - try to make browser_tab_touch_events.js less racy, r=edgar 2020-12-01 13:20:51 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00