Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 213783002: Pass current value of attributes to WebDOMActivityLogger Setter logs. (Closed)

Created:
6 years, 9 months ago by Devlin
Modified:
6 years, 7 months ago
CC:
blink-reviews, jamesr, arv+blink, jsbell+bindings_chromium.org, sof, kouhei+bindings_chromium.org, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive, felt
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Pass current value of attributes to WebDOMActivityLogger Setter logs. Pass the current value of attributes to WebDOMActivityLogger in Setter calls. In order to keep this clean, separate out log() into logMethod(), logGetter(), and logSetter(). This is necessary for improvements to the ActivityLogger, where we need to detect if a modification of certain attributes is a switch from a current setting, or an initialization. In the case of the former, we may need to treat this differently (as it could be modifying to perform ad injection, or other nefarious purposes). BUG=356890 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173227

Patch Set 1 #

Total comments: 6

Patch Set 2 : Working Version #

Total comments: 24

Patch Set 3 : Adam's #

Patch Set 4 : Nils's #

Total comments: 11

Patch Set 5 : Rebase to pull attribute changes into separate CL #

Total comments: 11

Patch Set 6 : Kentaro's #

Patch Set 7 : Remove log method from WebDOMActivityLogger #

Patch Set 8 : creation_context='info.Holder()->CreationContext()' #

Patch Set 9 : #

Patch Set 10 : Latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -37 lines) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -3 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 6 7 8 9 19 chunks +95 lines, -22 lines 0 comments Download
M Source/bindings/v8/V8DOMActivityLogger.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/html/HTMLEmbedElement.idl View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebDOMActivityLogger.cpp View 1 2 3 4 5 6 7 1 chunk +31 lines, -8 lines 0 comments Download
M public/web/WebDOMActivityLogger.h View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 51 (0 generated)
Devlin
Petr, Adrienne mentioned you were the one to go to for WebKit side. Can you ...
6 years, 9 months ago (2014-03-26 22:58:42 UTC) #1
Nils Barth (inactive)
https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp File Source/bindings/templates/attributes.cpp (right): https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp#newcode303 Source/bindings/templates/attributes.cpp:303: v8::Handle<v8::Value> HACK; On 2014/03/26 22:58:42, D Cronin wrote: > ...
6 years, 9 months ago (2014-03-27 02:20:08 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp File Source/bindings/templates/attributes.cpp (right): https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp#newcode303 Source/bindings/templates/attributes.cpp:303: v8::Handle<v8::Value> HACK; OIC, sorry, the point of this CL ...
6 years, 9 months ago (2014-03-27 02:39:49 UTC) #3
Nils Barth (inactive)
https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp File Source/bindings/templates/attributes.cpp (right): https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp#newcode303 Source/bindings/templates/attributes.cpp:303: v8::Handle<v8::Value> HACK; On 2014/03/26 22:58:42, D Cronin wrote: > ...
6 years, 9 months ago (2014-03-27 02:51:25 UTC) #4
Devlin
Thanks in advance for the help! :) https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp File Source/bindings/templates/attributes.cpp (right): https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp#newcode303 Source/bindings/templates/attributes.cpp:303: v8::Handle<v8::Value> HACK; ...
6 years, 9 months ago (2014-03-27 20:35:29 UTC) #5
Nils Barth (inactive)
On 2014/03/27 20:35:29, D Cronin wrote: > We might be able to just call *AttributeGetter, ...
6 years, 9 months ago (2014-03-28 01:39:22 UTC) #6
haraken
Before discussing the implementation, I might want to have pmarch@ review this CL. Since changes ...
6 years, 9 months ago (2014-03-28 01:44:46 UTC) #7
Devlin
On 2014/03/28 01:44:46, haraken wrote: > Before discussing the implementation, I might want to have ...
6 years, 9 months ago (2014-03-28 04:28:55 UTC) #8
Devlin
On 2014/03/28 04:28:55, D Cronin wrote: > On 2014/03/28 01:44:46, haraken wrote: > > Before ...
6 years, 8 months ago (2014-04-02 13:53:58 UTC) #9
Nils Barth (inactive)
On 2014/04/02 13:53:58, D Cronin wrote: > Friendly ping on this? pmarch@, haraken@ ?
6 years, 8 months ago (2014-04-03 00:00:21 UTC) #10
Devlin
On 2014/04/03 00:00:21, Nils Barth wrote: > On 2014/04/02 13:53:58, D Cronin wrote: > > ...
6 years, 8 months ago (2014-04-11 22:42:17 UTC) #11
pmarch
On 2014/04/11 22:42:17, D Cronin wrote: > On 2014/04/03 00:00:21, Nils Barth wrote: > > ...
6 years, 8 months ago (2014-04-17 15:47:17 UTC) #12
pmarch
https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp File Source/bindings/templates/attributes.cpp (right): https://codereview.chromium.org/213783002/diff/1/Source/bindings/templates/attributes.cpp#newcode303 Source/bindings/templates/attributes.cpp:303: v8::Handle<v8::Value> HACK; I am not an expert on this, ...
6 years, 8 months ago (2014-04-17 16:10:57 UTC) #13
abarth-chromium
not lgtm Before adding more functionality to the activity logger, I think we should have ...
6 years, 8 months ago (2014-04-17 22:53:37 UTC) #14
Nils Barth (inactive)
To summarize, AFAICT: * This needs design review and discussion, but should be done in ...
6 years, 8 months ago (2014-04-18 01:05:22 UTC) #15
Nils Barth (inactive)
(Oh, see we've got a design review scheduled, which should handle this.)
6 years, 8 months ago (2014-04-18 01:07:19 UTC) #16
abarth-chromium
On 2014/04/18 01:07:19, Nils Barth wrote: > (Oh, see we've got a design review scheduled, ...
6 years, 8 months ago (2014-04-22 00:01:29 UTC) #17
Devlin
All - working patch uploaded. Per Petr's advice, this introduces a new extended attribute tag ...
6 years, 8 months ago (2014-04-22 17:47:09 UTC) #18
abarth-chromium
https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt#newcode37 Source/bindings/IDLExtendedAttributes.txt:37: ActivityLogging=ForAllWorlds|GetterForAllWorlds|SetterForAllWorlds|ForIsolatedWorlds|GetterForIsolatedWorlds|SetterForIsolatedWorlds|ForAllWorlsIncludeOldValueForSetter|SetterForAllWorldsIncludeOldValueForSetter|ForIsolatedWorldsIncludeOldValueForSetter|SetterForIsolatedWorldsIncludeOldValueForSetter On 2014/04/22 17:47:09, D Cronin wrote: > This ...
6 years, 8 months ago (2014-04-22 23:35:50 UTC) #19
Devlin
https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt#newcode37 Source/bindings/IDLExtendedAttributes.txt:37: ActivityLogging=ForAllWorlds|GetterForAllWorlds|SetterForAllWorlds|ForIsolatedWorlds|GetterForIsolatedWorlds|SetterForIsolatedWorlds|ForAllWorlsIncludeOldValueForSetter|SetterForAllWorldsIncludeOldValueForSetter|ForIsolatedWorldsIncludeOldValueForSetter|SetterForIsolatedWorldsIncludeOldValueForSetter On 2014/04/22 23:35:51, abarth wrote: > On 2014/04/22 ...
6 years, 8 months ago (2014-04-23 01:10:02 UTC) #20
Nils Barth (inactive)
Thanks for revisions! A few suggestions. https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt#newcode37 Source/bindings/IDLExtendedAttributes.txt:37: ActivityLogging=ForAllWorlds|GetterForAllWorlds|SetterForAllWorlds|ForIsolatedWorlds|GetterForIsolatedWorlds|SetterForIsolatedWorlds|ForAllWorlsIncludeOldValueForSetter|SetterForAllWorldsIncludeOldValueForSetter|ForIsolatedWorldsIncludeOldValueForSetter|SetterForIsolatedWorldsIncludeOldValueForSetter On 2014/04/22 ...
6 years, 8 months ago (2014-04-23 01:12:02 UTC) #21
Devlin
https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt#newcode37 Source/bindings/IDLExtendedAttributes.txt:37: ActivityLogging=ForAllWorlds|GetterForAllWorlds|SetterForAllWorlds|ForIsolatedWorlds|GetterForIsolatedWorlds|SetterForIsolatedWorlds|ForAllWorlsIncludeOldValueForSetter|SetterForAllWorldsIncludeOldValueForSetter|ForIsolatedWorldsIncludeOldValueForSetter|SetterForIsolatedWorldsIncludeOldValueForSetter On 2014/04/23 01:12:02, Nils Barth wrote: > On ...
6 years, 8 months ago (2014-04-23 01:31:42 UTC) #22
Nils Barth (inactive)
(adding haraken@ back)
6 years, 8 months ago (2014-04-23 02:37:24 UTC) #23
Nils Barth (inactive)
Some followups; main request is to split off the extended attribute renaming into a separate ...
6 years, 8 months ago (2014-04-23 03:04:41 UTC) #24
Devlin
https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt#newcode37 Source/bindings/IDLExtendedAttributes.txt:37: ActivityLogging=ForAllWorlds|GetterForAllWorlds|SetterForAllWorlds|ForIsolatedWorlds|GetterForIsolatedWorlds|SetterForIsolatedWorlds|ForAllWorlsIncludeOldValueForSetter|SetterForAllWorldsIncludeOldValueForSetter|ForIsolatedWorldsIncludeOldValueForSetter|SetterForIsolatedWorldsIncludeOldValueForSetter On 2014/04/23 03:04:42, Nils Barth wrote: > On ...
6 years, 8 months ago (2014-04-23 18:28:01 UTC) #25
Nils Barth (inactive)
Thanks, LGTM CG + templates-wise! haraken, abarth: how are semantics? https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/213783002/diff/40001/Source/bindings/IDLExtendedAttributes.txt#newcode37 ...
6 years, 8 months ago (2014-04-24 01:00:41 UTC) #26
haraken
We did a design review, and this CL looks OK as a short-term fix. I've ...
6 years, 8 months ago (2014-04-24 01:10:57 UTC) #27
abarth-chromium
https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py File Source/bindings/scripts/v8_attributes.py (right): https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py#newcode92 Source/bindings/scripts/v8_attributes.py:92: 'cpp_value_to_v8_value': idl_type.cpp_value_to_v8_value(cpp_value='original', creation_context='v8::Handle<v8::Object>()'), v8::Handle<v8::Object>() isn't the right ceration_context. That's ...
6 years, 8 months ago (2014-04-24 14:48:21 UTC) #28
Devlin
https://codereview.chromium.org/213783002/diff/140001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/213783002/diff/140001/Source/bindings/IDLExtendedAttributes.txt#newcode66 Source/bindings/IDLExtendedAttributes.txt:66: LogPreviousValue On 2014/04/24 01:10:57, haraken wrote: > > Add ...
6 years, 8 months ago (2014-04-24 16:40:34 UTC) #29
abarth-chromium
On 2014/04/24 16:40:34, D Cronin wrote: > Chromium does use the OVERRIDE keyword. Relevant instance ...
6 years, 8 months ago (2014-04-24 16:58:43 UTC) #30
abarth-chromium
On 2014/04/24 16:40:34, D Cronin wrote: > https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py > File Source/bindings/scripts/v8_attributes.py (right): > > https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py#newcode92 ...
6 years, 8 months ago (2014-04-24 16:59:38 UTC) #31
Devlin
On 2014/04/24 16:58:43, abarth wrote: > On 2014/04/24 16:40:34, D Cronin wrote: > > Chromium ...
6 years, 8 months ago (2014-04-24 17:23:45 UTC) #32
abarth-chromium
On 2014/04/24 17:23:45, D Cronin wrote: > Anything else (apart from the standing creation_context question)? ...
6 years, 8 months ago (2014-04-25 00:18:12 UTC) #33
Nils Barth (inactive)
https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py File Source/bindings/scripts/v8_attributes.py (right): https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py#newcode92 Source/bindings/scripts/v8_attributes.py:92: 'cpp_value_to_v8_value': idl_type.cpp_value_to_v8_value(cpp_value='original', creation_context='v8::Handle<v8::Object>()'), On 2014/04/24 16:40:35, D Cronin wrote: ...
6 years, 8 months ago (2014-04-25 01:45:40 UTC) #34
haraken
https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py File Source/bindings/scripts/v8_attributes.py (right): https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py#newcode92 Source/bindings/scripts/v8_attributes.py:92: 'cpp_value_to_v8_value': idl_type.cpp_value_to_v8_value(cpp_value='original', creation_context='v8::Handle<v8::Object>()'), On 2014/04/25 01:45:41, Nils Barth wrote: ...
6 years, 8 months ago (2014-04-25 01:50:48 UTC) #35
Nils Barth (inactive)
https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py File Source/bindings/scripts/v8_attributes.py (right): https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py#newcode92 Source/bindings/scripts/v8_attributes.py:92: 'cpp_value_to_v8_value': idl_type.cpp_value_to_v8_value(cpp_value='original', creation_context='v8::Handle<v8::Object>()'), On 2014/04/25 01:50:49, haraken wrote: > ...
6 years, 8 months ago (2014-04-25 01:54:51 UTC) #36
Devlin
On 2014/04/25 01:50:48, haraken wrote: > https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py > File Source/bindings/scripts/v8_attributes.py (right): > > https://codereview.chromium.org/213783002/diff/140001/Source/bindings/scripts/v8_attributes.py#newcode92 > ...
6 years, 8 months ago (2014-04-25 01:55:38 UTC) #37
haraken
On 2014/04/25 01:55:38, D Cronin wrote: > On 2014/04/25 01:50:48, haraken wrote: > > > ...
6 years, 8 months ago (2014-04-25 01:58:45 UTC) #38
Nils Barth (inactive)
On 2014/04/25 01:58:45, haraken wrote: > If you need a creation context, we need to ...
6 years, 8 months ago (2014-04-25 03:14:17 UTC) #39
Devlin
On 2014/04/25 03:14:17, Nils Barth wrote: > On 2014/04/25 01:58:45, haraken wrote: > > If ...
6 years, 8 months ago (2014-04-25 19:46:26 UTC) #40
haraken
On 2014/04/25 19:46:26, D Cronin wrote: > On 2014/04/25 03:14:17, Nils Barth wrote: > > ...
6 years, 8 months ago (2014-04-25 23:46:38 UTC) #41
Devlin
On 2014/04/25 23:46:38, haraken wrote: > On 2014/04/25 19:46:26, D Cronin wrote: > > On ...
6 years, 8 months ago (2014-04-26 00:11:30 UTC) #42
abarth-chromium
lgtm
6 years, 8 months ago (2014-04-26 01:23:57 UTC) #43
Devlin
Chrome support has gone through, so going to push this in now.
6 years, 7 months ago (2014-05-02 18:11:41 UTC) #44
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 7 months ago (2014-05-02 18:11:48 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/213783002/210001
6 years, 7 months ago (2014-05-02 18:12:02 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 18:12:25 UTC) #47
commit-bot: I haz the power
Failed to apply patch for Source/bindings/templates/attributes.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-02 18:12:27 UTC) #48
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 7 months ago (2014-05-02 18:24:04 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/213783002/230001
6 years, 7 months ago (2014-05-02 18:24:40 UTC) #50
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 20:54:46 UTC) #51
Message was sent while issue was closed.
Change committed as 173227

Powered by Google App Engine
This is Rietveld 408576698