Closed
Bug 878379
Opened 12 years ago
Closed 12 years ago
Change the walker's querySelector requests to provide any nodes needed to connect to the root node
Categories
(DevTools :: Inspector, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 24
People
(Reporter: dcamp, Assigned: dcamp)
References
Details
Attachments
(1 file, 2 obsolete files)
9.80 KB,
patch
|
jwalker
:
review+
|
Details | Diff | Splinter Review |
There are two requests on the inspector, querySelector() and querySelectorAll(), that let the client find nodes without having previously seen all of its parents. This patch changes those request to also return all nodes that the client hasn't seen that are needed to connect to the root node.
This will be used in a later patch to let the client have a real ownership tree of nodes it has seen.
Attachment #756911 -
Flags: review?(jwalker)
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #756911 -
Attachment is obsolete: true
Attachment #756911 -
Flags: review?(jwalker)
Attachment #756913 -
Flags: review?(jwalker)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #756913 -
Attachment is obsolete: true
Attachment #756913 -
Flags: review?(jwalker)
Attachment #756983 -
Flags: review?(jwalker)
Comment 3•12 years ago
|
||
Comment on attachment 756983 [details] [diff] [review]
v1.2
Review of attachment 756983 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/devtools/server/actors/inspector.js
@@ +341,5 @@
> * Get a single node from the node list.
> */
> item: method(function(index) {
> + let node = this.walker._ref(this.nodeList[index]);
> + let newNodes = [node for (node of this.walker.ensurePathToRoot(node))];
Could we make the remote protocol cognisant of Sets?
Attachment #756983 -
Flags: review?(jwalker) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Joe Walker [:jwalker] from comment #3)
> Comment on attachment 756983 [details] [diff] [review]
> v1.2
>
> Review of attachment 756983 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: toolkit/devtools/server/actors/inspector.js
> @@ +341,5 @@
> > * Get a single node from the node list.
> > */
> > item: method(function(index) {
> > + let node = this.walker._ref(this.nodeList[index]);
> > + let newNodes = [node for (node of this.walker.ensurePathToRoot(node))];
>
> Could we make the remote protocol cognisant of Sets?
Yeah, that should be doable - filed bug 880402.
Comment 5•12 years ago
|
||
I can't apply this on top of 877300 (failures in inspector.js and protocol.js), is there anything I'm missing?
my qser:
866306
877295
877300
878379 -< can't apply
Assignee | ||
Comment 6•12 years ago
|
||
Assignee: nobody → dcamp
Whiteboard: [fixed-in-fx-team]
Comment 7•12 years ago
|
||
Status: NEW → 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
•