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

Issue 1175223003: TreatReturnedNullStringAs=undefined removed from DataTransfer.idl (Closed)

Created:
5 years, 6 months ago by Habib Virji
Modified:
5 years, 6 months ago
Reviewers:
haraken, philipj_slow
CC:
blink-reviews, vivekg, arv+blink, Inactive, dcheng, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

TreatReturnedNullStringAs=undefined removed from DataTransfer.idl DataTransfer::m_dropEffect and ::m_effectAllowed are initialized as "uninitialized" string. m_dropEffect can only be set via setDropEffect and only permitted values are: none, copy, link and move; any other value cannot be set. Similarly for the m_effectAllowed can be only set via setEffectAllowed, only if the value is either: uninitialized, none, copy, link, move, copyLink, copyMove, linkMove, all; any other value cannot be set. For m_dropEffect if the value set is null or undefined, then it will be set to none and in case of m_effectAllowed it set it to uninitalized. Test has been added where empty string, null or undefined results for m_dropEffect as none and m_effectAllowed as uninitialized. m_dropEffect should be set as none by default but is set to unintialized to avoid scenario when m_dropEffect is not set. BUG=497982 R=philipj, haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197013

Patch Set 1 #

Patch Set 2 : Added LayoutTests to test DataTransfer null/undefined/emptyString value #

Patch Set 3 : Rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -25 lines) Patch
M LayoutTests/fast/events/bogus-dropEffect-effectAllowed.html View 1 4 chunks +22 lines, -22 lines 0 comments Download
M LayoutTests/fast/events/bogus-dropEffect-effectAllowed-expected.txt View 1 3 chunks +9 lines, -0 lines 0 comments Download
M Source/core/clipboard/DataTransfer.idl View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175223003/1
5 years, 6 months ago (2015-06-11 09:17:15 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-11 11:34:01 UTC) #4
philipj_slow
In addition to noting that no tests broke, please also analyze the implementation to see ...
5 years, 6 months ago (2015-06-11 13:07:32 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175223003/40001
5 years, 6 months ago (2015-06-11 16:49:00 UTC) #9
Habib Virji
On 2015/06/11 13:07:32, philipj wrote: > In addition to noting that no tests broke, please ...
5 years, 6 months ago (2015-06-11 16:51:23 UTC) #10
philipj_slow
I've wrapped the description to 72 columns to make it more readable here and in ...
5 years, 6 months ago (2015-06-11 18:08:24 UTC) #11
philipj_slow
LGTM, looks like this will not have any risk of regression at all.
5 years, 6 months ago (2015-06-11 18:10:15 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-11 18:16:56 UTC) #14
haraken
LGTM
5 years, 6 months ago (2015-06-11 23:25:44 UTC) #15
philipj_slow
lgtm Sending to CQ
5 years, 6 months ago (2015-06-12 07:41:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175223003/40001
5 years, 6 months ago (2015-06-12 07:41:24 UTC) #18
commit-bot: I haz the power
5 years, 6 months ago (2015-06-12 07:45:02 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197013

Powered by Google App Engine
This is Rietveld 408576698