Last Comment Bug 753233 - Pasting a 789503 character long data:image/png uri into textarea causes hangs
: Pasting a 789503 character long data:image/png uri into textarea causes hangs
Status: VERIFIED FIXED
: perf
Product: Core
Classification: Components
Component: Spelling checker (show other bugs)
: Trunk
: x86_64 Windows 7
: -- normal (vote)
: mozilla15
Assigned To: :Ehsan Akhgari
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-08 22:00 PDT by Chris Pearce (:cpearce)
Modified: 2012-05-15 13:20 PDT (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Testcase: copy and paste this into bugzilla's comment field (771.00 KB, text/plain)
2012-05-08 22:00 PDT, Chris Pearce (:cpearce)
no flags Details
Patch (v1) (2.57 KB, patch)
2012-05-09 13:18 PDT, :Ehsan Akhgari
roc: review+
Details | Diff | Splinter Review

Description Chris Pearce (:cpearce) 2012-05-08 22:00:08 PDT
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.
Comment 1 :Ehsan Akhgari 2012-05-09 11:34:42 PDT
We're spending all of our time in WordSplitState::FindSpecialWord.
Comment 2 :Ehsan Akhgari 2012-05-09 13:18:35 PDT
Created attachment 622483 [details] [diff] [review]
Patch (v1)
Comment 4 Ed Morley [:emorley] 2012-05-10 07:44:00 PDT
https://hg.mozilla.org/mozilla-central/rev/8a8cadee668f

Note You need to log in before you can comment on or make changes to this bug.