[webkit-changes] [WebKit/WebKit] d2db56: Enable ResourceMonitor feature only for web browsers.

Basuke Suzuki noreply at github.com
Thu Feb 13 17:31:21 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d2db56e2e44af82118dbb2597eca8244c09a3bbc
      https://github.com/WebKit/WebKit/commit/d2db56e2e44af82118dbb2597eca8244c09a3bbc
  Author: Basuke Suzuki <basuke at apple.com>
  Date:   2025-02-13 (Thu, 13 Feb 2025)

  Changed paths:
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
    M Source/WebKit/Shared/WebPreferencesDefaultValues.h
    M Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm
    M Tools/MiniBrowser/mac/Info.plist

  Log Message:
  -----------
  Enable ResourceMonitor feature only for web browsers.
https://bugs.webkit.org/show_bug.cgi?id=287656
rdar://144808302

Reviewed by Per Arne Vollan.

We don’t want to enable this feature on non-browser WebView. Set the feature off by default
for all platform and enable the flag in Cocoa's `WebPreferences::platformInitializeStore()`.

Also we modify MiniBrowser's Info.plist to accept `http` and `https` so that it should be
treated as full browser app.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebKit/Shared/WebPreferencesDefaultValues.cpp:
(WebKit::defaultIFrameResourceMonitoringEnabled):
* Source/WebKit/Shared/WebPreferencesDefaultValues.h:
* Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm:
(WebKit::WebPreferences::platformInitializeStore):
* Tools/MiniBrowser/mac/Info.plist:

Canonical link: https://commits.webkit.org/290378@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list