Closed
Bug 863936
Opened 12 years ago
Closed 12 years ago
JS debugger: use addGlobalActor to add chrome debugging actor
Categories
(DevTools :: Debugger, defect, P1)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 24
People
(Reporter: jimb, Assigned: jimb)
References
Details
Attachments
(1 file, 2 obsolete files)
8.45 KB,
patch
|
fabrice
:
review+
mfinkle
:
review+
|
Details | Diff | Splinter Review |
At present, BrowserRootActor.onListTabs includes code to create the chrome debugging actor and include it on the "listTabs" reply. However, using DebuggerServer.addGlobalActor to register the chrome debugging actor would have almost exactly the same effect, and require no bespoke support in BrowserRootActor.prototype.onListTabs.
The attached patch makes this change.
Comment 1•12 years ago
|
||
Aww yes!
Updated•12 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Comment 3•12 years ago
|
||
Tested this and bug 862490 on both Fennec and b2g desktop without any issues.
Comment 4•12 years ago
|
||
Comment on attachment 753138 [details] [diff] [review]
Patch v2
Review of attachment 753138 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/devtools/server/actors/webbrowser.js
@@ -162,5 @@
> - actor = new ChromeDebuggerActor(this);
> - actor.parentID = this.actorID;
> - this._chromeDebugger = actor;
> - actorPool.addActor(actor);
> - }
This removed block exists in the other two dbg-browser-actor.js files as well.
@@ -207,5 @@
> let response = {
> "from": "root",
> "selected": selected,
> - "tabs": [actor.grip() for (actor of tabActorList)],
> - "chromeDebugger": this._chromeDebugger.actorID
This one, too.
Comment 5•12 years ago
|
||
Comment on attachment 753138 [details] [diff] [review]
Patch v2
Review of attachment 753138 [details] [diff] [review]:
-----------------------------------------------------------------
This seems fine as long the redundant bits mentioned in comment 4 are removed.
Attachment #753138 -
Flags: review+
Comment 6•12 years ago
|
||
Took care of comment 4 myself. Passing on to b2g and fennec folks for review of their respective bits.
Attachment #753138 -
Attachment is obsolete: true
Attachment #753906 -
Flags: review?(mark.finkle)
Attachment #753906 -
Flags: review?(fabrice)
Updated•12 years ago
|
Attachment #753906 -
Flags: review?(mark.finkle) → review+
Comment 7•12 years ago
|
||
Fabrice, I tested this patch along with the one from bug 870081 on my Unagi and verified that the chrome debugging actor was not present.
Updated•12 years ago
|
Attachment #753906 -
Flags: review?(fabrice) → review+
Updated•12 years ago
|
Whiteboard: [land-in-fx-team]
Comment 8•12 years ago
|
||
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Comment 9•12 years ago
|
||
Assignee: nobody → jimb
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 24
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•