RESOLVED FIXED Bug 178980
Web Inspector: replace Canvas stack iteration with createScriptCallStack
https://bugs.webkit.org/show_bug.cgi?id=178980
Summary Web Inspector: replace Canvas stack iteration with createScriptCallStack
Devin Rousso
Reported 2017-10-28 01:53:45 PDT
As pointed out by Joe, we already have code to do this for us :|
Attachments
Patch (4.19 KB, patch)
2017-10-28 01:56 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews101 for mac-elcapitan (1.28 MB, application/zip)
2017-10-28 02:53 PDT, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (1.41 MB, application/zip)
2017-10-28 02:58 PDT, Build Bot
no flags
Archive of layout-test-results from ews117 for mac-elcapitan (2.01 MB, application/zip)
2017-10-28 03:09 PDT, Build Bot
no flags
Patch (253.96 KB, patch)
2017-10-28 03:11 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews103 for mac-elcapitan (1.02 MB, application/zip)
2017-10-28 04:06 PDT, Build Bot
no flags
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (1.15 MB, application/zip)
2017-10-28 04:13 PDT, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-elcapitan (1.81 MB, application/zip)
2017-10-28 04:27 PDT, Build Bot
no flags
Patch (254.33 KB, patch)
2017-10-28 18:12 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews103 for mac-elcapitan (1022.98 KB, application/zip)
2017-10-28 19:07 PDT, Build Bot
no flags
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (1.19 MB, application/zip)
2017-10-28 19:15 PDT, Build Bot
no flags
Archive of layout-test-results from ews112 for mac-elcapitan (1.79 MB, application/zip)
2017-10-28 19:27 PDT, Build Bot
no flags
Patch (254.33 KB, patch)
2017-10-28 21:22 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2017-10-28 01:56:28 PDT
Build Bot
Comment 2 2017-10-28 02:53:50 PDT
Comment on attachment 325254 [details] Patch Attachment 325254 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/5021753 New failing tests: inspector/canvas/recording-2d.html inspector/canvas/recording-webgl-snapshots.html inspector/canvas/recording-webgl.html inspector/canvas/create-context-webgl.html
Build Bot
Comment 3 2017-10-28 02:53:52 PDT
Created attachment 325255 [details] Archive of layout-test-results from ews101 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 4 2017-10-28 02:58:04 PDT
Comment on attachment 325254 [details] Patch Attachment 325254 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5021763 New failing tests: inspector/canvas/recording-2d.html inspector/canvas/recording-webgl-snapshots.html inspector/canvas/recording-webgl.html inspector/canvas/create-context-webgl.html
Build Bot
Comment 5 2017-10-28 02:58:05 PDT
Created attachment 325256 [details] Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 6 2017-10-28 03:09:00 PDT
Comment on attachment 325254 [details] Patch Attachment 325254 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/5021773 New failing tests: inspector/canvas/recording-2d.html inspector/canvas/recording-webgl-snapshots.html inspector/canvas/recording-webgl.html inspector/canvas/create-context-webgl.html
Build Bot
Comment 7 2017-10-28 03:09:01 PDT
Created attachment 325257 [details] Archive of layout-test-results from ews117 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Devin Rousso
Comment 8 2017-10-28 03:11:21 PDT
Created attachment 325258 [details] Patch Forgot tests :P
Build Bot
Comment 9 2017-10-28 04:06:40 PDT
Comment on attachment 325258 [details] Patch Attachment 325258 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/5022164 New failing tests: inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 10 2017-10-28 04:06:42 PDT
Created attachment 325259 [details] Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 11 2017-10-28 04:13:35 PDT
Comment on attachment 325258 [details] Patch Attachment 325258 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5022179 New failing tests: inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 12 2017-10-28 04:13:36 PDT
Created attachment 325260 [details] Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 13 2017-10-28 04:27:02 PDT
Comment on attachment 325258 [details] Patch Attachment 325258 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/5022189 New failing tests: inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 14 2017-10-28 04:27:03 PDT
Created attachment 325261 [details] Archive of layout-test-results from ews113 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Devin Rousso
Comment 15 2017-10-28 18:12:18 PDT
Build Bot
Comment 16 2017-10-28 19:07:58 PDT
Comment on attachment 325271 [details] Patch Attachment 325271 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/5027101 New failing tests: inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 17 2017-10-28 19:07:59 PDT
Created attachment 325272 [details] Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 18 2017-10-28 19:15:26 PDT
Comment on attachment 325271 [details] Patch Attachment 325271 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5027108 New failing tests: inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 19 2017-10-28 19:15:27 PDT
Created attachment 325273 [details] Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 20 2017-10-28 19:27:05 PDT
Comment on attachment 325271 [details] Patch Attachment 325271 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/5027119 New failing tests: inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 21 2017-10-28 19:27:07 PDT
Created attachment 325274 [details] Archive of layout-test-results from ews112 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Devin Rousso
Comment 22 2017-10-28 21:22:31 PDT
Joseph Pecoraro
Comment 23 2017-10-30 11:53:59 PDT
Comment on attachment 325278 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=325278&action=review r=me > Source/WebCore/inspector/InspectorCanvas.cpp:262 > + auto stackTrace = Inspector::createScriptCallStack(JSMainThreadExecState::currentState(), Inspector::ScriptCallStack::maxCallStackSizeToCapture); We should really make ScriptCallStack::maxCallStackSizeToCapture a default value. Its ridiculous that pretty much every caller passes it. > LayoutTests/inspector/canvas/create-context-2d-expected.txt:33 > + 0: getCSSCanvasContext - [native code] Nice! See it is worth including the native function!
Devin Rousso
Comment 24 2017-10-31 00:45:16 PDT
Comment on attachment 325278 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=325278&action=review >> Source/WebCore/inspector/InspectorCanvas.cpp:262 >> + auto stackTrace = Inspector::createScriptCallStack(JSMainThreadExecState::currentState(), Inspector::ScriptCallStack::maxCallStackSizeToCapture); > > We should really make ScriptCallStack::maxCallStackSizeToCapture a default value. Its ridiculous that pretty much every caller passes it. <https://webkit.org/b/179048> Web Inspector: make ScriptCallStack::maxCallStackSizeToCapture the default value when capturing backtraces
WebKit Commit Bot
Comment 25 2017-10-31 01:06:11 PDT
Comment on attachment 325278 [details] Patch Clearing flags on attachment: 325278 Committed r224224: <https://trac.webkit.org/changeset/224224>
WebKit Commit Bot
Comment 26 2017-10-31 01:06:13 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 27 2017-11-15 12:35:31 PST
Note You need to log in before you can comment on or make changes to this bug.