[Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Mar 2012 04:47:25 +0000 (04:47 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Mar 2012 04:47:25 +0000 (04:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=81421

Patch by Charlie Reis <creis@chromium.org> on 2012-03-19
Reviewed by Adam Barth.

* public/WebSecurityPolicy.h:
(WebSecurityPolicy):
* src/WebSecurityPolicy.cpp:
(WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument):
(WebKit):

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

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/WebSecurityPolicy.h
Source/WebKit/chromium/src/WebSecurityPolicy.cpp

index dec8adbe5e8d626cc929558034d21b52f8015cbf..0c41bea77982a46ac7d343307a87174b87c7d9fd 100644 (file)
@@ -1,3 +1,16 @@
+2012-03-19  Charlie Reis  <creis@chromium.org>
+
+        [Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy
+        https://bugs.webkit.org/show_bug.cgi?id=81421
+
+        Reviewed by Adam Barth.
+
+        * public/WebSecurityPolicy.h:
+        (WebSecurityPolicy):
+        * src/WebSecurityPolicy.cpp:
+        (WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument):
+        (WebKit):
+
 2012-03-19  Keishi Hattori  <keishi@webkit.org>
 
         [chromium] Fixing build. Adding missing virtual.
index 466d98684ff27c97036073af4e622569b408bedf..babd9bfba27f1a65d80f4d41e8b9fdf3ed09502e 100644 (file)
@@ -64,6 +64,10 @@ public:
     // Registers a non-HTTP URL scheme which can be sent CORS requests. 
     WEBKIT_EXPORT static void registerURLSchemeAsCORSEnabled(const WebString&);
 
+    // Registers a URL scheme as strictly empty documents, allowing them to
+    // commit synchronously.
+    WEBKIT_EXPORT static void registerURLSchemeAsEmptyDocument(const WebString&);
+
     // Support for whitelisting access to origins beyond the same-origin policy.
     WEBKIT_EXPORT static void addOriginAccessWhitelistEntry(
         const WebURL& sourceOrigin, const WebString& destinationProtocol,
index 01162779e9d3a8e568cb74d4724ca7b3a7ae9c91..c443490c7482ab2ad54ad7be76f66481aa4820b9 100644 (file)
@@ -68,6 +68,11 @@ void WebSecurityPolicy::registerURLSchemeAsCORSEnabled(const WebString& scheme)
     SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme);
 }
 
+void WebSecurityPolicy::registerURLSchemeAsEmptyDocument(const WebString& scheme)
+{
+    SchemeRegistry::registerURLSchemeAsEmptyDocument(scheme);
+}
+
 void WebSecurityPolicy::addOriginAccessWhitelistEntry(
     const WebURL& sourceOrigin,
     const WebString& destinationProtocol,