Bug 176070 - CallTracingCallback should ignore `readonly attribute`
Summary: CallTracingCallback should ignore `readonly attribute`
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-29 15:05 PDT by Devin Rousso
Modified: 2017-08-29 19:41 PDT (History)
7 users (show)

See Also:


Attachments
Patch (9.40 KB, patch)
2017-08-29 15:10 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (9.44 KB, patch)
2017-08-29 15:39 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (117.03 KB, patch)
2017-08-29 16:26 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-08-29 15:05:08 PDT
A `readonly attribute` is unlikely to have any effect on the object being traced by CallTracer.  Therefore, CallTracer probably doesn't need to instrument those getters, as it would most likely be unneeded information.
Comment 1 Devin Rousso 2017-08-29 15:10:32 PDT
Created attachment 319289 [details]
Patch
Comment 2 Matt Baker 2017-08-29 15:19:28 PDT
Comment on attachment 319289 [details]
Patch

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

r=me

> Source/WebCore/ChangeLog:8
> +        Updates existing bindings test with more cases.

It seems like the thing to note is that the CallTracingCallback is not invoked for readonly attributes. Aren't the test cases just auto-generated?

> Source/WebCore/ChangeLog:12
> +        If the attribute is makred `readonly` do not add CallTracer logic.

makred -> marked
Comment 3 Devin Rousso 2017-08-29 15:38:35 PDT
Comment on attachment 319289 [details]
Patch

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

>> Source/WebCore/ChangeLog:8
>> +        Updates existing bindings test with more cases.
> 
> It seems like the thing to note is that the CallTracingCallback is not invoked for readonly attributes. Aren't the test cases just auto-generated?

The IDL file for the test case is not autogenerated, but the corresponding cpp/h files are.
Comment 4 Devin Rousso 2017-08-29 15:39:22 PDT
Created attachment 319293 [details]
Patch
Comment 5 Devin Rousso 2017-08-29 16:26:43 PDT
Created attachment 319302 [details]
Patch
Comment 6 WebKit Commit Bot 2017-08-29 19:40:08 PDT
Comment on attachment 319302 [details]
Patch

Clearing flags on attachment: 319302

Committed r221336: <http://trac.webkit.org/changeset/221336>
Comment 7 WebKit Commit Bot 2017-08-29 19:40:09 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2017-08-29 19:41:26 PDT
<rdar://problem/34150808>