GNOME Bugzilla – Bug 697424
Find does not highlight words when run twice with same search text
Last modified: 2018-08-03 19:56:31 UTC
To see the problem: 1. Visit a Web page. 2. Press Ctrl+F and type a word which occurs multiple times on the page. Epiphany will highlight all instances in yellow. You can press Enter to jump between them. 3. Press Escape to close the Find bar. 4. Press Ctrl+F again. Epiphany remembers the previous search term, but does not highlight it on the page. You can still press Enter to jump between instances, but they aren't highlighted. I think Epiphany should highlight all instances again when you reopen the Find bar.
Created attachment 241054 [details] [review] Patch With this patch we fix the issue, but I'm not sure if it's the best approach. I'm forcing a search when opening the toolbar if the find string is not empty.
Didn't try it, but why not calling webkit_web_view_set_highlight_text_matches() if the text is not empty?
(In reply to comment #2) > Didn't try it, but why not calling webkit_web_view_set_highlight_text_matches() > if the text is not empty? That is WK1 API, so we could only use it in that case. I guess we shouldn't add an #ifdef here for this case as we're removing the WK1 bits in the project.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/epiphany/issues/194.