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

Issue 23496045: Have V8Clipboard::clearDataMethodCustom() use V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID() (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, jeez, do-not-use
Visibility:
Public.

Description

Have V8Clipboard::clearDataMethodCustom() use V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID() Have V8Clipboard::clearDataMethodCustom() use V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID() macro instead of toWebCoreString() so that ClipboardChromium::clearData() is not called if the string conversion failed. Also remove a wrong ASSERT_NOT_REACHED() from ClipboardChromium::clearData() that was causing us to crash whenever this method was called in a debug build. ClipboardData.clearData() was not covered by layout tests until now which is why we did not notice it before. TEST=fast/events/clipboard-dataTransferItemList.html R=haraken BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157601

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M LayoutTests/fast/events/clipboard-dataTransferItemList.html View 1 chunk +6 lines, -1 line 0 comments Download
M LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt View 2 chunks +6 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8ClipboardCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/chromium/ClipboardChromium.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-11 12:37:40 UTC) #1
haraken
LGTM
7 years, 3 months ago (2013-09-11 14:14:22 UTC) #2
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/23496045/1
7 years, 3 months ago (2013-09-11 14:15:29 UTC) #3
commit-bot: I haz the power
7 years, 3 months ago (2013-09-11 14:54:25 UTC) #4
Message was sent while issue was closed.
Change committed as 157601

Powered by Google App Engine
This is Rietveld 408576698