Open Bug 1847490 Opened 1 year ago Updated 1 year ago

Allow web-extensions to search text in textareas

Categories

(WebExtensions :: General, task, P3)

Firefox 116
task

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.

Summary: Search in text area → Allow web-extensions to search text in textareas

I will set this enhancement as new so the engineering team could decide if they take in consideration changing this.

Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Product: Firefox → WebExtensions

Thank you for the report, but this is not a web extensions bug:

  1. 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
  2. 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.

Severity: -- → N/A
Type: enhancement → task
Priority: -- → P3

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?

You need to log in before you can comment on or make changes to this bug.