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

@@ -138,7 +138,7 @@ function display(panel, options, anchor) {
// The XUL Panel has an arrow, so the margin needs to be reset
// to the default value.
panel.style.margin = "";
let { CustomizableUI, window } = anchor.ownerDocument.defaultView;
let { CustomizableUI, window } = anchor.ownerGlobal;
// In Australis, widgets may be positioned in an overflow panel or the
// menu panel.