mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1105475 - Make sendChromeEvent work with Mulet. r=yzen
This commit is contained in:
parent
88fd690d1f
commit
b6029a4c06
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user