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

Issue 61933006: Have V8WorkerGlobalScopeEventListener::callListenerFunction() use V8TRYCATCH_FOR_V8STRINGRESOURCE_R… (Closed)

Created:
7 years, 1 month ago by Inactive
Modified:
6 years, 7 months ago
Reviewers:
haraken, pfeldman, yurys
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Have V8WorkerGlobalScopeEventListener::callListenerFunction() use V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN() Have V8WorkerGlobalScopeEventListener::callListenerFunction() use V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN() macro instead of toWebCoreString(v8::Handle<v8::Value>) so that we abort the function in case v8::Value::ToString() threw an exception. R=haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162135

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp View 1 chunk +2 lines, -1 line 2 comments Download

Messages

Total messages: 7 (0 generated)
Inactive
7 years, 1 month ago (2013-11-15 16:26:02 UTC) #1
haraken
How many call sites are you going to change? If it's many, I'm OK with ...
7 years, 1 month ago (2013-11-15 16:30:00 UTC) #2
Inactive
On 2013/11/15 16:30:00, haraken wrote: > How many call sites are you going to change? ...
7 years, 1 month ago (2013-11-15 16:35:31 UTC) #3
haraken
> How do I make v8::ScriptOrigin::ResourceName()::ToString() throw? I honestly > don't even know > by ...
7 years, 1 month ago (2013-11-15 18:04:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/61933006/1
7 years, 1 month ago (2013-11-15 19:07:37 UTC) #5
commit-bot: I haz the power
Change committed as 162135
7 years, 1 month ago (2013-11-15 21:19:33 UTC) #6
yurys
6 years, 7 months ago (2014-04-30 08:46:51 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/61933006/diff/1/Source/bindings/v8/V8WorkerGl...
File Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp (right):

https://codereview.chromium.org/61933006/diff/1/Source/bindings/v8/V8WorkerGl...
Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp:94:
V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringResourceName,
origin.ResourceName(), v8::Local<v8::Value>());
This change looks wrong to me: if we fail to covert resource name to String here
the code will return and prevent execution of the instrumented functions. The
instrumentation must not affect normal control flow.

Next time you make changes that affect DevTools functionality please make sure
to include people from DevTools team who worked with the code, if you are not
sure who to ask feel free to add pfeldman or myself.

Powered by Google App Engine
This is Rietveld 408576698