[webkit-changes] [WebKit/WebKit] ebec3b: Add WKUserScriptCreate with all parameters available.

Basuke Suzuki noreply at github.com
Fri Aug 18 12:54:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ebec3b5a284a8f8b2e8358c47f8a810121672045
      https://github.com/WebKit/WebKit/commit/ebec3b5a284a8f8b2e8358c47f8a810121672045
  Author: Basuke Suzuki <basuke.suzuki at sony.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M Source/WebKit/PlatformPlayStation.cmake
    M Source/WebKit/UIProcess/API/C/WKUserScriptRef.cpp
    M Source/WebKit/UIProcess/API/C/WKUserScriptRef.h

  Log Message:
  -----------
  Add WKUserScriptCreate with all parameters available.
https://bugs.webkit.org/show_bug.cgi?id=260363

Reviewed by Alex Christensen.

WKUserScriptCreateFromSource() cannot specify parameters for full WebCore::UserScript and
the feature is limited. Because WKPageGroup is deprecated on 266167 at main, we cannot achieve
same thing we could do with WKPageGroupAddUserScript because of the lack of above creation API.

This patch adds WKUserScriptCreate() with all parameters available.

* Source/WebKit/PlatformPlayStation.cmake:
* Source/WebKit/UIProcess/API/C/WKUserScriptRef.cpp:
(WKUserScriptCreate):
* Source/WebKit/UIProcess/API/C/WKUserScriptRef.h:

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




More information about the webkit-changes mailing list