Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6a8b47a0b0f08c0ca508bc3e2b14642ba136c280
      
https://github.com/WebKit/WebKit/commit/6a8b47a0b0f08c0ca508bc3e2b14642ba136c280
  Author: Jamie Murphy <[email protected]>
  Date:   2025-10-02 (Thu, 02 Oct 2025)

  Changed paths:
    M Source/WebCore/en.lproj/Localizable.strings
    M Source/WebKit/UIProcess/API/Cocoa/WKWebExtensionContext.mm
    M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm
    M Source/WebKit/UIProcess/Extensions/WebExtensionContext.cpp
    M Source/WebKit/UIProcess/Extensions/WebExtensionContext.h

  Log Message:
  -----------
  Port WebExtensionContext Background and Inspector functions to C++
https://bugs.webkit.org/show_bug.cgi?id=300009

Reviewed by Timothy Hatcher.

Port some general BackgroundWebView and Inspector functions to C++. These 
functions generally don't interact with the actual WebView or Inspectors 
themselves, they instead provide an API for the functions that do.
Those functions cannot be ported, but having these generic functions ported 
will make it easier to create a port of WebExtensionContext for other platforms

No tests are required, existing test coverage should catch these changes
* Source/WebCore/en.lproj/Localizable.strings:
* Source/WebKit/UIProcess/API/Cocoa/WKWebExtensionContext.mm:
(-[WKWebExtensionContext inspectionName]):
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::loadBackgroundWebView):
(WebKit::WebExtensionContext::isNotRunningInTestRunner):
(WebKit::WebExtensionContext::backgroundContentURL): Deleted.
(WebKit::WebExtensionContext::loadBackgroundContent): Deleted.
(WebKit::WebExtensionContext::loadBackgroundWebViewDuringLoad): Deleted.
(WebKit::WebExtensionContext::backgroundWebViewInspectionName): Deleted.
(WebKit::isNotRunningInTestRunner): Deleted.
(WebKit::WebExtensionContext::scheduleBackgroundContentToUnload): Deleted.
(WebKit::WebExtensionContext::wakeUpBackgroundContentIfNecessary): Deleted.
(WebKit::WebExtensionContext::wakeUpBackgroundContentIfNecessaryToFireEvents): 
Deleted.
(WebKit::WebExtensionContext::inspectorBackgroundPageURL const): Deleted.
(WebKit::WebExtensionContext::inspector const): Deleted.
* Source/WebKit/UIProcess/Extensions/WebExtensionContext.cpp:
(WebKit::WebExtensionContext::backgroundContentURL):
(WebKit::WebExtensionContext::loadBackgroundContent):
(WebKit::WebExtensionContext::loadBackgroundWebViewDuringLoad):
(WebKit::WebExtensionContext::isBackgroundPage const):
(WebKit::WebExtensionContext::backgroundWebViewInspectionName):
(WebKit::WebExtensionContext::wakeUpBackgroundContentIfNecessary):
(WebKit::WebExtensionContext::wakeUpBackgroundContentIfNecessaryToFireEvents):
(WebKit::WebExtensionContext::inspectorBackgroundPageURL const):
(WebKit::WebExtensionContext::inspector const):
* Source/WebKit/UIProcess/Extensions/WebExtensionContext.h:
(WebKit::WebExtensionContext::backgroundWebView const):
(WebKit::WebExtensionContext::safeToLoadBackgroundContent const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to