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

@@ -126,10 +126,10 @@ CommandList.prototype = {
// therefore the listeners for these elements will be garbage collected.
keyElement.addEventListener("command", (event) => {
if (name == "_execute_page_action") {
let win = event.target.ownerDocument.defaultView;
let win = event.target.ownerGlobal;
pageActionFor(this.extension).triggerAction(win);
} else if (name == "_execute_browser_action") {
let win = event.target.ownerDocument.defaultView;
let win = event.target.ownerGlobal;
browserActionFor(this.extension).triggerAction(win);
} else {
TabManager.for(this.extension)