2006-07-15 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9866
<rdar://problem/
4631561>
REGRESSION: Repro crash from mangleme using iframe, only from server.
* html/HTMLIFrameElement.cpp:
(WebCore::HTMLIFrameElement::attach):
Add null check for contentFrame() since content frames won't be created for invalid URLs.
LayoutTests:
2006-07-15 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9866
<rdar://problem/
4631561>
REGRESSION: Repro crash from mangleme using iframe, only from server.
* http/tests/misc/iframe-invalid-source-crash-expected.txt: Added.
* http/tests/misc/iframe-invalid-source-crash.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15450
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-15 Anders Carlsson <acarlsson@apple.com>
+
+ Reviewed by Darin.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9866
+ <rdar://problem/4631561>
+ REGRESSION: Repro crash from mangleme using iframe, only from server.
+
+ * http/tests/misc/iframe-invalid-source-crash-expected.txt: Added.
+ * http/tests/misc/iframe-invalid-source-crash.html: Added.
+
2006-07-14 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
--- /dev/null
+ This tests that we don't crash if an iframe has an invalid source.
+SUCCESS - didn't crash
+
--- /dev/null
+<html>
+<head>
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+ </script>
+</head>
+ <body>
+ <iframe src="file:"></iframe>
+ This tests that we don't crash if an iframe has an invalid source.
+ <div>SUCCESS - didn't crash</div>
+ </body>
+</html>
+2006-07-15 Anders Carlsson <acarlsson@apple.com>
+
+ Reviewed by Darin.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9866
+ <rdar://problem/4631561>
+ REGRESSION: Repro crash from mangleme using iframe, only from server.
+
+ * html/HTMLIFrameElement.cpp:
+ (WebCore::HTMLIFrameElement::attach):
+ Add null check for contentFrame() since content frames won't be created for invalid URLs.
+
2006-07-14 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
if (renderPart) {
if (!contentFrame())
openURL();
-
- renderPart->setWidget(contentFrame()->view());
- renderPart->updateWidget();
- needWidgetUpdate = false;
+
+ if (contentFrame()) {
+ renderPart->setWidget(contentFrame()->view());
+ renderPart->updateWidget();
+ needWidgetUpdate = false;
+ }
}
}