Bug 577398

Summary: [webkit][GTK] Browser should support searching for text in the page content
Product: [Eclipse Project] Platform Reporter: Andrey Loskutov <loskutov>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: akurtakov, carsten.pfeiffer, eclipse, harald.hermann, volodja_reg
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrey Loskutov CLA 2021-11-22 12:17:27 EST
That is same as bug 455555 but for webkit/GTK.

AS IS: there is no way to search for a text via Ctrl+F shortcut in the opened internal browser or in Eclipse Help.

TO BE: ideally, some dialog should be opened that allows to search in the help.

If not possible to do that in the browser component itself, we may create a dedicated bug for the Help to add some fancy javascript/css based dialog that we contribute to the Help component so that we could do that via html Help itself (not sure it is possible either).
Comment 1 Alexander Kurtakov CLA 2021-11-22 12:21:18 EST
Hint if anyone is interested in implementing it: https://wiki.gnome.org/Projects/WebKitGtk/ProgrammingGuide/Cookbook#Searching_text_on_a_WebView
Comment 2 Carsten Pfeiffer CLA 2022-06-10 07:32:49 EDT
We're using the SWT Browser component and I've been wondering why Ctrl-F works fine on Windows (=IE), but not on Linux (webkit). Now I know.

An alternative to a native webkit implementation might be a BrowserFunction using Window.find() (see https://developer.mozilla.org/en-US/docs/Web/API/Window/find). That could also fix bug 455555 on macos.