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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 24

People

(Reporter: dcamp, Assigned: dcamp)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch v1 (obsolete) — 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)
Attached patch v1.1 (obsolete) — Splinter Review
Attachment #756911 - Attachment is obsolete: true
Attachment #756911 - Flags: review?(jwalker)
Attachment #756913 - Flags: review?(jwalker)
Blocks: 878381
Attached patch v1.2Splinter Review
Attachment #756913 - Attachment is obsolete: true
Attachment #756913 - Flags: review?(jwalker)
Attachment #756983 - Flags: review?(jwalker)
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+
(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.
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: nobody → dcamp
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 24
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: