[webkit-changes] [WebKit/WebKit] b6a2c1: Preload restricted window opener data

bnham noreply at github.com
Mon Feb 26 20:48:39 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b6a2c1035c810d1f3de8ed2eb1eb7889e1ce979a
      https://github.com/WebKit/WebKit/commit/b6a2c1035c810d1f3de8ed2eb1eb7889e1ce979a
  Author: Ben Nham <nham at apple.com>
  Date:   2024-02-26 (Mon, 26 Feb 2024)

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

  Log Message:
  -----------
  Preload restricted window opener data
https://bugs.webkit.org/show_bug.cgi?id=270106
rdar://123640341

Reviewed by Wenson Hsieh.

The first call to check for the restricted opener type for a domain currently always claims that the
domain should have an unrestricted opener. This is because we load the list of restricted openers
from WebPrivacy both lazily and asynchronously.

To make it much more likely that the first call has up-to-date data, we now load the data in
`WebProcessPool::didReachGoodTimeToPrewarm`.

* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::loadRestrictedOpenerTypeDataIfNeeded):
(WebKit::WebProcessPool::didReachGoodTimeToPrewarm):

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