[Webkit-unassigned] [Bug 63851] New: Crash when loading a document in an editable WebView that has a subframe with an unstyled body
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 1 15:04:42 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63851
Summary: Crash when loading a document in an editable WebView
that has a subframe with an unstyled body
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: adele at apple.com
Crash when loading a document in an editable WebView that has a subframe with a body element with no style
Unfortunately, there's no way for me to test this in Safari, and I was unable to get this to crash in DumpRenderTree.
This patch fixes two problems:
1) In Editor::applyEditingStyleToElement, we assert that there element has style, but in this case I ran into, it did not. So I added an early return here.
2) In -[WebHTMLRepresentation finishedLoadingWithDataSource:], instead of applying the desirable editing style to any body element, only do it for the main frame. There's no need to apply break-word, space, and after-white-space properties to subframes in the editable document.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list