iframe.find() focuses iframe in Firefox 3.6

NEW
Unassigned

Status

()

Core
General
--
major
7 years ago
2 months ago

People

(Reporter: Cacycle, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows XP
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

435 bytes, text/html
Details
(Reporter)

Description

7 years ago
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);
(Reporter)

Comment 1

7 years ago
Created attachment 424399 [details]
Testcase
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

Comment 3

7 years ago
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
(Reporter)

Comment 4

7 years ago
Problem persists with Minefield/3.7a1pre in safe mode. Also, several users of the Wikipedia editor wikEd have complained about this under 3.6.

Updated

7 years ago
Status: UNCONFIRMED → NEW
Component: General → HTML: Form Submission
Ever confirmed: true
Keywords: testcase
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
Keywords: qawanted
QA Contact: form-submission → general

Comment 6

6 years ago
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

Comment 7

4 years ago
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.
Keywords: qawanted
Version: 9 Branch → Trunk
(Reporter)

Comment 8

2 months ago
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.