[webkit-changes] [WebKit/WebKit] 345d8c: Avoid requesting script telemetry rules when the i...

Wenson Hsieh noreply at github.com
Mon Oct 14 13:58:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 345d8ca40c4bdf6ed94413f83852a85bb8463add
      https://github.com/WebKit/WebKit/commit/345d8ca40c4bdf6ed94413f83852a85bb8463add
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2024-10-14 (Mon, 14 Oct 2024)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebProcessPool.cpp
    M Source/WebKit/UIProcess/WebProcessPool.h

  Log Message:
  -----------
  Avoid requesting script telemetry rules when the internal preference is turned off
https://bugs.webkit.org/show_bug.cgi?id=281442

Reviewed by Abrar Rahman Protyasha and Richard Robinson.

Move logic to update script telemetry rules (i.e. calling into `ScriptTelemetryController`) out of
the `WebProcessPool` contructor, and into a separate method that's only invoked if the corresponding
unified web preference (`ScriptTelemetryEnabled`) is turned on.

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::m_pageForTesting):
* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::observeScriptTelemetryUpdatesIfNeeded):
* Source/WebKit/UIProcess/WebProcessPool.h:

Canonical link: https://commits.webkit.org/285140@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