[webkit-changes] [WebKit/WebKit] 790c5d: Add support for runtime.getFrameId() in Web Extens...

Timothy Hatcher noreply at github.com
Fri Nov 3 14:27:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 790c5d5a8195e9cb80e585221fd12045643b718d
      https://github.com/WebKit/WebKit/commit/790c5d5a8195e9cb80e585221fd12045643b718d
  Author: Timothy Hatcher <timothy at apple.com>
  Date:   2023-11-03 (Fri, 03 Nov 2023)

  Changed paths:
    M Source/WebKit/Shared/Extensions/WebExtensionFrameIdentifier.h
    M Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIRuntimeCocoa.mm
    M Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIRuntime.h
    M Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIRuntime.idl
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIRuntime.mm

  Log Message:
  -----------
  Add support for runtime.getFrameId() in Web Extensions.
https://webkit.org/b/264172
rdar://problem/117916101

Reviewed by Brady Eidson.

* Source/WebKit/Shared/Extensions/WebExtensionFrameIdentifier.h:
(WebKit::isNone): Added.
(WebKit::isValid): Added.
(WebKit::toWebExtensionFrameIdentifier): Handle None case.
(WebKit::toWebAPI): Ditto.
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIRuntimeCocoa.mm:
(WebKit::WebExtensionAPIRuntime::getFrameId): Added.
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIRuntime.h:
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIRuntime.idl:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIRuntime.mm:
(TestWebKitAPI::TEST):

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




More information about the webkit-changes mailing list