Title: [293931] trunk/Source/WebCore
Revision
293931
Author
[email protected]
Date
2022-05-06 17:01:44 -0700 (Fri, 06 May 2022)

Log Message

[macOS] Content filter blocking shield is not displayed
https://bugs.webkit.org/show_bug.cgi?id=240178
<rdar://91586177>

Reviewed by Geoffrey Garen.

This is a regression from moving content filtering from the WebContent process to the Network process in r291630.
After r291630, the function to determine if a blocked request can be unblocked, is called in the Network process,
but it is not handling the case where the function to unblock the request is not set. This is causing the load
for blocked URLs to never finish, since the decision handler provided to the unblock request function is never
called. This patch addresses this by calling the decisionhandler with the blocked flag set in this case.

* platform/cocoa/ContentFilterUnblockHandlerCocoa.mm:
(WebCore::ContentFilterUnblockHandler::requestUnblockAsync const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (293930 => 293931)


--- trunk/Source/WebCore/ChangeLog	2022-05-06 23:17:18 UTC (rev 293930)
+++ trunk/Source/WebCore/ChangeLog	2022-05-07 00:01:44 UTC (rev 293931)
@@ -1,5 +1,22 @@
 2022-05-06  Per Arne Vollan  <[email protected]>
 
+        [macOS] Content filter blocking shield is not displayed
+        https://bugs.webkit.org/show_bug.cgi?id=240178
+        <rdar://91586177>
+
+        Reviewed by Geoffrey Garen.
+
+        This is a regression from moving content filtering from the WebContent process to the Network process in r291630.
+        After r291630, the function to determine if a blocked request can be unblocked, is called in the Network process,
+        but it is not handling the case where the function to unblock the request is not set. This is causing the load
+        for blocked URLs to never finish, since the decision handler provided to the unblock request function is never
+        called. This patch addresses this by calling the decisionhandler with the blocked flag set in this case.
+
+        * platform/cocoa/ContentFilterUnblockHandlerCocoa.mm:
+        (WebCore::ContentFilterUnblockHandler::requestUnblockAsync const):
+
+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>

Modified: trunk/Source/WebCore/platform/cocoa/ContentFilterUnblockHandlerCocoa.mm (293930 => 293931)


--- trunk/Source/WebCore/platform/cocoa/ContentFilterUnblockHandlerCocoa.mm	2022-05-06 23:17:18 UTC (rev 293930)
+++ trunk/Source/WebCore/platform/cocoa/ContentFilterUnblockHandlerCocoa.mm	2022-05-07 00:01:44 UTC (rev 293931)
@@ -178,6 +178,11 @@
                 decisionHandler(unblocked);
             });
         });
+    } else {
+        callOnMainThread([decisionHandler] {
+            auto unblocked = false;
+            decisionHandler(unblocked);
+        });
     }
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to