Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws.

This commit is contained in:
Florian Quèze
2017-01-27 10:51:03 +01:00
parent ca51131957
commit c8cf49999e
123 changed files with 232 additions and 238 deletions

View File

@@ -415,7 +415,7 @@ function getOwnerBrowserWindow(node) {
/**
Takes DOM node and returns browser window that contains it.
**/
let window = getToplevelWindow(node.ownerDocument.defaultView);
let window = getToplevelWindow(node.ownerGlobal);
// If anchored window is browser then it's target browser window.
return isBrowser(window) ? window : null;
}