Backed out changeset a428c4aa428e (bug 1697256) for causing crashtest failures in dom/base/crashtests/1697256.html CLOSED TREE

This commit is contained in:
Sandor Molnar 2022-01-21 20:20:17 +02:00
parent d3862fd0a1
commit b044550138
3 changed files with 5 additions and 20 deletions

View file

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<script>
window.onload = () => {
window.requestIdleCallback(() => {
SpecialPowers.wrap(self).printPreview()
setTimeout(() => {
document.documentElement.classList.remove("reftest-wait");
}, 250)
})
}
</script>
<select autofocus='true'>

View file

@ -261,7 +261,6 @@ load 1656925.html
skip-if(Android) load 1665792.html # Print preview on android doesn't fly
skip-if(ThreadSanitizer) load 1681729.html
skip-if(ThreadSanitizer) load 1693049.html
skip-if(winWidget) pref(print.always_print_silent,true) pref(print.print_to_file,true) pref(print.print_to_filename,"/dev/null") load 1697256.html # Windows does not support print_to_filename, which is required to prevent timeout
skip-if(ThreadSanitizer||Android) load 1697525.html
skip-if(ThreadSanitizer||Android) load 1712198.html # Mysterious failure that should be investigated (bug 1712866).
skip-if(Android) HTTP load 1728670-1.html

View file

@ -1759,11 +1759,11 @@ void nsFocusManager::SetFocusInner(Element* aNewContent, int32_t aFlags,
(aFlags & (FLAG_SHOWRING | FLAG_NOSHOWRING));
newWindow->SetFocusedElement(elementToFocus, focusMethod);
if (aFocusChanged) {
if (nsCOMPtr<nsIDocShell> docShell = newWindow->GetDocShell()) {
RefPtr<PresShell> presShell = docShell->GetPresShell();
if (presShell && presShell->DidInitialize()) {
ScrollIntoView(presShell, elementToFocus, aFlags);
}
nsCOMPtr<nsIDocShell> docShell = newWindow->GetDocShell();
RefPtr<PresShell> presShell = docShell->GetPresShell();
if (presShell && presShell->DidInitialize()) {
ScrollIntoView(presShell, elementToFocus, aFlags);
}
}