Summary: | REGESSION(r45316), Crash: WebKit crashes in Google Sites when indenting a table | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||
Component: | HTML Editing | Assignee: | Ryosuke Niwa <rniwa> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Critical | CC: | darin, ojan | ||||||
Priority: | P1 | Keywords: | Regression | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Ryosuke Niwa
2009-08-19 17:00:38 PDT
Created attachment 35179 [details]
demo, crashes your WebKit
Created attachment 35182 [details]
fixes the bug, one line change.
Comment on attachment 35182 [details]
fixes the bug, one line change.
Can endOfCurrentParagraph ever have 0 for a node?
r=me assuming the answer is no
(In reply to comment #3) > (From update of attachment 35182 [details]) > Can endOfCurrentParagraph ever have 0 for a node? > > r=me assuming the answer is no It should never be. We could add an ASSERT there but the ending condition of the while loop is that we traverse through nodes until we reach end of selection. So should it ever be null, we fall into an infinite loop. http://trac.webkit.org/browser/trunk/WebCore/editing/IndentOutdentCommand.cpp#L207 Landed in http://trac.webkit.org/changeset/47608. |