Bug 178806

Summary: Web Inspector: Canvas Tab: canvas path components from old page stick around when page is reloaded
Product: WebKit Reporter: BJ Burg <bburg>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
URL: http://acko.net
See Also: https://bugs.webkit.org/show_bug.cgi?id=178804
Bug Depends on:    
Bug Blocks: 175485    
Attachments:
Description Flags
Screenshot
none
Patch
none
Patch none

Description BJ Burg 2017-10-25 10:15:03 PDT
Created attachment 324841 [details]
Screenshot

STR:

1. Load acko.net
2. Open Inspector, Canvases Tab
3. Reload the page several times
=> Now I have multiple Canvas 2, Canvas 3 path components
Comment 1 Radar WebKit Bug Importer 2017-10-25 10:15:18 PDT
<rdar://problem/35176360>
Comment 2 Devin Rousso 2017-10-25 15:49:01 PDT
Created attachment 324912 [details]
Patch
Comment 3 BJ Burg 2017-10-26 16:34:10 PDT
Comment on attachment 324912 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=324912&action=review

r=me

> Source/WebInspectorUI/ChangeLog:8
> +

You never really explained why the code was wrong or what the fix does differently.

> Source/WebInspectorUI/UserInterface/Views/CanvasTabContentView.js:185
> +        for (let recording of canvas.recordingCollection.items) {

I would comment here that we are converting the gone canvas' recordings to be imported recordings.
Comment 4 Devin Rousso 2017-10-26 18:24:02 PDT
Created attachment 325093 [details]
Patch

Added comments.  No change in logic.
Comment 5 WebKit Commit Bot 2017-10-26 19:20:08 PDT
Comment on attachment 325093 [details]
Patch

Clearing flags on attachment: 325093

Committed r224081: <https://trac.webkit.org/changeset/224081>
Comment 6 WebKit Commit Bot 2017-10-26 19:20:10 PDT
All reviewed patches have been landed.  Closing bug.