Closed Bug 519076 Opened 15 years ago Closed 15 years ago

inserthtml for iframe in designmode is unbearably slow for Firefox 3.5 but not older versions

Categories

(Core :: DOM: Editor, defect)

1.9.1 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: cacyclewp, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

Inserting very long html strings into an iframe in designmode using execCommand('inserthtml') takes unbearably long in Firefox 3.5. 

The attached testcase inserts a 1.4 MB text with dense html code. What takes less than one second in SeaMonkey 1.1.18 (Gecko/20090825) takes more than 10 s in Firefox 3.5!

This bug critically affects syntax highlighting in rich text editors like wikEd on Wikipedia (http://en.wikipedia.org/wiki/User:Cacycle/wikEd).  The testcase is a real example of the highlighted content from the Wikipedia article on Barack Obama. No editing user will accept an additional 10 s browser freeze after the already somewhat time consuming highlighting process (1.6 s for this example).



Reproducible: Always
Attachment #403074 - Attachment is obsolete: true
As far as I could figure this out, the insert time is not related to any specific html element or part of the testcase string. It seems only be related to the number of html code tags. 

Sometimes the inserted text in the testcase is not displayed (that seems to be another bug) and when saving the testcase after it ran also saves the displayed run time, even if this was dynamically inserted by the script (clearly another bug).
Can you retest with the latest trunk nightly build? For it seems significantly improved.
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/
Version: unspecified → 3.5 Branch
Minefield/3.7a1pre gives the same insert time as Seamonkey 1.1.18 of less than a second. That is about 15-fold faster than FF 3.5.3! 

Does anybody know the bug number where this has been fixed and if it will be fixed in the upcoming FF 3.5 releases?

(Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20090927 Minefield/3.7a1pre (.NET CLR 3.5.30729))
Personally I don't know the bug number. It is not likely that it still will be fixed for the next version of Firefox 3.5, but it is already fixed for the next release, Firefox 3.7.
Resolving WORKSFORME.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Component: General → Editor
Product: Firefox → Core
QA Contact: general → editor
Resolution: --- → WORKSFORME
Version: 3.5 Branch → 1.9.1 Branch
As this essentially makes the Wikipedia editor wikEd unusable (at least for longer articles) I would like to have this fixed as soon as possible, which probably means in one of the upcoming 3.5 releases.
That means you have to find the bug that fixed the issue and nominate the fox for the Gecko 1.9.1 branch.
verified wfm
Status: RESOLVED → VERIFIED
It has been fixed in Namoroka/3.6a1 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1) Gecko/20090806 Namoroka/3.6a1 (.NET CLR 3.5.30729))
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: