Closed
Bug 1242450
Opened 9 years ago
Closed 9 years ago
[e10s] Hidden attribute not working on <option> in <select> dropdown
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
VERIFIED
FIXED
mozilla47
People
(Reporter: valentin, Assigned: gw280)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
394 bytes,
text/html
|
Details | |
1.08 KB,
patch
|
mconley
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160121004039
Steps to reproduce:
See test case : using <option hidden> does not work on FF45 (Linux, Gnome3), but it does on FF43 (Linux, Gnome2). Could be a regression ? Only on Linux ? (there were GTK3 updates, not so long ago ?)
Actual results:
The line with "hidden" is displayed
Expected results:
The line with "hidden" shouldn't be displayed.
See below the <select>, an example with <p>
Reporter | ||
Updated•9 years ago
|
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Broken with e10s enabled.
Blocks: e10s, e10s-select
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
Product: Firefox → Core
Summary: Hidden attribute not working on <option> dropdown → [e10s] Hidden attribute not working on <option> in <select> dropdown
Surely dupe of bug 910022.
Reporter | ||
Comment 3•9 years ago
|
||
Yes I can confirm it solves my issue !
Updated•9 years ago
|
tracking-e10s:
--- → ?
![]() |
||
Updated•9 years ago
|
Assignee: nobody → gwright
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8712414 -
Flags: review?(mconley)
Comment 5•9 years ago
|
||
Comment on attachment 8712414 [details] [diff] [review]
0001-Bug-1242450-Do-not-display-hidden-option-elements-in.patch
Review of attachment 8712414 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/modules/SelectContentHelper.jsm
@@ +109,5 @@
> let info = {
> tagName: tagName,
> textContent: textContent,
> disabled: child.disabled,
> + hidden: child.hidden,
If it's hidden, do we even need to send it up to the parent? Might as well just skip it, I guess.
Note that script that attempts to set the hidden attribute while the popup is open won't take effect until the popup is re-opened. See https://jsfiddle.net/8nnh6sL6/.
Attachment #8712414 -
Flags: review?(mconley) → review-
Assignee | ||
Comment 6•9 years ago
|
||
Ugh, can't believe I wrote that. Clearly I'm not thinking straight. I will prep a new patch.
Assignee | ||
Comment 7•9 years ago
|
||
OK, let's not do this in a really stupid way this time. Super trivial now.
As for attributes changing whilst the popup is open, that affects more than just the hidden attribute, and will require quite a bit more work. Let's fix the hidden issue here, and I'll file a followup bug for that issue.
Attachment #8712414 -
Attachment is obsolete: true
Attachment #8712492 -
Flags: review?(mconley)
Comment 8•9 years ago
|
||
Comment on attachment 8712492 [details] [diff] [review]
0001-Bug-1242450-Do-not-display-hidden-option-elements-in.patch
Review of attachment 8712492 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great, thanks gw280. I only inspected this and didn't test it - I assume you have and that it works properly. If so, land away!
Attachment #8712492 -
Flags: review?(mconley) → review+
Comment 10•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 11•9 years ago
|
||
bugherder |
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8712492 [details] [diff] [review]
0001-Bug-1242450-Do-not-display-hidden-option-elements-in.patch
Approval Request Comment
[Feature/regressing bug #]: regression from e10s, has never worked
[User impact if declined]: hidden <option> elements aren't hidden in e10s
[Describe test coverage new/current, TreeHerder]: local testing, m-c
[Risks and why]: low/no risk, very small change that only affects options with the hidden attribute.
[String/UUID change made/needed]: none
Attachment #8712492 -
Flags: approval-mozilla-aurora?
Comment 13•9 years ago
|
||
It would be good to verify this on aurora once it lands there.
Comment 14•9 years ago
|
||
Comment on attachment 8712492 [details] [diff] [review]
0001-Bug-1242450-Do-not-display-hidden-option-elements-in.patch
Fix for e10s related regression, please uplift to aurora.
Attachment #8712492 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 15•9 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 16•9 years ago
|
||
I still have the issue in 46.0a2 (2016-02-01) ; I don't know if it's normal...
Comment 17•9 years ago
|
||
Probably in the next Aurora.
Reporter | ||
Comment 18•9 years ago
|
||
Ok, I'll update this when I can confirm it is resolved
Reporter | ||
Comment 19•9 years ago
|
||
I can confirm it working :-) Thx !
Reporter | ||
Comment 20•9 years ago
|
||
In fact there is still a problem : on my test case, click on "test4" or "test5" and you will see the previous item selected (respectively "test3" and "test4".
It behaves like "test3" was displayed and taking a certain height.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
![]() |
||
Comment 21•9 years ago
|
||
Is this related to bug 1255841 in some way? Since a patch landed and uplifted here lets closed this out and file a follow up for remaining and get that it into triage.
Flags: needinfo?(gwright)
Comment 22•9 years ago
|
||
Yeah, what comment 20 describes is a dupe of bug 1255841. Closing this one out. Interested parties can follow along in the other bug.
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Flags: needinfo?(gwright)
Comment 23•9 years ago
|
||
Reproduced the initial issue on Ubuntu 14.04 x64 and Windows 10x64 using Fx 44 beta 9.
Confirming the fix on: Windows 10 x64, Mac OS X 10.9.5 and Ubuntu 14.04 using:
- latest 47.0a2 Aurora, build ID: 20160410004056;
- Fx 46.0b9, build ID: 20160407053945.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
QA Contact: cornel.ionce
Comment hidden (obsolete) |
You need to log in
before you can comment on or make changes to this bug.
Description
•