Skip to content

Commit

Permalink
Bug 1488871 - Add an explicit style flush to make sure the added text…
Browse files Browse the repository at this point in the history
…box and popupset is styled before proceeding tests in browser_UrlbarInput_unit.js. r=adw

Differential Revision: https://phabricator.services.mozilla.com/D22641
  • Loading branch information
Hiroyuki Ikezoe committed Jun 1, 2019
1 parent 729a53e commit 1512134
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ async function withNewWindow(callback) {

let input = new UrlbarInput(inputOptions);

// Flush pending styles explicitely to make sure the added textbox and
// popupset are styled before proceeding test. See bug 1488871 comment 26.
doc.documentElement.getBoundingClientRect();

await callback(input);

await BrowserTestUtils.closeWindow(win);
Expand Down

0 comments on commit 1512134

Please sign in to comment.