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