Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7ce1ad341229284e66e8f630fcadabdeed45b77e
      
https://github.com/WebKit/WebKit/commit/7ce1ad341229284e66e8f630fcadabdeed45b77e
  Author: Andy Estes <aes...@apple.com>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebKit/UIProcess/WebProcessPool.cpp

  Log Message:
  -----------
  [iOS] Prewarmed web process is not launched as an extension
https://bugs.webkit.org/show_bug.cgi?id=266027
rdar://119341312

Reviewed by Per Arne Vollan.

If a prewarmed WebContent process is created before the first WebPage is 
created, the process would
not be launched using ExtensionKit even if ManageWebKitProcessesAsExtensions is 
enabled.

Fixed this by moving the call to 
AuxiliaryProcessProxy::setManageProcessesAsExtensions from
WebProcessPool::createWebPage to WebProcessPool::createNewWebProcess so that 
the global flag is set
before the prewarmed WebContent process is created. Since pagePreferences are 
not available at this
point, also reverted to a user default for using ExtensionKit rather than a web 
preference.

* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::createNewWebProcess):
(WebKit::WebProcessPool::createWebPage):

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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to