WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137991
[iOS] iPhone should not allow selecting <optgroup> in <select multiple>
https://bugs.webkit.org/show_bug.cgi?id=137991
Summary
[iOS] iPhone should not allow selecting <optgroup> in <select multiple>
Joseph Pecoraro
Reported
2014-10-22 17:33:13 PDT
iPhone should not allow selecting <optgroup> in <select multiple> * TEST <select multiple="multiple"> <optgroup label="foo"> <option value="1">0001</option> <option value="2">0002</option> <option value="3">0003</option> </optgroup> </select> * STEPS TO REPRODUCE 1. Load test 2. Tap the "foo" group => expected nothing to be selected => actual results were "0001" is selected We should ignore taps on groups.
Attachments
[PATCH] Proposed Fix
(1.98 KB, patch)
2014-10-22 18:14 PDT
,
Joseph Pecoraro
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2014-10-22 18:03:11 PDT
<
rdar://problem/18745292
>
Joseph Pecoraro
Comment 2
2014-10-22 18:14:29 PDT
Created
attachment 240316
[details]
[PATCH] Proposed Fix Patch may not apply as it may be waiting on another change near this.
Darin Adler
Comment 3
2014-10-28 09:17:19 PDT
Comment on
attachment 240316
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=240316&action=review
> Source/WebKit2/UIProcess/ios/forms/WKFormSelectPicker.mm:284 > + // FIXME: <
rdar://problem/18745253
> > + // Group picker content view should not be checkable. If we get this delegate > + // reset the styles for the group content view so it still appears unselected.
I don’t think this comment makes it clear enough that this is a workaround for the above bug and can be removed if it’s fixed.
> Source/WebKit2/UIProcess/ios/forms/WKFormSelectPicker.mm:288 > + [[view titleLabel] setTextColor:[UIColor colorWithWhite:0.0 alpha:0.5]];
Hard-coding this seems really unfortunate and could cause us trouble later. What mitigates that, I suppose, is that we will remove this code when the above mentioned bug is fixed.
Joseph Pecoraro
Comment 4
2014-10-28 11:47:53 PDT
(In reply to
comment #3
)
> Comment on
attachment 240316
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=240316&action=review
> > > Source/WebKit2/UIProcess/ios/forms/WKFormSelectPicker.mm:288 > > + [[view titleLabel] setTextColor:[UIColor colorWithWhite:0.0 alpha:0.5]]; > > Hard-coding this seems really unfortunate and could cause us trouble later. > What mitigates that, I suppose, is that we will remove this code when the > above mentioned bug is fixed.
Seeing as we already had a constant for disabled options, I'll add one and share it for groups. This is only duplicating our own styles, not another framework's styles.
Joseph Pecoraro
Comment 5
2014-10-28 12:05:56 PDT
http://trac.webkit.org/changeset/175266
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