diff --git a/browser/base/content/test/browser_windowopen_reflows.js b/browser/base/content/test/browser_windowopen_reflows.js index eae103cfa41..c991091f74e 100644 --- a/browser/base/content/test/browser_windowopen_reflows.js +++ b/browser/base/content/test/browser_windowopen_reflows.js @@ -80,9 +80,11 @@ let observer = { } // Check if this is an expected reflow. - for (let stack of EXPECTED_REFLOWS) { - if (path.startsWith(stack)) { - ok(true, "expected uninterruptible reflow '" + stack + "'"); + for (let expectedStack of EXPECTED_REFLOWS) { + if (path.startsWith(expectedStack) || + // Accept an empty function name for gBrowserInit._delayedStartup or TabsInTitlebar._update to workaround bug 906578. + path.startsWith(expectedStack.replace("|gBrowserInit._delayedStartup@", "|@").replace("|TabsInTitlebar._update@", "|@"))) { + ok(true, "expected uninterruptible reflow '" + expectedStack + "'"); return; } }