Closed
Bug 1397723
Opened 7 years ago
Closed 7 years ago
Some strings show up as a tooltip even though the string was not found
Categories
(Firefox :: Settings UI, defect, P1)
Firefox
Settings UI
Tracking
()
VERIFIED
FIXED
Firefox 57
Tracking | Status | |
---|---|---|
firefox55 | --- | unaffected |
firefox56 | --- | verified |
firefox57 | --- | verified |
People
(Reporter: bmaris, Assigned: rickychien)
References
(Blocks 1 open bug)
Details
(Whiteboard: [photon-preference])
Attachments
(2 files)
4.89 MB,
video/quicktime
|
Details | |
59 bytes,
text/x-review-board-request
|
mconley
:
review+
lizzard
:
approval-mozilla-beta+
|
Details |
[Affected versions]:
- Firefox beta 56.0b9
- latest Nightly 57.0a1
[Affected platforms]:
- Windows 10 64bit
- macOS 10.12.6
- Ubuntu 16.04 32bit
[Steps to reproduce]:
1. Start Firefox
2. Go to about:preferences
3. Search for "type of"
4. Click "Exceptions" button where the tooltip is
[Expected result]:
- Search results show the exact string the user is searching for.
[Actual result]:
- "Type of" string does not exist inside the Exceptions dialog.
[Regression range]:
- This is not a regression since this is reproducible since the feature was first enabled by default (old nightly from 2017-06-16).
[Additional notes]:
- Screencast attached showing the issue.
- This is not an isolated case, I also can reproduce this using "the following c" string and quite possibly other.
Updated•7 years ago
|
Priority: -- → P2
Whiteboard: [photon-preference][triage] → [photon-preference]
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → rchien
Status: NEW → ASSIGNED
Priority: P2 → P1
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
The issue is cause by the string matching approach at stringMatchesFilters() [1]. I've no idea why we have to split query string into multiple string when string matching.
Current highlight results are incorrect due to the improper matching method. We split "type of" into "type" and "of" by whitespace. Because "type" matches in entire content "Type the exact address of the site ...", the search result will return true no matter "of" doesn't match in the second word.
[1] http://searchfox.org/mozilla-central/source/browser/components/preferences/in-content/findInPage.js#51-58
[2] http://searchfox.org/mozilla-central/source/browser/components/preferences/in-content/findInPage.js#57
Updated•7 years ago
|
Flags: qe-verify+
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Target Milestone: --- → Firefox 57
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8906619 [details]
Bug 1397723 - Correct Preferences search matching approach for search feature
https://reviewboard.mozilla.org/r/178344/#review183832
Thanks!
::: browser/components/preferences/in-content/findInPage.js:42
(Diff revision 2)
> this.initializeCategories();
> this.searchFunction(event);
> },
>
> /**
> - * Check that the passed string matches the filter arguments.
> + * Check that the passed string matches the query string.
I think we can be more explicit here, and say that this returns true if content _contains_ the query.
::: browser/components/preferences/in-content/findInPage.js:49
(Diff revision 2)
> - * @param String str
> - * to search for filter words in.
> - * @param String filter
> - * is a string containing all of the words to filter on.
> + * @param String content
> + * the text content to be searched
> + * @param String query
> + * the query string
> * @returns boolean
> - * true when match in string else false
> + * true when the query string matches in text content else false
`when the text content contains the query string`
Attachment #8906619 -
Flags: review?(mconley) → review+
Comment hidden (mozreview-request) |
Pushed by rchien@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b923cc5b501a
Correct Preferences search matching approach for search feature r=mconley
Comment 7•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•7 years ago
|
||
Comment on attachment 8906619 [details]
Bug 1397723 - Correct Preferences search matching approach for search feature
Approval Request Comment
[Feature/Bug causing the regression]:
[User impact if declined]: minor search usability affected
[Is this code covered by automated tests?]: yes
[Has the fix been verified in Nightly?]: not yet
[Needs manual test from QE? If yes, steps to reproduce]: yes, see description
[List of other uplifts needed for the feature/fix]: no
[Is the change risky?]: minor
[Why is the change risky/not risky?]: minor search usability affected
[String changes made/needed]: none
Attachment #8906619 -
Flags: approval-mozilla-beta?
Comment 9•7 years ago
|
||
Comment on attachment 8906619 [details]
Bug 1397723 - Correct Preferences search matching approach for search feature
Minor fix for pref search, let's uplift for beta 12.
Attachment #8906619 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 10•7 years ago
|
||
Camelia would you mind just checking that this is fixed (in beta 12 once this lands). A quick check that the problem is gone, on one platform, should be fine. Thanks!
Flags: needinfo?(camelia.badau)
Comment 11•7 years ago
|
||
bugherder uplift |
Comment 12•7 years ago
|
||
Verified fixed on Windows 7 x64, Ubuntu 16.04 x86 and macOS 10.12 using latest Nightly (2017-09-13) and Firefox 56 Beta 12 (buildID: 20170914024831): no results in Options after searching for "type of" - which is expected behaviour.
Status: RESOLVED → VERIFIED
Flags: needinfo?(camelia.badau)
You need to log in
before you can comment on or make changes to this bug.
Description
•