зеркало из https://github.com/mozilla/gecko-dev.git
Bug 783825 - Fix b2g breakage after bug 553102 - Part 2: wrap keyboard event detail [r=fabrice]
This commit is contained in:
Родитель
3a6a1ec660
Коммит
54f5995338
|
@ -11,6 +11,7 @@ const kFormsFrameScript = "chrome://browser/content/forms.js";
|
|||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/ObjectWrapper.jsm");
|
||||
|
||||
const messageManager = Cc["@mozilla.org/globalmessagemanager;1"]
|
||||
.getService(Ci.nsIChromeFrameMessageManager);
|
||||
|
@ -103,7 +104,8 @@ MozKeyboard.prototype = {
|
|||
"detail": msg.json
|
||||
};
|
||||
|
||||
let evt = new this._window.CustomEvent("focuschanged", detail);
|
||||
let evt = new this._window.CustomEvent("focuschanged",
|
||||
ObjectWrapper.wrap(detail, this._window));
|
||||
handler.handleEvent(evt);
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче