Closed Bug 1020257 Opened 11 years ago Closed 11 years ago

Dispatch hud events on the main window for system app related events

Categories

(DevTools Graveyard :: WebIDE, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 32

People

(Reporter: vingtetun, Assigned: vingtetun)

References

Details

Attachments

(1 file)

This patch is one of the piece needed to have the hud working for the system app. It relies on the patch in bug 1015894 that I'm going to land this week.
Comment on attachment 8434074 [details] [diff] [review] devtools.dispatch.events.onmainwindow.for.system.patch Review of attachment 8434074 [details] [diff] [review]: ----------------------------------------------------------------- Makes sense, thank you Vivien. ::: b2g/chrome/content/devtools.js @@ +271,5 @@ > this._send({}); > }, > > _send: function target_send(data) { > + let target = this.frame; Nit: Since this is a prototype method of Target, the naming might be confusing here. Please s/target/frame/ or similar. @@ +273,5 @@ > > _send: function target_send(data) { > + let target = this.frame; > + > + let systemapp = document.querySelector('#systemapp'); Nit: Please use `document.getElementById`.
Attachment #8434074 - Flags: review?(janx) → review+
This push hit desktop B2G mochitest failures. Not knowing the interdependencies of the push, I backed the entire thing out. https://hg.mozilla.org/integration/mozilla-inbound/rev/616163ca1aa5 https://tbpl.mozilla.org/php/getParsedLog.php?id=41052634&tree=Mozilla-Inbound
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 32
I think this produced issues in the Marionette JS tests (Gi in TBPL): https://tbpl.mozilla.org/php/getParsedLog.php?id=41112344&tree=Mozilla-Inbound#error4 Here is a try with this issue backed out: https://tbpl.mozilla.org/?tree=Try&rev=0fb26a81b986
This line is the likely failure: shell.sendEvent(frame, 'developer-hud-update', Cu.cloneInto(data, target)); "target" is not defined anywhere here...
Can we please backout this? I'm pretty sure this patch is the issue and so don't want to wait for try. Then can you respin a build on moz-central ?
Keywords: checkin-needed
backed this out from mozilla-central (and so also in the upcoming merges from the other integration trees) in https://hg.mozilla.org/mozilla-central/rev/c8288d0c7a15 as requested in comment #8 and on irc
Status: RESOLVED → REOPENED
Keywords: checkin-needed
Resolution: FIXED → ---
> shell.sendEvent(frame, 'developer-hud-update', Cu.cloneInto(data, target)); > ^ Vivien, I think you forgot to rename the last occurrence of "target" to "frame" in the patch you landed.
Flags: needinfo?(21)
(In reply to Jan Keromnes [:janx] from comment #11) > > shell.sendEvent(frame, 'developer-hud-update', Cu.cloneInto(data, target)); > > ^ > > Vivien, I think you forgot to rename the last occurrence of "target" to > "frame" in the patch you landed. Sigh...
Flags: needinfo?(21)
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: