Bug 1105475 - Make sendChromeEvent work with Mulet. r=yzen

This commit is contained in:
Eitan Isaacson 2014-12-01 09:27:46 -08:00
parent 88fd690d1f
commit b6029a4c06

View File

@ -464,9 +464,10 @@ this.Utils = { // jshint ignore:line
typeof aDetails === 'string' ? { eventType : aDetails } : aDetails)
};
let window = this.win;
if (window.shell) {
let shell = window.shell || window.content.shell;
if (shell) {
// On B2G device.
window.shell.sendChromeEvent(details);
shell.sendChromeEvent(details);
} else {
// Dispatch custom event to have support for desktop and screen reader
// emulator add-on.