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 8032d91d71
commit 55ab8f380d

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, frame));
}
};