Open Bug 616346 Opened 15 years ago Updated 5 years ago

document selection range is destroyed when an iframe is hidden and shown again (designMode on)

Categories

(Core :: DOM: Editor, defect, P5)

x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jarben, Unassigned)

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 This happens if we set display = "none" and later display = "block" on an iframe with an editable document (design mode). Reproducible: Always Steps to Reproduce: 1. Create a new document with an iframe with an editable document 2. Create couple of buttons so you can show/hide the iframe 3. Select some text and hide the iframe 4. Show the iframe again and notice that the text is not selected any more Actual Results: document selection range is not restored Expected Results: selection range should be shown (as not focused) Selection range shouldn't be destroyed from a different document, iframe should loose focus when clicked outside of the iframe but should keep this range. See an attached example
Whiteboard: DUPEME

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: