[webkit-changes] [WebKit/WebKit] f48587: Start autogenerating WebExtensionAPIWebNavigationE...

b-weinstein noreply at github.com
Wed Dec 7 12:27:38 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f485872bdb43055326125c16f9ac0dd62e421dc1
      https://github.com/WebKit/WebKit/commit/f485872bdb43055326125c16f9ac0dd62e421dc1
  Author: Brian Weinstein <bweinstein at apple.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M Source/WebKit/DerivedSources-input.xcfilelist
    M Source/WebKit/DerivedSources-output.xcfilelist
    M Source/WebKit/DerivedSources.make
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    A Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWebNavigationEventCocoa.mm
    A Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWebNavigationEvent.h
    M Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIWebNavigationEvent.idl

  Log Message:
  -----------
  Start autogenerating WebExtensionAPIWebNavigationEvent.idl and add the necessary files so everything compiles
https://bugs.webkit.org/show_bug.cgi?id=248845
rdar://102820594

Reviewed by Timothy Hatcher.

* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources-output.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWebNavigationEventCocoa.mm: Added.
(WebKit::WebExtensionAPIWebNavigationEvent::invokeListenersWithArgument): Invoke the listener with a single argument (which will be after checking the URL against the filter).
(WebKit::WebExtensionAPIWebNavigationEvent::addListener): Add the listener.
(WebKit::WebExtensionAPIWebNavigationEvent::removeListener): Remove the listener.
(WebKit::WebExtensionAPIWebNavigationEvent::hasListener): Determine if the listener is installed.
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWebNavigationEvent.h: Copied from Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIWebNavigationEvent.idl.
(WebKit::WebExtensionAPIWebNavigationEvent::listeners const):
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIWebNavigationEvent.idl: Use [NeedsPage] on the two methods that need the page.

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




More information about the webkit-changes mailing list