DescriptionTreatReturnedNullStringAs=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 #
Messages
Total messages: 19 (7 generated)
|