Changeset 293990 in webkit


Ignore:
Timestamp:
May 9, 2022 2:17:57 PM (2 years ago)
Author:
pvollan@apple.com
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 Alexey Proskuryakov.

Source/WebCore:

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 has changed in the most recent macOS version, and WebKit should also filter HTTP in
addition to HTTPS.

  • platform/cocoa/ParentalControlsContentFilter.mm:

(WebCore::canHandleResponse):

Source/WTF:

Add HAVE macro which tells us which OS versions are filtering HTTP traffic on behalf of WebKit.

  • wtf/PlatformHave.h:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r293980 r293990  
     12022-05-09  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS] HTTP traffic is not filtered in the parental controls filter
     4        https://bugs.webkit.org/show_bug.cgi?id=240180
     5        <rdar://problem/92875540>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        Add HAVE macro which tells us which OS versions are filtering HTTP traffic on behalf of WebKit.
     10
     11        * wtf/PlatformHave.h:
     12
    1132022-05-08  Wenson Hsieh  <wenson_hsieh@apple.com>
    214
  • trunk/Source/WTF/wtf/PlatformHave.h

    r293980 r293990  
    11761176#define HAVE_UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER 1
    11771177#endif
     1178
     1179#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000) || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED < 150000)
     1180#define HAVE_SYSTEM_HTTP_CONTENT_FILTERING 1
     1181#endif
  • trunk/Source/WebCore/ChangeLog

    r293989 r293990  
     12022-05-09  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS] HTTP traffic is not filtered in the parental controls filter
     4        https://bugs.webkit.org/show_bug.cgi?id=240180
     5        <rdar://problem/92875540>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        Traditionally, we have not filtered HTTP in the parental controls filter on macOS, since other parts of the system
     10        has taken care of this. This has changed in the most recent macOS version, and WebKit should also filter HTTP in
     11        addition to HTTPS.
     12
     13        * platform/cocoa/ParentalControlsContentFilter.mm:
     14        (WebCore::canHandleResponse):
     15
    1162022-05-09  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm

    r293929 r293990  
    7575static inline bool canHandleResponse(const ResourceResponse& response)
    7676{
     77#if HAVE(SYSTEM_HTTP_CONTENT_FILTERING)
     78    return response.url().protocolIs("https");
     79#else
    7780    return response.url().protocolIsInHTTPFamily();
     81#endif
    7882}
    7983
Note: See TracChangeset for help on using the changeset viewer.