Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user