Closed
Bug 1576817
Opened 6 years ago
Closed 6 years ago
find in page sometimes matches input placeholder text
Categories
(Core :: Find Backend, defect)
Core
Find Backend
Tracking
()
RESOLVED
FIXED
mozilla70
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: heycam, Assigned: emilio)
Details
Attachments
(3 files)
STR:
- Open searchfox.
- Press Ctrl+F / Cmd+F.
- Type "m", notice that the "m" in the "Search mozilla-central" placeholder text selected.
- Type "o", notice that the "mo" in the placeholder text does not get selected.
Not sure whether it should match or not, but it's weird that only a single character matches.
| Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(emilio)
| Assignee | ||
Updated•6 years ago
|
Assignee: nobody → emilio
Flags: needinfo?(emilio)
| Assignee | ||
Comment 1•6 years ago
|
||
The split between IsDisplayedNode and IsVisibleNode is pretty intentional, since
visibility: visible descendants of visiblity: hidden ancestors are in fact
visible.
We skip fully-invisible ranges in here instead:
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
We want to find the text inside the input that the user types, but not stuff
like the placeholder. So check that the anonymous subtree is editable, or skip
it otherwise.
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/34b4dcc475d3
Simplify some code added in bug 1490974. r=bradwerth
https://hg.mozilla.org/integration/autoland/rev/3192da5a883f
Only allow finding editable anonymous nodes in form controls. r=bradwerth
https://hg.mozilla.org/integration/autoland/rev/bcbd2fb36cb1
Fix a regression from bug 1490974 where we'll fail to find visibility: visible descendants of visibility: hidden nodes. r=bradwerth
Comment 5•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/34b4dcc475d3
https://hg.mozilla.org/mozilla-central/rev/3192da5a883f
https://hg.mozilla.org/mozilla-central/rev/bcbd2fb36cb1
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox70:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in
before you can comment on or make changes to this bug.
Description
•