Bug 130200 - [iOS WebKit2] Crash on iPad when displaying a select element with options
Summary: [iOS WebKit2] Crash on iPad when displaying a select element with options
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Enrica Casucci
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-03-13 11:53 PDT by Enrica Casucci
Modified: 2014-03-13 12:21 PDT (History)
0 users

See Also:


Attachments
Patch (1.30 KB, patch)
2014-03-13 11:55 PDT, Enrica Casucci
no flags Details | Formatted Diff | Diff
Patch with ChangeLog (1.49 KB, patch)
2014-03-13 11:57 PDT, Enrica Casucci
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrica Casucci 2014-03-13 11:53:44 PDT
_singleSelectionIndex should be initialized to NSNotFound for multiSelect elements.

<rdar://problem/16316187>
Comment 1 Enrica Casucci 2014-03-13 11:55:23 PDT
Created attachment 226606 [details]
Patch
Comment 2 Enrica Casucci 2014-03-13 11:57:21 PDT
Created attachment 226607 [details]
Patch with ChangeLog
Comment 3 Simon Fraser (smfr) 2014-03-13 12:18:51 PDT
Comment on attachment 226607 [details]
Patch with ChangeLog

View in context: https://bugs.webkit.org/attachment.cgi?id=226607&action=review

> Source/WebKit2/UIProcess/ios/forms/WKFormSelectPopover.mm:118
>      NSInteger currentIndex = 0;
> +    _singleSelectionIndex = NSNotFound;

Please swap these two lines.
Comment 4 Enrica Casucci 2014-03-13 12:21:13 PDT
Committed revision 165554.