Title: [293929] trunk/Source/WebCore
Revision
293929
Author
[email protected]
Date
2022-05-06 16:10:39 -0700 (Fri, 06 May 2022)

Log Message

[macOS] HTTP traffic is not filtered in the parental controls filter
https://bugs.webkit.org/show_bug.cgi?id=240180
<rdar://problem/92875540>

Reviewed by Geoffrey Garen.

Traditionally, we have not filtered HTTP in the parental controls filter on macOS, since other parts of the system
has taken care of this. This appears to have changed now, and WebKit should also filter HTTP in addition to HTTPS.

* platform/cocoa/ParentalControlsContentFilter.mm:
(WebCore::canHandleResponse):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (293928 => 293929)


--- trunk/Source/WebCore/ChangeLog	2022-05-06 22:33:06 UTC (rev 293928)
+++ trunk/Source/WebCore/ChangeLog	2022-05-06 23:10:39 UTC (rev 293929)
@@ -1,3 +1,17 @@
+2022-05-06  Per Arne Vollan  <[email protected]>
+
+        [macOS] HTTP traffic is not filtered in the parental controls filter
+        https://bugs.webkit.org/show_bug.cgi?id=240180
+        <rdar://problem/92875540>
+
+        Reviewed by Geoffrey Garen.
+
+        Traditionally, we have not filtered HTTP in the parental controls filter on macOS, since other parts of the system
+        has taken care of this. This appears to have changed now, and WebKit should also filter HTTP in addition to HTTPS.
+
+        * platform/cocoa/ParentalControlsContentFilter.mm:
+        (WebCore::canHandleResponse):
+
 2022-05-06  Manuel Rego Casasnovas  <[email protected]>
 
         [selectors] Double script focus after mouse click shouldn't match :focus-visible

Modified: trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm (293928 => 293929)


--- trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm	2022-05-06 22:33:06 UTC (rev 293928)
+++ trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm	2022-05-06 23:10:39 UTC (rev 293929)
@@ -74,11 +74,7 @@
 
 static inline bool canHandleResponse(const ResourceResponse& response)
 {
-#if PLATFORM(MAC) || PLATFORM(MACCATALYST)
-    return response.url().protocolIs("https");
-#else
     return response.url().protocolIsInHTTPFamily();
-#endif
 }
 
 void ParentalControlsContentFilter::responseReceived(const ResourceResponse& response)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to