mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1136378 - Use a browser's outerWindowId property rather than a CPOW to identify marionette's content listeners.;r=mconley
This commit is contained in:
parent
a39b7dafd3
commit
d56b851467
@ -1447,16 +1447,11 @@ MarionetteServerConnection.prototype = {
|
||||
return this._browserIds.get(permKey);
|
||||
}
|
||||
|
||||
let contentWindow = browser.contentWindowAsCPOW;
|
||||
if (contentWindow !== null && !Cu.isDeadWrapper(contentWindow)) {
|
||||
let winId = contentWindow.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils)
|
||||
.outerWindowID;
|
||||
if (winId) {
|
||||
winId += "";
|
||||
this._browserIds.set(permKey, winId);
|
||||
return winId;
|
||||
}
|
||||
let winId = browser.outerWindowID;
|
||||
if (winId) {
|
||||
winId += "";
|
||||
this._browserIds.set(permKey, winId);
|
||||
return winId;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user