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

Issue 74133005: Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>) (Closed)

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

Description

Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>) Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>) and replace by the V8TRYCATCH_FOR_V8STRINGRESOURCE_*() macros. This makes sure that we properly abort execution when an exception is thrown by v8::Value::ToString(). R=haraken TEST=fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html TEST=fast/frames/frame-set-location-badstring.html TEST=fast/xmlhttprequest/xmlhttprequest-open-exceptions.html TEST=http/tests/local/formdata/send-form-data-with-bad-string.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162150

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -19 lines) Patch
M LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html View 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/frames/frame-set-location-badstring.html View 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/frames/frame-set-location-badstring-expected.txt View 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/fast/frames/resources/frame-set-location-badstring.html View 1 chunk +11 lines, -0 lines 0 comments Download
M LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions.html View 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8FormDataCustom.cpp View 2 chunks +9 lines, -6 lines 3 comments Download
M Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp View 4 chunks +10 lines, -6 lines 0 comments Download
M Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp View 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Inactive
7 years, 1 month ago (2013-11-15 22:05:20 UTC) #1
haraken
LGTM. Thanks for tests. https://codereview.chromium.org/74133005/diff/1/Source/bindings/v8/custom/V8FormDataCustom.cpp File Source/bindings/v8/custom/V8FormDataCustom.cpp (right): https://codereview.chromium.org/74133005/diff/1/Source/bindings/v8/custom/V8FormDataCustom.cpp#newcode60 Source/bindings/v8/custom/V8FormDataCustom.cpp:60: V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, filenameResource, info[2]); Not related ...
7 years, 1 month ago (2013-11-15 22:20:15 UTC) #2
Inactive
https://codereview.chromium.org/74133005/diff/1/Source/bindings/v8/custom/V8FormDataCustom.cpp File Source/bindings/v8/custom/V8FormDataCustom.cpp (right): https://codereview.chromium.org/74133005/diff/1/Source/bindings/v8/custom/V8FormDataCustom.cpp#newcode60 Source/bindings/v8/custom/V8FormDataCustom.cpp:60: V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, filenameResource, info[2]); On 2013/11/15 22:20:15, haraken wrote: > ...
7 years, 1 month ago (2013-11-15 22:30:24 UTC) #3
haraken
https://codereview.chromium.org/74133005/diff/1/Source/bindings/v8/custom/V8FormDataCustom.cpp File Source/bindings/v8/custom/V8FormDataCustom.cpp (right): https://codereview.chromium.org/74133005/diff/1/Source/bindings/v8/custom/V8FormDataCustom.cpp#newcode60 Source/bindings/v8/custom/V8FormDataCustom.cpp:60: V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, filenameResource, info[2]); On 2013/11/15 22:30:25, Chris Dumez wrote: ...
7 years, 1 month ago (2013-11-15 22:33:39 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/74133005/1
7 years, 1 month ago (2013-11-15 22:35:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/74133005/1
7 years, 1 month ago (2013-11-16 00:18:36 UTC) #6
commit-bot: I haz the power
7 years, 1 month ago (2013-11-16 02:38:55 UTC) #7
Message was sent while issue was closed.
Change committed as 162150

Powered by Google App Engine
This is Rietveld 408576698