Closed
Bug 304994
Opened 19 years ago
Closed 17 years ago
[midas] iframe with designMode=on breaks when you navigate to another loaded page and then back
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: myk, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: regression)
Attachments
(3 files)
1.22 KB,
patch
|
Details | Diff | Splinter Review | |
3.19 KB,
patch
|
Details | Diff | Splinter Review | |
454 bytes,
text/html
|
Details |
When on a page containing an iframe with designMode=on, if you navigate to
another loaded page in that tab's history and then navigate back to the
designMode page, designMode no longer works (you can't type into the iframe).
Steps to Reproduce:
1. open attachment 192436 [details] (a simple testcase for designMode);
2. click in the iframe and type something;
3. go back to the previous page;
4. go forward to the designMode testcase;
5. type something, then click in the iframe to focus it and type something.
Expected Results: what you type in step 5 appears in the iframe, ideally before
you click in the iframe to focus it (it should have stayed focused), but
certainly afterwards.
Actual Results: what you type in step 5 doesn't appear in the iframe, either
before or after you click in the iframe to focus it.
Tested on today's nightly Linux build (Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9a1) Gecko/20050816 Firefox/1.0+).
Note that if you load another page, then go back, designMode works. But if you
subsequently go forward to that already-loaded page and then back, designMode
breaks. So the problem is specific to navigating to an already-loaded page and
then back to the designMode page.
Comment 2•19 years ago
|
||
Nominating 1.8b4 due to probable webpage breakage.
Flags: blocking1.8b4?
Keywords: regression
Comment 3•19 years ago
|
||
I suspect this is related to Bug 300411 which was fixing some designMode=on issues with fastback. Also see Bug 287707 which tracks some issues with designMode=on and fastback which was already minused for this release.
Updated•19 years ago
|
Assignee: mozeditor → bryner
Comment 4•19 years ago
|
||
Bob or Brian - do you have a sense of whether existing usage of designMode are impacted by this bug (i.e. blogger, etc).
Flags: blocking1.8b4? → blocking1.8b5?
Comment 5•19 years ago
|
||
(In reply to comment #4) See <http://devedge-temp.mozilla.org/viewsource/2003/midas/01/> for more examples. This bug affects not only the use of iframe but also when used on a full document. In addition to |page->designmode page->back|, it affects |designmodepage->new page->back|. designmode is turned back on if the page is reloaded. bfcache preserves the changes made to the designmode page, which are lost when bfcache is off. In my opinion this will annoy people about the same as losing their edits when navigating away and then back to the designmode page. One additional problem with bfcache is that if you attempt to backspace thinking you are editing the text on the page, it will navigate you backwards in your history which might surprise people. As for designmode usage, I don't have stats on how common it is but can say that due to bug 198155 the use of an iframe was the recommended approach.
Comment 6•19 years ago
|
||
does this break blogger.com's wysiwyg editing because I think that's the largest user of this feature that I know.
Comment 7•19 years ago
|
||
Did some testing and couldn't get this to break on blogger or myspace blog editing (8/29 build on Windows)... but it still seems likely to break some site somewhere.
Updated•19 years ago
|
Flags: blocking1.8b5? → blocking1.8b5-
![]() |
||
Updated•19 years ago
|
Flags: blocking1.9a1?
Comment 8•19 years ago
|
||
This bug can be reproduced with http://www.fckeditor.net/demo/default.html.
Flags: blocking1.9a1? → blocking1.9-
Whiteboard: [wanted-1.9]
Updated•18 years ago
|
QA Contact: editor
Assignee | ||
Updated•17 years ago
|
Summary: iframe with designMode=on breaks when you navigate to another loaded page and then back → [midas] iframe with designMode=on breaks when you navigate to another loaded page and then back
Assignee | ||
Comment 10•17 years ago
|
||
Assignee: bryner → mats.palmgren
Status: NEW → ASSIGNED
Assignee | ||
Comment 11•17 years ago
|
||
Comment 12•17 years ago
|
||
Even in a page with DesignMode=ON that does not contain iframes we can reproduce this same situation. Please, try the attachment.
Comment 13•17 years ago
|
||
Adding myself to the CC list.
Updated•17 years ago
|
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
Comment 14•17 years ago
|
||
This is already fixed on trunk somehow, at least with current steps to reproduce. (although this regressed on branch, bug 416751)
Comment 15•17 years ago
|
||
As a sidenote, I just found a case where designMode is still not working after going back, bug 419054. (slight different steps to reproduce than this one)
Per comment #14.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Updated•17 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•