Bug 174663 - Web Inspector: add stack trace information for each RecordingAction
Summary: Web Inspector: add stack trace information for each RecordingAction
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on: 174484
Blocks: WebInspectorCanvasRecording
  Show dependency treegraph
 
Reported: 2017-07-19 20:32 PDT by Devin Rousso
Modified: 2017-08-02 23:18 PDT (History)
10 users (show)

See Also:


Attachments
Patch (86.40 KB, patch)
2017-08-02 00:13 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews100 for mac-elcapitan (1.08 MB, application/zip)
2017-08-02 01:27 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (1.39 MB, application/zip)
2017-08-02 01:46 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-elcapitan (2.05 MB, application/zip)
2017-08-02 03:40 PDT, Build Bot
no flags Details
Patch (86.60 KB, patch)
2017-08-02 15:32 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
[Image] After Patch is applied (469.36 KB, image/png)
2017-08-02 15:34 PDT, Devin Rousso
no flags Details
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (1.18 MB, application/zip)
2017-08-02 18:06 PDT, Build Bot
no flags Details
Patch (86.52 KB, patch)
2017-08-02 20:15 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (86.56 KB, patch)
2017-08-02 20:37 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2017-07-19 20:32:36 PDT
This would allow users to quickly jump to the line of code responsible for the selected action.
Comment 1 Devin Rousso 2017-08-02 00:13:19 PDT
Created attachment 316941 [details]
Patch
Comment 2 Build Bot 2017-08-02 01:27:07 PDT
Comment on attachment 316941 [details]
Patch

Attachment 316941 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/4238619

New failing tests:
inspector/canvas/recording-2d.html
inspector/model/recording.html
Comment 3 Build Bot 2017-08-02 01:27:08 PDT
Created attachment 316947 [details]
Archive of layout-test-results from ews100 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 4 Build Bot 2017-08-02 01:46:07 PDT
Comment on attachment 316941 [details]
Patch

Attachment 316941 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/4238662

New failing tests:
inspector/canvas/recording-2d.html
inspector/model/recording.html
Comment 5 Build Bot 2017-08-02 01:46:09 PDT
Created attachment 316949 [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
Comment 6 Build Bot 2017-08-02 03:40:49 PDT
Comment on attachment 316941 [details]
Patch

Attachment 316941 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4239021

New failing tests:
inspector/canvas/recording-2d.html
inspector/model/recording.html
Comment 7 Build Bot 2017-08-02 03:40:51 PDT
Created attachment 316951 [details]
Archive of layout-test-results from ews114 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 8 Devin Rousso 2017-08-02 15:32:18 PDT
Created attachment 317015 [details]
Patch
Comment 9 Devin Rousso 2017-08-02 15:34:06 PDT
Created attachment 317016 [details]
[Image] After Patch is applied
Comment 10 Build Bot 2017-08-02 18:06:41 PDT
Comment on attachment 317015 [details]
Patch

Attachment 317015 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/4242892

New failing tests:
imported/w3c/web-platform-tests/fetch/api/cors/cors-no-preflight.any.worker.html
imported/w3c/web-platform-tests/fetch/api/cors/cors-basic.any.html
imported/w3c/web-platform-tests/fetch/api/cors/cors-basic.any.worker.html
imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors.html
imported/w3c/web-platform-tests/fetch/api/cors/cors-origin.any.worker.html
imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker.html
imported/w3c/web-platform-tests/fetch/api/cors/cors-origin.any.html
imported/w3c/web-platform-tests/fetch/api/cors/cors-no-preflight.any.html
Comment 11 Build Bot 2017-08-02 18:06:43 PDT
Created attachment 317050 [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
Comment 12 Joseph Pecoraro 2017-08-02 19:49:04 PDT
Comment on attachment 317015 [details]
Patch

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

r=me

> Source/JavaScriptCore/inspector/ScriptCallFrame.h:55
> +    bool operator==(const ScriptCallFrame& o) const { return isEqual(o); }

Style: Do not abbreviate names. Use `other`.

> Source/WebCore/inspector/InspectorCanvas.cpp:283
> +            auto array = Inspector::Protocol::Array<double>::create();

Style: Just put `item =` here instead of the temp?

> Source/WebCore/inspector/InspectorCanvas.cpp:461
> +            if (visitor->isNativeFrame() && !trace->length())

Style: Lets swap these for readability. Also a length check is probably simpler.

> Source/WebInspectorUI/UserInterface/Models/RecordingAction.js:117
> +            } catch (e) {
> +                // Ignored.
> +            }

You could be the first adopter of the parameterless catch!!

    try {
        ...
    } catch { }
Comment 13 Devin Rousso 2017-08-02 20:15:12 PDT
Created attachment 317076 [details]
Patch
Comment 14 Devin Rousso 2017-08-02 20:37:25 PDT
Created attachment 317080 [details]
Patch
Comment 15 Devin Rousso 2017-08-02 20:38:20 PDT
Comment on attachment 317015 [details]
Patch

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

>> Source/WebCore/inspector/InspectorCanvas.cpp:283
>> +            auto array = Inspector::Protocol::Array<double>::create();
> 
> Style: Just put `item =` here instead of the temp?

I can't do this because item is an InspectorValue and will not have the addItem function.

>> Source/WebInspectorUI/UserInterface/Models/RecordingAction.js:117
>> +            }
> 
> You could be the first adopter of the parameterless catch!!
> 
>     try {
>         ...
>     } catch { }

One reason I added the "// Ignored." is for ESLint, but that's ignorable :P
Comment 16 WebKit Commit Bot 2017-08-02 23:18:12 PDT
Comment on attachment 317080 [details]
Patch

Clearing flags on attachment: 317080

Committed r220188: <http://trac.webkit.org/changeset/220188>
Comment 17 WebKit Commit Bot 2017-08-02 23:18:14 PDT
All reviewed patches have been landed.  Closing bug.
Comment 18 Radar WebKit Bug Importer 2017-08-02 23:18:48 PDT
<rdar://problem/33694023>