diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/browser/browser_html_scroll_restoration.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/browser/browser_html_scroll_restoration.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/toolkit/mozapps/extensions/test/browser/browser_html_scroll_restoration.js b/toolkit/mozapps/extensions/test/browser/browser_html_scroll_restoration.js index e4d88bc19a..76471007ec 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_html_scroll_restoration.js +++ b/toolkit/mozapps/extensions/test/browser/browser_html_scroll_restoration.js @@ -91,11 +91,15 @@ async function waitForStableLayout(win) { } function isLayoutStable(win) { - // <message-bar> elements may affect the layout of a page, and therefore we - // should check whether its embedded style sheet has finished loading. - for (let bar of win.document.querySelectorAll("message-bar")) { - // Check for the existence of a CSS property from message-bar.css. - if (!win.getComputedStyle(bar).getPropertyValue("--message-bar-icon-url")) { + // <moz-message-bar> elements may affect the layout of a page, and therefore + // we should check whether its embedded style sheet has finished loading. + for (let bar of win.document.querySelectorAll("moz-message-bar")) { + // Check for the existence of a CSS property from moz-message-bar.css. + if ( + !win + .getComputedStyle(bar) + .getPropertyValue("--message-bar-background-color") + ) { return false; } } |