This would prevent the unexpected state where `console.record` is called and then the frontend later requests a recording, resulting in an error.
Created attachment 351663 [details] Patch
Created attachment 351664 [details] Patch
Comment on attachment 351664 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351664&action=review This change looks fine (excepting that it doesn't apply to TOT). Please rebase. > Source/JavaScriptCore/inspector/protocol/Canvas.json:197 > + { "name": "fromConsole", "type": "boolean" } I'd prefer that this be "initiator" with enum { Frontend, ConsoleAPI }. Thinking ahead to the various ways console logs can be initiated, this seems more future-proof if we add other means to trigger this. I also just generically don't like adding boolean flags to the protocol.
Comment on attachment 351664 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351664&action=review (In reply to Brian Burg from comment #3) > This change looks fine (excepting that it doesn't apply to TOT). Please > rebase. It won't apply because it needs changes made in <https://webkit.org/b/190305> (which is blocking this one). >> Source/JavaScriptCore/inspector/protocol/Canvas.json:197 >> + { "name": "fromConsole", "type": "boolean" } > > I'd prefer that this be "initiator" with enum { Frontend, ConsoleAPI }. Thinking ahead to the various ways console logs can be initiated, this seems more future-proof if we add other means to trigger this. I also just generically don't like adding boolean flags to the protocol. Oooo I like it!
Created attachment 351849 [details] Patch
Comment on attachment 351849 [details] Patch Attachment 351849 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/9499071 New failing tests: inspector/canvas/recording-bitmaprenderer.html
Created attachment 351857 [details] Archive of layout-test-results from ews117 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 351860 [details] Patch
Comment on attachment 351860 [details] Patch r=me
Comment on attachment 351860 [details] Patch Clearing flags on attachment: 351860 Committed r237010: <https://trac.webkit.org/changeset/237010>
All reviewed patches have been landed. Closing bug.
<rdar://problem/45167312>