https://bugs.webkit.org/show_bug.cgi?id=39017
Unreviewed test fix.
* page/DOMWindow.cpp: (WebCore::DOMWindow::createWindow): Let empty URLs through.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105554
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-20 Alexey Proskuryakov <ap@apple.com>
+
+ WebCore should not send invalid URLs to client createWindow methods.
+ https://bugs.webkit.org/show_bug.cgi?id=39017
+
+ Unreviewed test fix.
+
+ * page/DOMWindow.cpp: (WebCore::DOMWindow::createWindow): Let empty URLs through.
+
2012-01-20 Sam Weinig <sam@webkit.org>
Make WebCore RunLoop work for WebKit1
String referrer = firstFrame->loader()->outgoingReferrer();
KURL completedURL = urlString.isEmpty() ? KURL(ParsedURLString, emptyString()) : firstFrame->document()->completeURL(urlString);
- if (!completedURL.isValid()) {
+ if (!completedURL.isEmpty() && !completedURL.isValid()) {
// Don't expose client code to invalid URLs.
activeWindow->printErrorMessage("Unable to open a window with invalid URL '" + completedURL.string() + "'.\n");
return 0;