Bug 178282

Summary: Web Inspector: send a DOM node with each Canvas payload and eliminate Canvas.requestNode
Product: WebKit Reporter: Devin Rousso <drousso>
Component: Web InspectorAssignee: Devin Rousso <drousso>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, mattbaker, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=189776
Bug Depends on:    
Bug Blocks: 173807    
Description Flags
[Patch] WIP none

Description Devin Rousso 2017-10-13 13:30:28 PDT
All the UI that relates to Canvas uses the canvas' node.  We currently get the node via a protocol method, but since we always need the node in the UI, we might as well save a trip and just include the nodeId in the Canvas payload.  Doing this will eliminate the need for Canvas.requestNode.
Comment 1 Radar WebKit Bug Importer 2017-12-04 16:40:08 PST
Comment 2 Devin Rousso 2017-12-04 17:05:35 PST
Created attachment 328416 [details]
[Patch] WIP

I probably should've uploaded this earlier, but I tried doing some of this at the WebKit Contributors Meeting.  I kept running into an issue with how the document is fetched by the frontend, and how in doing so it would clear all the previously retrieved IDs, meaning that any we sent to the frontend for the Canvases would effectively be wiped out.