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

VERIFIED FIXED in mozilla15

Status

()

Core
Spelling checker
VERIFIED FIXED
5 years ago
5 years ago

People

(Reporter: cpearce, Assigned: Ehsan)

Tracking

({perf})

Trunk
mozilla15
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

5 years ago
Created attachment 622284 [details]
Testcase: copy and paste this into bugzilla's comment field

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.
Created attachment 622483 [details] [diff] [review]
Patch (v1)
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #622483 - Flags: review?(roc)
Attachment #622483 - Flags: review?(roc) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/8a8cadee668f
Target Milestone: --- → mozilla15

Comment 4

5 years ago
https://hg.mozilla.org/mozilla-central/rev/8a8cadee668f
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Updated

5 years ago
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.