WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
146009
[iOS] Crash long pressing on <input type=file>
https://bugs.webkit.org/show_bug.cgi?id=146009
Summary
[iOS] Crash long pressing on <input type=file>
Jon Honeycutt
Reported
2015-06-16 00:01:36 PDT
The web process crashes when trying to long press on an <input type=file> control. <
rdar://problem/21234453
>
Attachments
Patch
(3.84 KB, patch)
2015-06-16 00:07 PDT
,
Jon Honeycutt
rniwa
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jon Honeycutt
Comment 1
2015-06-16 00:07:01 PDT
Created
attachment 254941
[details]
Patch
Ryosuke Niwa
Comment 2
2015-06-16 02:10:32 PDT
Comment on
attachment 254941
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=254941&action=review
> Source/WebCore/ChangeLog:5 > + > + <
https://bugs.webkit.org/show_bug.cgi?id=146009
>
We don't usually place a blank line between the bug title and the bugzilla URL. Also, we don't normally warp a bugzilla URL with < & > unlike a rdar URL.
> ChangeLog:5 > + > + <
https://bugs.webkit.org/show_bug.cgi?id=146009
>
Ditto.
> ChangeLog:10 > + * ManualTests/ios/long-press-input-type-file-crash.html: Added.
It's sad we can't automate this :(
> ManualTests/ios/long-press-input-type-file-crash.html:1 > +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Why don't we use <!DOCTYPE html> instead?
Darin Adler
Comment 3
2015-06-16 10:50:05 PDT
Comment on
attachment 254941
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=254941&action=review
> Source/WebCore/ChangeLog:13 > + * dom/Position.cpp: > + (WebCore::Position::atStartOfTree): > + (WebCore::Position::atEndOfTree): > + Null check the container node before passing it to findParent().
If findParent doesn’t work on null, it should take a reference rather than a pointer. Or we could put the check for null inside findParent.
Jon Honeycutt
Comment 4
2015-06-16 14:34:05 PDT
(In reply to
comment #2
)
> Comment on
attachment 254941
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=254941&action=review
> > > Source/WebCore/ChangeLog:5 > > + > > + <
https://bugs.webkit.org/show_bug.cgi?id=146009
> > > We don't usually place a blank line between the bug title and the bugzilla > URL. > Also, we don't normally warp a bugzilla URL with < & > unlike a rdar URL. > > > ChangeLog:5 > > + > > + <
https://bugs.webkit.org/show_bug.cgi?id=146009
> > > Ditto.
Fixed.
> > > ChangeLog:10 > > + * ManualTests/ios/long-press-input-type-file-crash.html: Added. > > It's sad we can't automate this :( > > > ManualTests/ios/long-press-input-type-file-crash.html:1 > > +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> > > Why don't we use <!DOCTYPE html> instead?
Fixed. Thanks for the review!
Jon Honeycutt
Comment 5
2015-06-16 14:35:18 PDT
(In reply to
comment #3
)
> Comment on
attachment 254941
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=254941&action=review
> > > Source/WebCore/ChangeLog:13 > > + * dom/Position.cpp: > > + (WebCore::Position::atStartOfTree): > > + (WebCore::Position::atEndOfTree): > > + Null check the container node before passing it to findParent(). > > If findParent doesn’t work on null, it should take a reference rather than a > pointer. Or we could put the check for null inside findParent.
I’m going to land this as-is and make a follow-up patch that does one of the two.
Jon Honeycutt
Comment 6
2015-06-16 14:40:36 PDT
Committed
r185613
: <
http://trac.webkit.org/changeset/185613
>
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