Bug 1636224 - Explicitly flush layout in an acceskey test. r=Gijs

Accesskey for XUL works from frame construction, so we need to do this
for the test to keep passing with LazyFC.

I don't think this has a user-visible impact in practice.

Differential Revision: https://phabricator.services.mozilla.com/D74280
This commit is contained in:
Emilio Cobos Álvarez 2020-05-07 20:51:14 +00:00
parent a12dd50291
commit a9d7165b1b

View File

@ -32,6 +32,8 @@ add_task(async function() {
Services.focus.clearFocus(window);
newButton.getBoundingClientRect(); // Accesskey registration happens during frame construction.
focusedId = await performAccessKeyForChrome("z");
is(focusedId, "chromebutton", "chromebutton accesskey");