Title: [250333] trunk/Source
Revision
250333
Author
[email protected]
Date
2019-09-24 21:11:16 -0700 (Tue, 24 Sep 2019)

Log Message

Remove SchemeRegistry's list of URL schemes allowing local storage in private browsing, which is unused
https://bugs.webkit.org/show_bug.cgi?id=202181

Patch by Alex Christensen <[email protected]> on 2019-09-24
Reviewed by Geoffrey Garen.

Source/WebCore:

The last use of the WebView SPI to set it is being removed in rdar://problem/55685383
but it already does not do anything.  Let's remove it.

* platform/SchemeRegistry.cpp:
(WebCore::schemesAllowingLocalStorageAccessInPrivateBrowsing): Deleted.
(WebCore::SchemeRegistry::registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing): Deleted.
(WebCore::SchemeRegistry::allowsLocalStorageAccessInPrivateBrowsing): Deleted.
* platform/SchemeRegistry.h:

Source/WebKitLegacy/mac:

* WebView/WebView.mm:
(+[WebView _registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:]):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (250332 => 250333)


--- trunk/Source/WebCore/ChangeLog	2019-09-25 03:45:17 UTC (rev 250332)
+++ trunk/Source/WebCore/ChangeLog	2019-09-25 04:11:16 UTC (rev 250333)
@@ -1,3 +1,19 @@
+2019-09-24  Alex Christensen  <[email protected]>
+
+        Remove SchemeRegistry's list of URL schemes allowing local storage in private browsing, which is unused
+        https://bugs.webkit.org/show_bug.cgi?id=202181
+
+        Reviewed by Geoffrey Garen.
+
+        The last use of the WebView SPI to set it is being removed in rdar://problem/55685383
+        but it already does not do anything.  Let's remove it.
+
+        * platform/SchemeRegistry.cpp:
+        (WebCore::schemesAllowingLocalStorageAccessInPrivateBrowsing): Deleted.
+        (WebCore::SchemeRegistry::registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing): Deleted.
+        (WebCore::SchemeRegistry::allowsLocalStorageAccessInPrivateBrowsing): Deleted.
+        * platform/SchemeRegistry.h:
+
 2019-09-24  Wenson Hsieh  <[email protected]>
 
         Remove a content change observation quirk on united.com

Modified: trunk/Source/WebCore/platform/SchemeRegistry.cpp (250332 => 250333)


--- trunk/Source/WebCore/platform/SchemeRegistry.cpp	2019-09-25 03:45:17 UTC (rev 250332)
+++ trunk/Source/WebCore/platform/SchemeRegistry.cpp	2019-09-25 04:11:16 UTC (rev 250333)
@@ -236,13 +236,6 @@
     localURLSchemes().remove(scheme);
 }
 
-static URLSchemesMap& schemesAllowingLocalStorageAccessInPrivateBrowsing()
-{
-    ASSERT(isMainThread());
-    static NeverDestroyed<URLSchemesMap> schemesAllowingLocalStorageAccessInPrivateBrowsing;
-    return schemesAllowingLocalStorageAccessInPrivateBrowsing;
-}
-
 static URLSchemesMap& schemesAllowingDatabaseAccessInPrivateBrowsing()
 {
     ASSERT(isMainThread());
@@ -414,18 +407,6 @@
     return !scheme.isNull() && notAllowingJavascriptURLsSchemes().contains(scheme);
 }
 
-void SchemeRegistry::registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing(const String& scheme)
-{
-    if (scheme.isNull())
-        return;
-    schemesAllowingLocalStorageAccessInPrivateBrowsing().add(scheme);
-}
-
-bool SchemeRegistry::allowsLocalStorageAccessInPrivateBrowsing(const String& scheme)
-{
-    return !scheme.isNull() && schemesAllowingLocalStorageAccessInPrivateBrowsing().contains(scheme);
-}
-
 void SchemeRegistry::registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing(const String& scheme)
 {
     if (scheme.isNull())

Modified: trunk/Source/WebCore/platform/SchemeRegistry.h (250332 => 250333)


--- trunk/Source/WebCore/platform/SchemeRegistry.h	2019-09-25 03:45:17 UTC (rev 250332)
+++ trunk/Source/WebCore/platform/SchemeRegistry.h	2019-09-25 04:11:16 UTC (rev 250333)
@@ -75,8 +75,6 @@
 
     // Let some schemes opt-out of Private Browsing's default behavior of prohibiting read/write
     // access to Local Storage and Databases.
-    WEBCORE_EXPORT static void registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing(const String& scheme);
-    WEBCORE_EXPORT static bool allowsLocalStorageAccessInPrivateBrowsing(const String& scheme);
     WEBCORE_EXPORT static void registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing(const String& scheme);
     static bool allowsDatabaseAccessInPrivateBrowsing(const String& scheme);
 

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (250332 => 250333)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2019-09-25 03:45:17 UTC (rev 250332)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2019-09-25 04:11:16 UTC (rev 250333)
@@ -1,3 +1,13 @@
+2019-09-24  Alex Christensen  <[email protected]>
+
+        Remove SchemeRegistry's list of URL schemes allowing local storage in private browsing, which is unused
+        https://bugs.webkit.org/show_bug.cgi?id=202181
+
+        Reviewed by Geoffrey Garen.
+
+        * WebView/WebView.mm:
+        (+[WebView _registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:]):
+
 2019-09-21  Chris Dumez  <[email protected]>
 
         Reduce use of SessionID::defaultSessionID() in WebKit

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (250332 => 250333)


--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2019-09-25 03:45:17 UTC (rev 250332)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2019-09-25 04:11:16 UTC (rev 250333)
@@ -4790,7 +4790,6 @@
 
 + (void)_registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:(NSString *)scheme
 {
-    SchemeRegistry::registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing(scheme);
 }
 
 + (void)_registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:(NSString *)scheme
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to