Bug 4207
Summary: | crash on a specific website | ||
---|---|---|---|
Product: | WebKit | Reporter: | Denis Ahrens <denis> |
Component: | New Bugs | Assignee: | Dave Hyatt <hyatt> |
Status: | RESOLVED FIXED | ||
Severity: | Major | ||
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://wow-europe.com/en/info/underdev/darkmoon.html |
Denis Ahrens
Safari (cvs-current from 29.7.2005) crashes when you click on an image on http://wow-europe.com/
en/info/underdev/darkmoon.html
It does not happen with the normal Safari browser, only with a cvs-build one!
The following fixes at least the crash!
diff -u -r1.99 htmlparser.cpp
--- htmlparser.cpp 18 Jul 2005 21:52:26 -0000 1.99
+++ htmlparser.cpp 29 Jul 2005 20:20:23 -0000
@@ -1360,7 +1360,7 @@
void HTMLParser::finished()
{
// In the case of a completely empty document, here's the place to create the HTM
L element.
- if (current->isDocumentNode() && current->firstChild() == 0) {
+ if (current && current->isDocumentNode() && current->firstChild() == 0) {
insertNode(new HTMLHtmlElementImpl(document));
}
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
A fix identical to the one described below was landed on 2005-08-04 so I am resolving this as fixed.
Denis, can you please verify that the problem is resolved: if so, mark the bug as resolved, and if not please
reopen it.
Denis Ahrens
yes, it seems the crash is not only fixed but that now the new window actually displays some content
which was not the case with the default Safari before.