Allow web-extensions to search text in textareas
Categories
(WebExtensions :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: nik.singh710, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Steps to reproduce:
I use a plugin named vimium-c
that uses firefox's API to perform search in a webpage using the keymap /
step 1: instal vimium-c
step 2: visit github.com
step 3: open any opensource code
step 4: try to find a word inside the code using /
key
Actual results:
the search result is not found on github codes.
as github uses textarea to show codes firefox API fails to find string in that.
Expected results:
search should find the result in that area too.
issue
Here is a github issue url.
Updated•1 year ago
|
Comment 1•1 year ago
|
||
I will set this enhancement as new so the engineering team could decide if they take in consideration changing this.
Comment 2•1 year ago
|
||
Thank you for the report, but this is not a web extensions bug:
- we have a a (Firefox-only) api to perform the find in page that works across text areas: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/find/find
- Vimium-c seems to be using an unsupported DOM API https://developer.mozilla.org/en-US/docs/Web/API/Window/find
They could either use our supported extensions API, or go through <textarea>s on the page and read the .textContent
manually.
Either way, moving this to dev outreach.
Reporter | ||
Comment 3•1 year ago
|
||
a quote from vimium-c dev I know the API of browser.find.* but it's conflicted with many features of Vimium C's FindMode, including regexp-finding. So Vimium C won't use it.
is there any way out or let mozilla find api to have regexp-finding?
Description
•