https://bugs.webkit.org/show_bug.cgi?id=68573
Unreviewed follow-up fix.
* UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
Just like we allow null URLs, also allow empty strings.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95690
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-09-21 Alexey Proskuryakov <ap@apple.com>
+
+ [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
+ https://bugs.webkit.org/show_bug.cgi?id=68573
+
+ Unreviewed follow-up fix.
+
+ * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
+ Just like we allow null URLs, also allow empty strings.
+
2011-09-21 Julien Chaffraix <jchaffraix@webkit.org>
Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled
bool WebProcessProxy::checkURLReceivedFromWebProcess(const String& urlString)
{
+ if (urlString.isEmpty())
+ return true;
+
return checkURLReceivedFromWebProcess(KURL(KURL(), urlString));
}