Find Toolbar's highlight mode should show matches next to or on top of scrollbar
Categories
(Toolkit :: Find Toolbar, enhancement, P3)
Tracking
()
People
(Reporter: keith, Assigned: enndeakin, NeedInfo)
References
(Depends on 3 open bugs, Blocks 6 open bugs, Regressed 1 open bug)
Details
(Keywords: parity-chrome, Whiteboard: p=13)
Attachments
(8 files)
11.52 KB,
image/png
|
Details | |
58 bytes,
text/x-review-board-request
|
mikedeboer
:
feedback+
|
Details |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Updated•20 years ago
|
Comment 3•19 years ago
|
||
Comment 4•19 years ago
|
||
Comment 5•19 years ago
|
||
Comment 6•19 years ago
|
||
Updated•19 years ago
|
Comment 7•18 years ago
|
||
Updated•17 years ago
|
Updated•17 years ago
|
Comment 13•14 years ago
|
||
Comment 15•12 years ago
|
||
Updated•12 years ago
|
Comment 16•11 years ago
|
||
Updated•11 years ago
|
Updated•11 years ago
|
Updated•11 years ago
|
Updated•9 years ago
|
Comment 19•8 years ago
|
||
Comment 20•8 years ago
|
||
Comment hidden (mozreview-request) |
Comment 22•8 years ago
|
||
mozreview-review |
Comment 23•8 years ago
|
||
Updated•8 years ago
|
Comment 24•8 years ago
|
||
Comment 25•8 years ago
|
||
Comment 26•8 years ago
|
||
Comment 29•8 years ago
|
||
Comment 30•7 years ago
|
||
Comment 31•7 years ago
|
||
Comment 33•7 years ago
|
||
Comment 34•6 years ago
|
||
Comment 36•6 years ago
|
||
Apart from the "TextMarker Go" add-on (https://addons.mozilla.org/cs/firefox/addon/textmarker-go/), there is also another add-on with the same purpose: "HighlightAll" (https://addons.mozilla.org/en-US/firefox/addon/highlightall/). One just needs to activate the "Custom highlighting" mode in the add-on's preferences. So maybe the need to make this a native feature diminishes, although it is possibly the only feature which is really missed by users which come to Firefox from Chrome - my subjective point of view though...
Comment 38•6 years ago
|
||
(In reply to p.bodnar from comment #36)
Apart from the "TextMarker Go" add-on (https://addons.mozilla.org/cs/firefox/addon/textmarker-go/), there is also another add-on with the same purpose: "HighlightAll" (https://addons.mozilla.org/en-US/firefox/addon/highlightall/). One just needs to activate the "Custom highlighting" mode in the add-on's preferences. So maybe the need to make this a native feature diminishes, although it is possibly the only feature which is really missed by users which come to Firefox from Chrome - my subjective point of view though...
TextMarker Go is not a "highlight search results in scrollbar" extension. It is a "display bookmarked text in scrollbar" extension.
HighlightAll does not integrate with the search functionality, and hence does not support paging to each result.
Comment hidden (advocacy) |
Updated•5 years ago
|
Comment 40•5 years ago
|
||
I think Chrome does this since the beginning... is there any update for this? I hate using Chrome when I need this feature.
Comment 42•5 years ago
|
||
Can any Mozilla developer suggest how do you jump to the correct position quickly, without this feature, when searching on API reference pages which usually contains dozens, if not hundreds, of matches and screens?
My experience: on API reference pages, it is quite common that a method name is referred dozens of times in many other methods description, but in 98% cases, the highest density highlighted position in scrollbar (of course, on Chrome) is the correct position for the searched method name.
Missing this feature force me to open Chrome for just Find (on page) feature...
Comment 43•4 years ago
|
||
I use this feature daily in my workflow.... I am currently evaluating Firefox to determine if I can switch from Chrome (I like FF's privacy standards) however this is surprisingly a big issue for me. I would entertain helping to add this.
Comment hidden (advocacy) |
Comment 45•4 years ago
|
||
Is there functioning workaround (addon/script/etc) for this?
The HighlightAll addon sort of is, but it's a fair bit less comfortable to use like that.
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Assignee | ||
Comment 50•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 51•4 years ago
|
||
Depends on D100938
Assignee | ||
Comment 52•4 years ago
|
||
Depends on D100939
Assignee | ||
Comment 53•4 years ago
|
||
Thought it might be fun to implement this during the break. With the above patches, the tick marks are drawn in a window's scrollbar using the highlight colour which defaults to something magenta-like. Note that the 'Highlight All' toggle on the findbar needs to be on for the tick marks to appear.
Updated•4 years ago
|
Assignee | ||
Comment 54•4 years ago
|
||
Depends on D100940
Assignee | ||
Comment 55•4 years ago
|
||
Depends on D100940
Comment 56•4 years ago
|
||
Comment 57•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/67faf54a31a1
https://hg.mozilla.org/mozilla-central/rev/2e218cf0cf63
https://hg.mozilla.org/mozilla-central/rev/fd4c496cee86
https://hg.mozilla.org/mozilla-central/rev/3bece74bc551
https://hg.mozilla.org/mozilla-central/rev/9e6cd269d773
Comment 58•4 years ago
|
||
HUGE applause to Neil for spending his spare time on this elegant implementation of scroll marks!! I know that at least :jaws and I have been looking at this bug with starry eyes for years and - considering the age of this one - there must be many, many others.
Thanks so much, Neil, and keep the awesome contributions coming! ;-)
Comment 59•4 years ago
|
||
How is this supposed to work? It's not working for me (Windows 10), there's no marks in scrollbar after using find with some results. I didn't notice any difference. findbar.highlightAll = true
.
I asked to other Nightly users and the two answers so far was that it isn't working for them too.
Assignee | ||
Comment 60•4 years ago
|
||
Assignee | ||
Comment 61•4 years ago
|
||
Bah, just put up a fix for the typo. Hopefully, this should fix things.
Comment 62•4 years ago
|
||
Comment 63•4 years ago
|
||
(In reply to Neil Deakin from comment #61)
Bah, just put up a fix for the typo. Hopefully, this should fix things.
Fixed. Tested 8d8a1ee8100c autoland build and now it's working, thank you.
Comment 64•4 years ago
|
||
bugherder |
Comment 65•4 years ago
|
||
First: Thanks for working on it! The bad news: at least on macOS the implementation is very fragile:
Very often it doesn't highlight anything. When it works and I change the search term the highlights do not always update. Example: I searched for a word with many occurences, they get highlighted correctly. Then I changed the search term to another one with only two occurences. The number of highlights changed to two (as expected). Then I changed the search term back to the first one again and instead of many highlights Firefox kept the two highlight of the previous search term.
Sometimes resizing the browser window fixed the highlights (seems to be the opposite behaviour of bug 1690791), sometimes resizing changes nothing.
It's also unexpected that there also highlights even with a disabled "highlight all" feature.
I posted it here because I am not sure if these are all related problems or if these are different bugs.
Assignee | ||
Comment 66•4 years ago
|
||
Bug 1690783 will likely fix the issues with the highlight not being updated correctly after changing the search.
Comment 67•4 years ago
|
||
Thanks! I will follow bug 1690783 and file new bugs for remaining problems (if any!) once bug 1690783 is closed. :)
Comment 68•4 years ago
|
||
I can confirm that the bar with tick highlights appears when searching existing strings in a window that has a vertical scroll bar, but I can also reproduce the logged issues that block this bug.
Will we use this bug as a meta bug for the remaining issues/tasks? I am thinking that we could block bug 565552 or, more likely, bug 1271782 with the remaining issues and close this current one as verified. What do you think?
Comment 69•4 years ago
|
||
Hi this feature doesn't work on pdf files.
Comment 70•4 years ago
|
||
This is in the 87.0beta relnotes as:
“Find in page” can now display marks next to the scrollbar corresponding to the positions of matches.
Comment 71•4 years ago
|
||
I am currently on 88.0a1 (2021-03-10) (64-bit) and it doesn't work at all on https://elixir.bootlin.com/linux/v5.8.11/source/kernel/sched/fair.c.
Comment 72•4 years ago
|
||
(In reply to Paul from comment #71)
I am currently on 88.0a1 (2021-03-10) (64-bit) and it doesn't work at all on https://elixir.bootlin.com/linux/v5.8.11/source/kernel/sched/fair.c.
That doesn't work in other browsers either, because that page is hiding the root scrollbars, then having a full wrapper over the whole content's of the page... A bit unfortunate IMO. It could be made to work, perhaps, but for Gecko that scrollbar is just the scrollbar of another <div>
.
Assignee | ||
Updated•4 years ago
|
Comment 73•4 years ago
|
||
Visibility is rather poor on dark themed websites with a dark scrollbar. such as right now on bugzilla.
I'm guessing it will be improved some time in the future. Until then, can I manually change the color or something?
Comment 74•4 years ago
|
||
the color is determined by preference: ui.textHighlightBackground
see here: https://searchfox.org/mozilla-central/source/layout/xul/nsSliderFrame.cpp#294
unfortunately that will affect highlights everywhere, so you can't independently change this particular color.
would you guys consider making the slider marks toggled by a preference? the way it's implemented pushes just about any kind of customization way out of reach.
Comment 75•4 years ago
|
||
to clarify, some kind of preference to change the color, opacity, and/or thickness would be equally useful. I too find the current values very difficult to see, regardless of color. it's just the combination of 0.3 alpha and very thin bars that's making it blend in.
Comment 76•4 years ago
|
||
i concur with the above sentiments, the feature as it is right now isn't the most helpful.
Comment 77•4 years ago
|
||
seems like i am unable to attach images, so here's a direct link to a screenshot showing the implementation in Chromium which i think is a lot more visible
Assignee | ||
Comment 78•4 years ago
|
||
The marks appearance is covered by bug 1690129.
Comment 79•4 years ago
|
||
thank you very much, i'll keep an eye on that link
Updated•3 years ago
|
Updated•3 years ago
|
Description
•