Closed Bug 753233 Opened 14 years ago Closed 14 years ago

Pasting a 789503 character long data:image/png uri into textarea causes hangs

Categories

(Core :: Spelling checker, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla15

People

(Reporter: cpearce, Assigned: ehsan.akhgari)

Details

(Keywords: perf)

Attachments

(2 files)

Copying and pasting a really long data URI into bugzilla's textarea comment field causing a several seconds long hang. Selecting it with CTRL+A also causes a several seconds long hang. STR: 1. Download attached file. 2. Copy file's contents to your clipboard. 3. Paste in bugzilla's comment field. 4. Observe hang. Expected results: Firefox magically doesn't hang. Possibly by not trying to spellcheck data URIs or some such.
We're spending all of our time in WordSplitState::FindSpecialWord.
Attached patch Patch (v1) — — Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #622483 - Flags: review?(roc)
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Component: Editor → Spelling checker
QA Contact: editor → spelling-checker
Keywords: perf
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: