[WK2] UIProcess should check that WebProcess isn't sending unexpected file...
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 01:01:26 +0000 (01:01 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 01:01:26 +0000 (01:01 +0000)
        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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/WebProcessProxy.cpp

index fcf40f0..8ef0ed0 100644 (file)
@@ -1,3 +1,13 @@
+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
index fa80fa8..4fdfdd9 100644 (file)
@@ -216,6 +216,9 @@ void WebProcessProxy::willLoadHTMLStringWithBaseURL(const String& urlString)
 
 bool WebProcessProxy::checkURLReceivedFromWebProcess(const String& urlString)
 {
+    if (urlString.isEmpty())
+        return true;
+
     return checkURLReceivedFromWebProcess(KURL(KURL(), urlString));
 }