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

Issue 1419313003: Track the script state a listener was created in (Closed)

Created:
5 years, 1 month ago by jochen (gone - plz use gerrit)
Modified:
5 years, 1 month ago
Reviewers:
haraken, vogelheim
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Track the script state a listener was created in That way, we can delete the private values on the listener in the right context R=haraken@chromium.org BUG=none Committed: https://crrev.com/aaf8bd48dfd77a6945f3cfd4c5b01ab631d956cd Cr-Commit-Position: refs/heads/master@{#360578}

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 3

Patch Set 3 : updates #

Total comments: 2

Patch Set 4 : updates #

Patch Set 5 : updates #

Total comments: 16

Patch Set 6 : updates #

Total comments: 2

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -148 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp View 1 2 3 4 5 4 chunks +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp View 1 2 3 4 4 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp View 1 2 3 4 5 chunks +11 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8EventListenerList.h View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.cpp View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WorkerScriptController.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8CustomEventCustom.cpp View 1 2 3 4 5 6 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8ErrorEventCustom.cpp View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp View 1 2 3 4 5 3 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/attributes.cpp View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 4 5 6 20 chunks +20 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/events/MessageEvent.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InjectedScriptNative.cpp View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (2 generated)
jochen (gone - plz use gerrit)
5 years, 1 month ago (2015-11-06 19:57:43 UTC) #1
jochen (gone - plz use gerrit)
+vogelheim, ptal https://codereview.chromium.org/1419313003/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h File third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h (right): https://codereview.chromium.org/1419313003/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h#newcode151 third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h:151: ScriptState* m_scriptState; this is basically the creation ...
5 years, 1 month ago (2015-11-06 23:31:56 UTC) #3
haraken
https://codereview.chromium.org/1419313003/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h File third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h (right): https://codereview.chromium.org/1419313003/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h#newcode151 third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h:151: ScriptState* m_scriptState; On 2015/11/06 23:31:56, jochen (slow - traveling) ...
5 years, 1 month ago (2015-11-07 01:23:39 UTC) #4
jochen (gone - plz use gerrit)
On 2015/11/07 at 01:23:39, haraken wrote: > https://codereview.chromium.org/1419313003/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h > File third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h (right): > > https://codereview.chromium.org/1419313003/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h#newcode151 ...
5 years, 1 month ago (2015-11-07 01:40:04 UTC) #5
haraken
On 2015/11/07 01:40:04, jochen (slow - traveling) wrote: > On 2015/11/07 at 01:23:39, haraken wrote: ...
5 years, 1 month ago (2015-11-07 01:45:44 UTC) #6
jochen (gone - plz use gerrit)
On 2015/11/07 at 01:45:44, haraken wrote: > On 2015/11/07 01:40:04, jochen (slow - traveling) wrote: ...
5 years, 1 month ago (2015-11-07 01:49:36 UTC) #7
haraken
On 2015/11/07 01:49:36, jochen (slow - traveling) wrote: > On 2015/11/07 at 01:45:44, haraken wrote: ...
5 years, 1 month ago (2015-11-07 02:54:54 UTC) #8
jochen (gone - plz use gerrit)
On 2015/11/07 at 02:54:54, haraken wrote: > On 2015/11/07 01:49:36, jochen (slow - traveling) wrote: ...
5 years, 1 month ago (2015-11-07 05:07:52 UTC) #9
haraken
On 2015/11/07 05:07:52, jochen (slow - traveling) wrote: > On 2015/11/07 at 02:54:54, haraken wrote: ...
5 years, 1 month ago (2015-11-07 06:42:54 UTC) #10
jochen (gone - plz use gerrit)
hum, I think the correct thing would be to require a ScriptState* for all V8HiddenValue ...
5 years, 1 month ago (2015-11-07 06:46:55 UTC) #11
haraken
Sounds reasonable to me. Mostly looks good. https://codereview.chromium.org/1419313003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp File third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp (right): https://codereview.chromium.org/1419313003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp#newcode62 third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp:62: V8EventListenerList::clearWrapper(m_listener.newLocal(isolate()), m_isAttribute, ...
5 years, 1 month ago (2015-11-07 06:56:47 UTC) #12
jochen (gone - plz use gerrit)
On 2015/11/07 at 06:56:47, haraken wrote: > Sounds reasonable to me. Mostly looks good. Do ...
5 years, 1 month ago (2015-11-07 15:31:34 UTC) #13
haraken
On 2015/11/07 15:31:34, jochen (slow - traveling) wrote: > On 2015/11/07 at 06:56:47, haraken wrote: ...
5 years, 1 month ago (2015-11-07 20:15:52 UTC) #14
jochen (gone - plz use gerrit)
done
5 years, 1 month ago (2015-11-08 06:13:19 UTC) #15
haraken
Thanks for a lot of work! LGTM. https://codereview.chromium.org/1419313003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp File third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp (right): https://codereview.chromium.org/1419313003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp#newcode92 third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp:92: V8HiddenValue::setHiddenValue(ScriptState::current(isolate), exceptionObject, ...
5 years, 1 month ago (2015-11-08 07:05:05 UTC) #16
vogelheim
Much of the CL is about getting the right context in V8HiddenValue::*, but then those ...
5 years, 1 month ago (2015-11-09 18:42:13 UTC) #17
jochen (gone - plz use gerrit)
On 2015/11/09 at 18:42:13, vogelheim wrote: > Much of the CL is about getting the ...
5 years, 1 month ago (2015-11-09 18:50:51 UTC) #18
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1419313003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp File third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp (right): https://codereview.chromium.org/1419313003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp#newcode92 third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp:92: V8HiddenValue::setHiddenValue(ScriptState::current(isolate), exceptionObject, V8HiddenValue::error(isolate), error); On 2015/11/08 at 07:05:04, haraken ...
5 years, 1 month ago (2015-11-09 21:33:40 UTC) #19
jochen (gone - plz use gerrit)
the reason why the inspector tests are failing is because inspector enters the debugger context. ...
5 years, 1 month ago (2015-11-09 21:36:20 UTC) #20
haraken
On 2015/11/09 21:36:20, jochen (slow - traveling) wrote: > the reason why the inspector tests ...
5 years, 1 month ago (2015-11-09 22:44:19 UTC) #21
jochen (gone - plz use gerrit)
On 2015/11/09 at 22:44:19, haraken wrote: > On 2015/11/09 21:36:20, jochen (slow - traveling) wrote: ...
5 years, 1 month ago (2015-11-09 22:49:43 UTC) #22
haraken
On 2015/11/09 22:49:43, jochen (slow - traveling) wrote: > On 2015/11/09 at 22:44:19, haraken wrote: ...
5 years, 1 month ago (2015-11-09 22:53:18 UTC) #23
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1419313003/diff/100001/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp File third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp (right): https://codereview.chromium.org/1419313003/diff/100001/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp#newcode54 third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp:54: v8::Local<v8::Value> value = V8HiddenValue::getHiddenValue(ScriptState::current(isolate), object, v8InternalizedString(isolate, name)); this is ...
5 years, 1 month ago (2015-11-09 22:53:42 UTC) #24
jochen (gone - plz use gerrit)
On 2015/11/09 at 22:53:18, haraken wrote: > On 2015/11/09 22:49:43, jochen (slow - traveling) wrote: ...
5 years, 1 month ago (2015-11-09 22:54:58 UTC) #25
jochen (gone - plz use gerrit)
it's also that v8 doesn't really care what kind of context you pass in for ...
5 years, 1 month ago (2015-11-09 22:55:31 UTC) #26
haraken
https://codereview.chromium.org/1419313003/diff/100001/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp File third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp (right): https://codereview.chromium.org/1419313003/diff/100001/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp#newcode54 third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp:54: v8::Local<v8::Value> value = V8HiddenValue::getHiddenValue(ScriptState::current(isolate), object, v8InternalizedString(isolate, name)); On 2015/11/09 ...
5 years, 1 month ago (2015-11-09 23:01:45 UTC) #27
jochen (gone - plz use gerrit)
On 2015/11/09 at 23:01:45, haraken wrote: > https://codereview.chromium.org/1419313003/diff/100001/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp > File third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp (right): > > https://codereview.chromium.org/1419313003/diff/100001/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp#newcode54 ...
5 years, 1 month ago (2015-11-09 23:03:14 UTC) #28
haraken
On 2015/11/09 23:03:14, jochen (slow - traveling) wrote: > On 2015/11/09 at 23:01:45, haraken wrote: ...
5 years, 1 month ago (2015-11-09 23:09:04 UTC) #29
jochen (gone - plz use gerrit)
rebased after fixing the inspector stuff... nothing changed expect that the tests should be green ...
5 years, 1 month ago (2015-11-19 11:46:33 UTC) #30
haraken
On 2015/11/19 11:46:33, jochen wrote: > rebased after fixing the inspector stuff... nothing changed expect ...
5 years, 1 month ago (2015-11-19 11:54:18 UTC) #31
vogelheim
lgtm (Sorry, had meant to lgtm earlier.) Also, can you point me to the inspector-scriptstate-fixing ...
5 years, 1 month ago (2015-11-19 11:58:50 UTC) #32
jochen (gone - plz use gerrit)
it's here: https://codereview.chromium.org/1455583002
5 years, 1 month ago (2015-11-19 11:59:27 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419313003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419313003/120001
5 years, 1 month ago (2015-11-19 12:32:42 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-19 14:39:56 UTC) #36
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 14:41:01 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/aaf8bd48dfd77a6945f3cfd4c5b01ab631d956cd
Cr-Commit-Position: refs/heads/master@{#360578}

Powered by Google App Engine
This is Rietveld 408576698