зеркало из https://github.com/mozilla/pjs.git
Check for null focusedWindow in case of full-page plugins b=304243 r=IanN sr=jag
This commit is contained in:
Родитель
3e822d0c2f
Коммит
b1a01bd650
|
@ -556,7 +556,7 @@
|
|||
var focusedWindow = document.commandDispatcher.focusedWindow;
|
||||
var saveFocus = false;
|
||||
|
||||
if (focusedWindow.top == window.content) {
|
||||
if (focusedWindow && focusedWindow.top == window.content) {
|
||||
saveFocus = true;
|
||||
} else {
|
||||
var contentWindow = window;
|
||||
|
|
Загрузка…
Ссылка в новой задаче