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

Issue 13799007: Support for selective DOM activity logging, based on IDL attributes. (Closed)

Created:
7 years, 8 months ago by ulfar
Modified:
7 years, 8 months ago
CC:
blink-reviews, Nate Chapin, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Support for selective DOM activity logging, based on IDL attributes. Add support for activity logging, which logs access to selected DOM attributes and methods, based on IDL attribute markings. Logging adds code to getter, setter, and method callbacks in the V8 bindings, either in all of the callbacks, or just the callbacks for the isolated worlds. R=haraken@chromium.org BUG=160989 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148146 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148183 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148343 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148749

Patch Set 1 #

Patch Set 2 : Updated to track ongoing Blink changes. #

Patch Set 3 : Removed two superfluous in attributes in the IDL. #

Total comments: 12

Patch Set 4 : Addressed comments from Kentaro #

Patch Set 5 : Handle corner cases with non-existant context data, which was causing a crash #

Patch Set 6 : Extended activity logging to cover additional security-sensitive APIs (mostly HTML5). #

Patch Set 7 : Moved to new, faster V8 GetCurrentContext API, and generated bindings tests #

Patch Set 8 : Add missing initialization of per-context logger field. #

Patch Set 9 : Merging with recent changed, to bring patch up to date. #

Patch Set 10 : Removed bindings tests output, temporarily, to work around diff difficulty. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -32 lines) Patch
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 4 5 6 7 8 6 chunks +74 lines, -0 lines 0 comments Download
M Source/bindings/scripts/IDLAttributes.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/idls/TestObj.idl View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8PerContextData.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.idl View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/Node.idl View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/ShadowRoot.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCanvasElement.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLDocument.idl View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/DOMWindow.idl View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/page/Location.idl View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/storage/Storage.idl View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.idl View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/geolocation/Geolocation.idl View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/notifications/DOMWindowNotifications.idl View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/notifications/NotificationCenter.idl View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DOMWindowWebDatabase.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
haraken
Would you double-check Dromaeo/dom-* performance again? If you cannot observe any regression, I'm happy to ...
7 years, 8 months ago (2013-04-11 00:59:16 UTC) #1
ulfar
I double-checked Dromaeo/dom-* performance, and there was no measurable performance regression on my workstation. (The ...
7 years, 8 months ago (2013-04-11 03:24:10 UTC) #2
ulfar
I double-checked Dromaeo/dom-* performance, and there was no measurable performance regression on my workstation. (The ...
7 years, 8 months ago (2013-04-11 03:25:15 UTC) #3
haraken
The change looks good. Would you add bindings-tests? You can add attributes/methods with [ActivityLog=*] to ...
7 years, 8 months ago (2013-04-11 03:29:42 UTC) #4
haraken
Discussed offline. ./run-bindings-tests is not working (again). Later I'll add binding-tests for you. LGTM. I'll ...
7 years, 8 months ago (2013-04-11 03:49:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/12001
7 years, 8 months ago (2013-04-11 04:05:30 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=3287
7 years, 8 months ago (2013-04-11 05:07:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/12001
7 years, 8 months ago (2013-04-11 05:25:11 UTC) #8
commit-bot: I haz the power
Change committed as 148146
7 years, 8 months ago (2013-04-11 05:25:41 UTC) #9
eseidel
This appears to have caused lots of crashes on teh bots? http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&tests=fast%2Fdom%2Fxmlhttprequest-constructor-in-detached-document.html
7 years, 8 months ago (2013-04-11 08:15:21 UTC) #10
eseidel
This appears to have caused lots of crashes on teh bots? http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&tests=fast%2Fdom%2Fxmlhttprequest-constructor-in-detached-document.html
7 years, 8 months ago (2013-04-11 08:15:21 UTC) #11
haraken
Thanks for letting me know. Let me revert it.
7 years, 8 months ago (2013-04-11 08:17:12 UTC) #12
haraken
ulfar: would you take a look at the crashes?
7 years, 8 months ago (2013-04-11 08:21:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/28001
7 years, 8 months ago (2013-04-11 13:39:30 UTC) #14
commit-bot: I haz the power
Change committed as 148183
7 years, 8 months ago (2013-04-11 13:39:53 UTC) #15
haraken
oops, I checked the commit button without removing NOTRY=true line... Anyway, given that I have ...
7 years, 8 months ago (2013-04-11 13:41:57 UTC) #16
haraken
I'll reland the patch tomorrow morning.
7 years, 8 months ago (2013-04-11 13:45:12 UTC) #17
felt
Ulfar, thanks for adding the HTML5 logging so fast!
7 years, 8 months ago (2013-04-12 02:13:51 UTC) #18
ulfar
Kentaro: I added the binding tests, so the patch is hopefully all ready now. Haven't ...
7 years, 8 months ago (2013-04-12 22:03:28 UTC) #19
haraken
Committed patchset #7 manually as r148343 (presubmit successful).
7 years, 8 months ago (2013-04-15 01:27:20 UTC) #20
haraken
On 2013/04/15 01:27:20, haraken wrote: > Committed patchset #7 manually as r148343 (presubmit successful). Rolled ...
7 years, 8 months ago (2013-04-15 04:25:35 UTC) #21
haraken
On 2013/04/15 04:25:35, haraken wrote: > Ulfar: Would you check them again? I'd guess the ...
7 years, 8 months ago (2013-04-15 04:34:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/44001
7 years, 8 months ago (2013-04-18 05:13:04 UTC) #23
commit-bot: I haz the power
Failed to apply patch for Source/WebCore/dom/Document.idl: While running patch -p1 --forward --force --no-backup-if-mismatch; A Source/WebCore ...
7 years, 8 months ago (2013-04-18 05:13:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/49001
7 years, 8 months ago (2013-04-18 21:57:32 UTC) #25
commit-bot: I haz the power
Presubmit check for 13799007-49001 failed and returned exit status 1. INFO:root:Found 20 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-18 21:57:45 UTC) #26
ulfar
Trying to submit. Can I get an LGTM.
7 years, 8 months ago (2013-04-18 22:39:05 UTC) #27
abarth-chromium
Sorry, we changed the OWNERS rules out from under you. IDL changes in Modules LGTM.
7 years, 8 months ago (2013-04-18 23:07:21 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/52003
7 years, 8 months ago (2013-04-18 23:07:38 UTC) #29
commit-bot: I haz the power
"webkit_tests" failed. Giving up immediately. Builder is mac_layout_rel, revision is HEAD
7 years, 8 months ago (2013-04-18 23:32:13 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/52003
7 years, 8 months ago (2013-04-19 01:15:36 UTC) #31
commit-bot: I haz the power
"webkit_tests" failed. Giving up immediately. Builder is mac_layout_rel, revision is HEAD
7 years, 8 months ago (2013-04-19 01:15:43 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/52003
7 years, 8 months ago (2013-04-19 01:17:40 UTC) #33
commit-bot: I haz the power
"webkit_tests" failed. Giving up immediately. Builder is mac_layout_rel, revision is HEAD
7 years, 8 months ago (2013-04-19 01:17:53 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulfar@google.com/13799007/52003
7 years, 8 months ago (2013-04-19 20:52:43 UTC) #35
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 20:53:10 UTC) #36
Message was sent while issue was closed.
Change committed as 148749

Powered by Google App Engine
This is Rietveld 408576698