Bug 1666843 - Clear mFocusedWindow while burring; r=hsivonen

The expectation is that the blurring would eventually result in an IPC message
doing this anyway, but this doesn't happen if the focus is in OOP iframe which
won't try to bounce an IPC message to its parent frame.

Differential Revision: https://phabricator.services.mozilla.com/D93210
This commit is contained in:
Edgar Chen 2020-10-12 11:58:50 +00:00
Родитель 1ee9ae7416
Коммит 6ea02af2f9
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -2092,6 +2092,10 @@ bool nsFocusManager::Blur(BrowsingContext* aBrowsingContextToClear,
ancestorWindowToFocus->SetFocusedElement(nullptr, 0, true);
ancestorWindowToFocusHandled = true;
}
// The expectation is that the blurring would eventually result in an IPC
// message doing this anyway, but this doesn't happen if the focus is in OOP
// iframe which won't try to bounce an IPC message to its parent frame.
SetFocusedWindowInternal(nullptr);
contentChild->SendBlurToParent(
focusedBrowsingContext, aBrowsingContextToClear,
aAncestorBrowsingContextToFocus, aIsLeavingDocument, aAdjustWidget,

Просмотреть файл

@ -77,7 +77,6 @@ support-files =
support-files =
test_mixed_content_image.html
[browser_pointerlock_warning.js]
skip-if = fission && (os == 'linux') && debug # Bug 1666843
[browser_sessionStorage_navigation.js]
support-files =
file_empty.html