Open
Bug 1454426
Opened 7 years ago
Updated 3 years ago
Hiding and showing an iframe that contains an editable div causes image duplication
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | wontfix |
| firefox59 | --- | wontfix |
| firefox60 | --- | fix-optional |
| firefox61 | --- | fix-optional |
| firefox62 | --- | fix-optional |
People
(Reporter: ed.hager, Unassigned)
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Steps to reproduce:
I'm using Firefox 59.0.2 on macOS 10.13.4.
Here is a CodePen that demonstrates the problem: https://codepen.io/edhager/pen/OvKwNO
I created an iframe that contains an editable <div> that contains an image. Here are the steps to reproduce the error:
1. Click the "Add/Remove Hide class" button to hide the iframe. The code uses "display: none" to hide the div that contains the iframe.
2. Click the "Add/Remove Hide class" button to show the iframe.
3. Double click on the image.
Actual results:
A second instance of the image is added but open the DOM inspector and notice there is still only one <img> tag.
Expected results:
I expected nothing to happen.
If you double click the image first, nothing happens on the second double click.
1. Double click on the image.
2. Click the "Add/Remove Hide class" button to hide the iframe.
3. Click the "Add/Remove Hide class" button to show the iframe.
4. Double click on the image.
Comment 1•7 years ago
|
||
firefox3.6 : works as expected
firefox4 : crashes when click on image
firefox5 and later : reproduced the issue
Status: UNCONFIRMED → NEW
status-firefox59:
--- → wontfix
status-firefox60:
--- → fix-optional
status-firefox61:
--- → affected
status-firefox-esr52:
--- → wontfix
Component: Untriaged → Editor
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Product: Firefox → Core
Version: unspecified → Trunk
Updated•7 years ago
|
Priority: -- → P3
Comment 2•7 years ago
|
||
old regression...
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•