Open Bug 543204 Opened 11 years ago Updated 4 years ago
.find() focuses iframe in Firefox 3 .6
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) In Firefox 3.6, but not in previous Firefox versions and not in other browsers (Chrome, Safari), the find function on an iframe in designmode gives focus to the iframe. Reproducible: Always Steps to Reproduce: 1. Open attached testcase 2. start typing in the input box 3. onkeyup triggers iframe.find() Actual Results: In Firefox 3.6, the focus shifts from the input field to the iframe Expected Results: All Firefox < 3.6 and all Chrome and Safari versions do not focus the found text in the iframe but instead keep the focus on the input field. This breaks the Wikipedia editor wikEd where it makes the find ahead search function unusable. Here is a workaround for Firefox 3.6: var inputFieldSelectionStart = inputField.selectionStart; var inputFieldSelectionEnd = inputField.selectionEnd; (run iframe find) inputField.select(); inputField.setSelectionRange(inputFieldSelectionStart, inputFieldSelectionEnd);
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.3a1pre) Gecko/20100130 Minefield/3.7a1pre Your testcase works fine for me; focus stays in input field. Maybe an add-on is triggering this? Do you see the same in safe-mode / with a new profile?
Version: unspecified → 3.6 Branch
I see the issue with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) ID:20100115144158 This is only triggered if you type a character that exists in the iframe. Steps to Reproduce: 1. Open attached testcase 2. Type an 'a' in the input text box 3. onkeyup triggers iframe.find() Result: Focus jumps to iframe
Problem persists with Minefield/3.7a1pre in safe mode. Also, several users of the Wikipedia editor wikEd have complained about this under 3.6.
Status: UNCONFIRMED → NEW
Component: General → HTML: Form Submission
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → form-submission
Version: 3.6 Branch → unspecified
This has nothing to do with form submission, and might not even be in core code (might be the toolkit find impl involved here).
Component: HTML: Form Submission → General
QA Contact: form-submission → general
Confirmed still an issue on Mozilla/5.0 (Windows NT 5.1; rv:9.0a1) Gecko/20110827 Firefox/9.0a1 ID:20110827030801
Version: unspecified → 9 Branch
Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 Build ID: 20130805030205 The issue is still reproducible on the latest Nightly (not reproducible on Chrome 28.0.1500.72 m). Removing the qawanted keyword since it didn't came with any specific requests. Please re-add it if anything specific is needed from the QA side.
Version: 9 Branch → Trunk
This bug is still present in 52.0.1 (!) (Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0) and is still a big problem. Please, anybody willing to help fixing this?
You need to log in before you can comment on or make changes to this bug.