зеркало из https://github.com/mozilla/pjs.git
Use the target window's outer window when we're checking for the focused window for fastback. Bug 298077, r=dbaron a=bsmedberg
This commit is contained in:
Родитель
9c52d3761b
Коммит
5bedd41188
|
@ -6451,8 +6451,12 @@ WindowStateHolder::WindowStateHolder(JSContext *cx, JSObject *aObject,
|
|||
|
||||
nsCOMPtr<nsPIDOMWindow> focusedWindow = do_QueryInterface(focusWinInternal);
|
||||
|
||||
// The outer window is used for focus purposes, so make sure that's what
|
||||
// we're looking for.
|
||||
nsPIDOMWindow *targetWindow = aWindow->GetOuterWindow();
|
||||
|
||||
while (focusedWindow) {
|
||||
if (focusedWindow == aWindow) {
|
||||
if (focusedWindow == targetWindow) {
|
||||
fc->GetFocusedWindow(getter_AddRefs(mFocusedWindow));
|
||||
fc->GetFocusedElement(getter_AddRefs(mFocusedElement));
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче