mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 870625 - Electrolysis: Add-on installation from addons.mozilla.org should work. r=Mossop
This commit is contained in:
parent
5f16927c95
commit
b5f8a2c970
@ -183,13 +183,13 @@ amManager.prototype = {
|
||||
};
|
||||
}
|
||||
var window = null;
|
||||
try {
|
||||
// Normal approach for single-process mode
|
||||
window = aMessage.target.contentWindow;
|
||||
} catch (e) {
|
||||
if (aMessage.target.getAttribute("remote") == "true") {
|
||||
// Fallback for multiprocess (e10s) mode. Should reimplement this
|
||||
// properly with Window IDs when possible, see bug 596109.
|
||||
window = aMessage.target.ownerDocument.defaultView;
|
||||
} else {
|
||||
// Normal approach for single-process mode
|
||||
window = aMessage.target.contentWindow;
|
||||
}
|
||||
return this.installAddonsFromWebpage(payload.mimetype,
|
||||
window, referer, payload.uris, payload.hashes, payload.names,
|
||||
|
Loading…
Reference in New Issue
Block a user