Bug 1020257 - Dispatch hud events on the main window for system app related events. r=janx

This commit is contained in:
Vivien Nicolas 2014-06-04 20:11:06 +02:00
parent d47e742018
commit b3b1ac024c

View File

@ -272,7 +272,14 @@ Target.prototype = {
},
_send: function target_send(data) {
shell.sendEvent(this.frame, 'developer-hud-update', Cu.cloneInto(data, this.frame));
let frame = this.frame;
let systemapp = document.querySelector('#systemapp');
if (this.frame === systemapp) {
frame = getContentWindow();
}
shell.sendEvent(frame, 'developer-hud-update', Cu.cloneInto(data, target));
}
};