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

Issue 23526039: Replace several uses of toWebCoreString() by V8TRYCATCH_FOR_V8STRINGRESOURCE() macro (Closed)

Created:
7 years, 3 months ago by do-not-use
Modified:
7 years, 3 months ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin
Visibility:
Public.

Description

Replace several uses of toWebCoreString() by V8TRYCATCH_FOR_V8STRINGRESOURCE() macro Replace several uses of toWebCoreString() by V8TRYCATCH_FOR_V8STRINGRESOURCE() macro so that we return as soon as the string conversion fails and to avoid passing a null string to the following code. R=haraken BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157772

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -28 lines) Patch
M Source/bindings/v8/V8Binding.h View 1 chunk +2 lines, -1 line 2 comments Download
M Source/bindings/v8/custom/V8DocumentCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8DocumentLocationCustom.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp View 3 chunks +6 lines, -3 lines 1 comment Download
M Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLDocumentCustom.cpp View 1 chunk +4 lines, -2 lines 1 comment Download
M Source/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8WindowCustom.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8XSLTProcessorCustom.cpp View 3 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-12 11:29:31 UTC) #1
haraken
Ideally we want to have tests for each exception you're adding, but it will be ...
7 years, 3 months ago (2013-09-12 17:33:51 UTC) #2
do-not-use
On 2013/09/12 17:33:51, haraken wrote: > Ideally we want to have tests for each exception ...
7 years, 3 months ago (2013-09-12 17:39:11 UTC) #3
haraken
On 2013/09/12 17:39:11, Christophe Dumez wrote: > On 2013/09/12 17:33:51, haraken wrote: > > Ideally ...
7 years, 3 months ago (2013-09-12 18:14:09 UTC) #4
do-not-use
https://codereview.chromium.org/23526039/diff/1/Source/bindings/v8/V8Binding.h File Source/bindings/v8/V8Binding.h (right): https://codereview.chromium.org/23526039/diff/1/Source/bindings/v8/V8Binding.h#newcode394 Source/bindings/v8/V8Binding.h:394: V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, value, String()); On 2013/09/12 17:33:52, haraken wrote: ...
7 years, 3 months ago (2013-09-13 14:55:49 UTC) #5
haraken
> The reason I used V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN() here even though it > does not change the ...
7 years, 3 months ago (2013-09-13 15:09:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23526039/1
7 years, 3 months ago (2013-09-13 17:44:07 UTC) #7
commit-bot: I haz the power
7 years, 3 months ago (2013-09-13 19:37:32 UTC) #8
Message was sent while issue was closed.
Change committed as 157772

Powered by Google App Engine
This is Rietveld 408576698