зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1105475 - Make sendChromeEvent work with Mulet. r=yzen
This commit is contained in:
Родитель
6578f9c064
Коммит
cb6bd63ce4
|
@ -464,9 +464,10 @@ this.Utils = { // jshint ignore:line
|
||||||
typeof aDetails === 'string' ? { eventType : aDetails } : aDetails)
|
typeof aDetails === 'string' ? { eventType : aDetails } : aDetails)
|
||||||
};
|
};
|
||||||
let window = this.win;
|
let window = this.win;
|
||||||
if (window.shell) {
|
let shell = window.shell || window.content.shell;
|
||||||
|
if (shell) {
|
||||||
// On B2G device.
|
// On B2G device.
|
||||||
window.shell.sendChromeEvent(details);
|
shell.sendChromeEvent(details);
|
||||||
} else {
|
} else {
|
||||||
// Dispatch custom event to have support for desktop and screen reader
|
// Dispatch custom event to have support for desktop and screen reader
|
||||||
// emulator add-on.
|
// emulator add-on.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче