mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 611553 - Android: Make DOMWillOpenModalDialog a chrome-only event. r=mbrubeck
This commit is contained in:
parent
9a3959c1dc
commit
8eedb78047
@ -758,7 +758,9 @@ let PromptUtils = {
|
||||
return;
|
||||
let event = aDomWin.document.createEvent("Events");
|
||||
event.initEvent(aEventName, true, true);
|
||||
aDomWin.dispatchEvent(event);
|
||||
let winUtils = aDomWin.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils);
|
||||
winUtils.dispatchEventToChromeOnly(aDomWin, event);
|
||||
} catch(ex) {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user