WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
88099
[chromium] DumpRenderTree will crash if there is not arguments in beginDragWithFiles
https://bugs.webkit.org/show_bug.cgi?id=88099
Summary
[chromium] DumpRenderTree will crash if there is not arguments in beginDragWi...
Li Yin
Reported
2012-06-01 08:40:05 PDT
If there is not argument in function beginDragWithFiles, DumpRenderTree will crash.
Attachments
Patch
(1.70 KB, patch)
2012-06-01 09:04 PDT
,
Li Yin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Li Yin
Comment 1
2012-06-01 09:04:56 PDT
Created
attachment 145322
[details]
Patch
Li Yin
Comment 2
2012-06-01 09:14:04 PDT
Gtk DumpRenderTree can work correctly if there is not arguments in the function beginDragWithFiles.
Kent Tamura
Comment 3
2012-06-03 18:03:06 PDT
(In reply to
comment #0
)
> If there is not argument in function beginDragWithFiles, DumpRenderTree will crash.
Why do we need to support such case? A test using beginDragWithFiles must specify arguments.
Li Yin
Comment 4
2012-06-03 18:18:58 PDT
(In reply to
comment #3
)
> (In reply to
comment #0
) > > If there is not argument in function beginDragWithFiles, DumpRenderTree will crash. > > Why do we need to support such case? A test using beginDragWithFiles must specify arguments.
In fast/files/file-list-test.html, if some files are selected, the onInputFileChange can be called, we can test the attribute length and items of FileList. In addition, we want to cover the scenario that no file is selected. If we use [] as the argument, if is fine. But for the robustness, I think it should support no argument, as GTK test shell does.
https://bugs.webkit.org/show_bug.cgi?id=87696#c14
Kent Tamura
Comment 5
2012-06-03 22:39:18 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (In reply to
comment #0
) > > > If there is not argument in function beginDragWithFiles, DumpRenderTree will crash. > > > > Why do we need to support such case? A test using beginDragWithFiles must specify arguments. > > In fast/files/file-list-test.html, if some files are selected, the onInputFileChange can be called, we can test the attribute length and items of FileList. > In addition, we want to cover the scenario that no file is selected. If we use [] as the argument, if is fine. But for the robustness, I think it should support no argument, as GTK test shell does. > >
https://bugs.webkit.org/show_bug.cgi?id=87696#c14
We can use just <input type=file> without selected files to test empty FileList. Do you think real browsers need to handle drag with empty file list? If not, beginDragWithFiles should reject empty file list and missing file list instead of accepting them.
Li Yin
Comment 6
2012-06-05 21:24:29 PDT
(In reply to
comment #5
)
> We can use just <input type=file> without selected files to test empty FileList. > Do you think real browsers need to handle drag with empty file list? If not, beginDragWithFiles should reject empty file list and missing file list instead of accepting them.
Okay, thanks for your interpretation, it looks reasonable. Mark this bug to be Invalid.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug