Bug 130200

Summary: [iOS WebKit2] Crash on iPad when displaying a select element with options
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit2Assignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch with ChangeLog simon.fraser: review+

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.