RESOLVED FIXED Bug 183647
Web Inspector: Canvas: a recording initiated by the user should be shown immediately on completion
https://bugs.webkit.org/show_bug.cgi?id=183647
Summary Web Inspector: Canvas: a recording initiated by the user should be shown imme...
Matt Baker
Reported 2018-03-14 16:33:37 PDT
Summary: A recording initiated by the user should be shown immediately on completion. This does not include recordings started using console.record. Steps to Reproduce: 1. Open https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations 2. Open Canvas tab 3. Click record on the "A looping panorama" canvas 4. Wait for a couple frames, then hit stop Actual: => Recording is added to "View Recordings" Expected: => Recording view is shown Note: This only affects multi-frame recordings.
Attachments
Patch (4.00 KB, patch)
2018-03-14 17:26 PDT, Devin Rousso
no flags
Patch (4.82 KB, patch)
2018-03-14 21:45 PDT, Devin Rousso
no flags
Radar WebKit Bug Importer
Comment 1 2018-03-14 16:33:51 PDT
Devin Rousso
Comment 2 2018-03-14 17:26:27 PDT
Matt Baker
Comment 3 2018-03-14 17:44:16 PDT
Comment on attachment 335813 [details] Patch r=me. A top-level comment about *why* this fixes the issue would be nice. I had to do some debugging to learn that CanvasManager was dispatching RecordingStopped with `fromConsole` set to true, because this._recordingCanvas was being nulled out too early.
Devin Rousso
Comment 4 2018-03-14 21:45:57 PDT
WebKit Commit Bot
Comment 5 2018-03-14 22:54:57 PDT
Comment on attachment 335832 [details] Patch Clearing flags on attachment: 335832 Committed r229620: <https://trac.webkit.org/changeset/229620>
WebKit Commit Bot
Comment 6 2018-03-14 22:54:59 PDT
All reviewed patches have been landed. Closing bug.
Matt Baker
Comment 7 2018-03-14 23:48:52 PDT
Comment on attachment 335832 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=335832&action=review > Source/WebInspectorUI/ChangeLog:20 > + in `stopRecording`, so this patch just prevents it from being nulled too early. You really took that review comment and ran with it!
Note You need to log in before you can comment on or make changes to this bug.