[Webkit-unassigned] [Bug 77899] IETC: FileList.item(-1) should return null instead of raising

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 29 22:14:50 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=77899





--- Comment #5 from Li Yin <li.yin at intel.com>  2012-05-29 22:14:50 PST ---
(In reply to comment #1)
> I believe this exception is auto-generated by the IsIndex flag here:
>         File item(in [IsIndex] unsigned long index);
> http://trac.webkit.org/browser/trunk/Source/WebCore/fileapi/FileList.idl#L33

Although we delete the IsIndex flag, it is still a problem when index is negative.
index is expected to be unsigned long data type, negative index will be translated to be a long positive index. 
For example, file.item(-1) will return the 4294967295th item in the file list.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list