Bug 611553 - Android: Make DOMWillOpenModalDialog a chrome-only event. r=mbrubeck

This commit is contained in:
Frank Yan 2013-01-16 13:10:20 -08:00
parent 9a3959c1dc
commit 8eedb78047

View File

@ -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) {
}
}