Backed out changeset a428c4aa428e (bug 1697256) for causing crashtest failures in dom/base/crashtests/1697256.html CLOSED TREE
This commit is contained in:
@@ -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'>
|
|
||||||
@@ -261,7 +261,6 @@ load 1656925.html
|
|||||||
skip-if(Android) load 1665792.html # Print preview on android doesn't fly
|
skip-if(Android) load 1665792.html # Print preview on android doesn't fly
|
||||||
skip-if(ThreadSanitizer) load 1681729.html
|
skip-if(ThreadSanitizer) load 1681729.html
|
||||||
skip-if(ThreadSanitizer) load 1693049.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 1697525.html
|
||||||
skip-if(ThreadSanitizer||Android) load 1712198.html # Mysterious failure that should be investigated (bug 1712866).
|
skip-if(ThreadSanitizer||Android) load 1712198.html # Mysterious failure that should be investigated (bug 1712866).
|
||||||
skip-if(Android) HTTP load 1728670-1.html
|
skip-if(Android) HTTP load 1728670-1.html
|
||||||
|
|||||||
@@ -1759,13 +1759,13 @@ void nsFocusManager::SetFocusInner(Element* aNewContent, int32_t aFlags,
|
|||||||
(aFlags & (FLAG_SHOWRING | FLAG_NOSHOWRING));
|
(aFlags & (FLAG_SHOWRING | FLAG_NOSHOWRING));
|
||||||
newWindow->SetFocusedElement(elementToFocus, focusMethod);
|
newWindow->SetFocusedElement(elementToFocus, focusMethod);
|
||||||
if (aFocusChanged) {
|
if (aFocusChanged) {
|
||||||
if (nsCOMPtr<nsIDocShell> docShell = newWindow->GetDocShell()) {
|
nsCOMPtr<nsIDocShell> docShell = newWindow->GetDocShell();
|
||||||
|
|
||||||
RefPtr<PresShell> presShell = docShell->GetPresShell();
|
RefPtr<PresShell> presShell = docShell->GetPresShell();
|
||||||
if (presShell && presShell->DidInitialize()) {
|
if (presShell && presShell->DidInitialize()) {
|
||||||
ScrollIntoView(presShell, elementToFocus, aFlags);
|
ScrollIntoView(presShell, elementToFocus, aFlags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// update the commands even when inactive so that the attributes for that
|
// update the commands even when inactive so that the attributes for that
|
||||||
// window are up to date.
|
// window are up to date.
|
||||||
|
|||||||
Reference in New Issue
Block a user