# STEPS TO REPRODUCE: 1. inspect any page with a <canvas> 2. take a multi-frame recording (or a single frame that is very very long) 3. stop the recording 4. wait for the recording content view to appear and the recording actions to start processing => no action is initially selected, which means that there is no preview in the main content area
<rdar://problem/48875214>
Created attachment 364619 [details] Patch
Created attachment 364620 [details] Patch
Comment on attachment 364620 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364620&action=review r=me > Source/WebInspectorUI/ChangeLog:11 > + Rather than wait till the entire recording is ready, set the selected action as soon as the s/till/until > Source/WebInspectorUI/UserInterface/Views/CanvasSidebarPanel.js:581 > + this.action = action; So `action` here is equivalent to this._recording.actions[0], if the recording were ready?
Comment on attachment 364620 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364620&action=review >> Source/WebInspectorUI/UserInterface/Views/CanvasSidebarPanel.js:581 >> + this.action = action; > > So `action` here is equivalent to this._recording.actions[0], if the recording were ready? Yes, but not if the recording is ready. This event listener is only fired when processing actions, so this check is basically saying "when we process an action, if we haven't set a selected action yet, use this action". Although it's effectively impossible (unless some funky stuff happens, or this is changed in the future) for this if to be hit by anything other than the first action, I'll change it to `this._recording.actions[0]` just in case.
Created attachment 364679 [details] Patch
Comment on attachment 364679 [details] Patch Clearing flags on attachment: 364679 Committed r242962: <https://trac.webkit.org/changeset/242962>
All reviewed patches have been landed. Closing bug.