gecko-dev/docshell/test
Daniel Holbert f86b6c2086 Bug 1052471: Adjust test_bug453650.xhtml to perform its reflow-causing restyle a bit later, *after* the reflow observer is registered. r=jfkthame
I'm hoping this fixes (or at least helps with) this intermittent test failure
(an intermittent test-timeout).

Before this patch, the test did the following: it made a layout-impacting
restyle, and then it registered a reflow observer, and then it waited for the
previously-performed restyle to be flushed, which it then expects to cause a
reflow and trigger the reflow observer.

When the test times out and intermittently fails, it seems that the reflow
observer is successfully registered but never fires. I'm guessing that's
because the reflow is getting flushed eagerly for some reason, and happens
*before* the reflow observer is registered.  We can avoid this problem by
holding off on the restyle until after the reflow observer has been registered;
that's the approach that this patch takes.

(Note that this reflow-observer API isn't web-exposed; it's an internal API that
we use to report reflows in our devtools.)

Differential Revision: https://phabricator.services.mozilla.com/D100517
2021-01-04 19:04:40 +00:00
..
browser Bug 1668871 - Part 2: Move event listener to frame element. r=peterv 2020-12-21 14:17:23 +00:00
chrome Bug 1052471: Adjust test_bug453650.xhtml to perform its reflow-causing restyle a bit later, *after* the reflow observer is registered. r=jfkthame 2021-01-04 19:04:40 +00:00
iframesandbox Bug 1650919 - Adding manifest annotations for xorigin test harness. r=kmag 2020-07-13 20:34:46 +00:00
mochitest Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman 2020-12-31 00:33:48 +00:00
navigation Bug 1668658 - Change tests which fail when fission and session-history-in-parent are enabled from skip-if to fail-if. r=smaug 2020-12-15 15:21:48 +00:00
unit Bug 1638215: Use https for canonization the URL. r=mak 2020-12-07 01:54:05 +00:00
unit_ipc
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00