Closed
Bug 1363062
Opened 8 years ago
Closed 8 years ago
Fix broken data-hidden-from-search=true search result
Categories
(Firefox :: Settings UI, defect, P1)
Firefox
Settings UI
Tracking
()
VERIFIED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | verified |
People
(Reporter: rickychien, Assigned: rickychien)
References
(Blocks 1 open bug)
Details
(Whiteboard: [photon-preference])
Attachments
(1 file)
It was a mistake after applying the wrong search query selector in bug 1357352.
let rootPreferencesChildren = rootPreferences.querySelectorAll(":not([data-hidden-from-search])");
right now, the search result is weird and broken and the no result page always show empty. I'll submit a quick patch for that.
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Flags: qe-verify+
QA Contact: hani.yacoub
Comment hidden (mozreview-request) |
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8865487 [details]
Bug 1363062 - Fix broken data-hidden-from-search=true search result
https://reviewboard.mozilla.org/r/137132/#review140628
::: browser/components/preferences/in-content/findInPage.js:205
(Diff revision 2)
> - let rootPreferences = document.getElementById("mainPrefPane")
> - let rootPreferencesChildren = rootPreferences
> + let rootPreferencesChildren = document
> + .querySelectorAll("#mainPrefPane > *:not([data-hidden-from-search])");
> - .querySelectorAll(":not([data-hidden-from-search])");
Can you explain why the original query is broken?
Assignee | ||
Comment 4•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8865487 [details]
Bug 1363062 - Fix broken data-hidden-from-search=true search result
https://reviewboard.mozilla.org/r/137132/#review140628
> Can you explain why the original query is broken?
The original query is `let rootPreferencesChildren = rootPreferences.children;` (see https://reviewboard.mozilla.org/r/135706/diff/4#index_header)
which merely gets first level children from rootPreferences node. The `rootPreferences.querySelectorAll` will try to look through all descendant elements of rootPreferences.
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(mconley)
Comment 5•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8865487 [details]
Bug 1363062 - Fix broken data-hidden-from-search=true search result
https://reviewboard.mozilla.org/r/137132/#review140628
> The original query is `let rootPreferencesChildren = rootPreferences.children;` (see https://reviewboard.mozilla.org/r/135706/diff/4#index_header)
>
> which merely gets first level children from rootPreferences node. The `rootPreferences.querySelectorAll` will try to look through all descendant elements of rootPreferences.
Ah, yes! Thanks for the explanation!
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8865487 [details]
Bug 1363062 - Fix broken data-hidden-from-search=true search result
https://reviewboard.mozilla.org/r/137132/#review140654
Thanks!
Attachment #8865487 -
Flags: review?(mconley) → review+
Updated•8 years ago
|
Flags: needinfo?(mconley)
Pushed by rchien@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4ff2f063be21
Fix broken data-hidden-from-search=true search result r=mconley
Comment 8•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Comment 10•8 years ago
|
||
Build ID: 20170515030205
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0
Verified as fixed on Firefox Nightly 55.0a1 on Windows 10 x 64, Mac OS X 10.12 and Ubuntu 16.04 x64.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•