2008-05-12 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 May 2008 17:29:35 +0000 (17:29 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 May 2008 17:29:35 +0000 (17:29 +0000)
        Reviewed by John.

        Don't throw an exception if the string passed in is an invalid URL.

        * loader/appcache/DOMApplicationCache.cpp:
        (WebCore::DOMApplicationCache::remove):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@33048 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/loader/appcache/DOMApplicationCache.cpp

index 50ae708..cabd716 100644 (file)
@@ -1,5 +1,14 @@
 2008-05-12  Anders Carlsson  <andersca@apple.com>
 
+        Reviewed by John.
+
+        Don't throw an exception if the string passed in is an invalid URL.
+        
+        * loader/appcache/DOMApplicationCache.cpp:
+        (WebCore::DOMApplicationCache::remove):
+
+2008-05-12  Anders Carlsson  <andersca@apple.com>
+
         Reviewed by Mitz.
 
         Add the variable enums for getting the input vtables.
index b5cc35f..5402a39 100644 (file)
@@ -173,11 +173,6 @@ void DOMApplicationCache::remove(const KURL& url, ExceptionCode& ec)
         return;
     }
     
-    if (!url.isValid()) {
-        ec = SYNTAX_ERR;
-        return;
-    }
-    
     cache->removeDynamicEntry(url);
 }