Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inspectable property to _WKWebExtensionContext. #7497

Merged
merged 1 commit into from Dec 12, 2022

Conversation

xeenon
Copy link
Contributor

@xeenon xeenon commented Dec 12, 2022

aeaa834

Add inspectable property to _WKWebExtensionContext.
https://bugs.webkit.org/show_bug.cgi?id=249158

Reviewed by Brian Weinstein.

Also fix some typos in other HeadDoc comments.

* Source/WebKit/UIProcess/API/Cocoa/_WKWebExtension.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContext.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContext.mm:
(-[_WKWebExtensionContext isInspectable]): Added.
(-[_WKWebExtensionContext setInspectable:]): Added.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::setInspectable): Added.
(WebKit::WebExtensionContext::loadBackgroundWebView): Set inspectable proeprty.
* Source/WebKit/UIProcess/Extensions/WebExtensionContext.h:
(WebKit::WebExtensionContext::isInspectable const): Added.

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

8befe62

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe
βœ… πŸ›  ios-sim   πŸ›  mac-AS-debug   πŸ›  gtk   πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2   πŸ§ͺ api-mac   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios   πŸ§ͺ mac-wk1   πŸ§ͺ api-gtk
  πŸ›  tv   πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim   πŸ§ͺ mac-AS-debug-wk2
  πŸ›  watch   πŸ§ͺ mac-wk2-stress
βœ… πŸ›  πŸ§ͺ unsafe-merge   πŸ›  watch-sim

@xeenon xeenon self-assigned this Dec 12, 2022
@xeenon xeenon added the WebKit Extensions Bugs related to extension support. label Dec 12, 2022
@xeenon xeenon added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Dec 12, 2022
@discussion A context can control multiple `WKWebView` instances, from the background content, to the popover.
You should set this to `YES` when needed for debugging purposes. The default value is `NO`.
*/
@property (nonatomic, getter=isInspectable) BOOL inspectable;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this property expose itself in Swift as isInspectable, or do we need to add NS_SWIFT_NAME(isInspectable) to match the inspectable property from JSContext and WKWebView? (During API review we had determined the inspectable was the correct property name for ObjC, and isInspectable was the correct property name for Swift).

https://bugs.webkit.org/show_bug.cgi?id=249158

Reviewed by Brian Weinstein.

Also fix some typos in other HeadDoc comments.

* Source/WebKit/UIProcess/API/Cocoa/_WKWebExtension.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContext.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContext.mm:
(-[_WKWebExtensionContext isInspectable]): Added.
(-[_WKWebExtensionContext setInspectable:]): Added.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::setInspectable): Added.
(WebKit::WebExtensionContext::loadBackgroundWebView): Set inspectable proeprty.
* Source/WebKit/UIProcess/Extensions/WebExtensionContext.h:
(WebKit::WebExtensionContext::isInspectable const): Added.

Canonical link: https://commits.webkit.org/257740@main
@webkit-commit-queue
Copy link
Collaborator

Committed 257740@main (aeaa834): https://commits.webkit.org/257740@main

Reviewed commits have been landed. Closing PR #7497 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Dec 12, 2022
@xeenon xeenon deleted the bug/249158 branch December 12, 2022 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Extensions Bugs related to extension support.
Projects
None yet
5 participants