-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Expose _backgroundWebView, _backgroundContentURL and _backgroundContentIsServiceWorker as _WKWebExtension SPI. #8313
Conversation
EWS run on previous version of this PR (hash 2bbe682) |
@@ -35,6 +35,12 @@ NS_ASSUME_NONNULL_BEGIN | |||
*/ | |||
@property (nonatomic, getter=_inTestingMode, setter=_setTestingMode:) BOOL _testingMode; | |||
|
|||
/*! @abstract The extension background view used for the extension, or `nil` if the extension does not have background content or it is currently unloaded. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there certain files where we should use "`nil`" vs "\c nil"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The backticks work in this, just not @param
.
EWS run on current version of this PR (hash 63dc388) |
β¦ntIsServiceWorker as _WKWebExtension SPI. https://bugs.webkit.org/show_bug.cgi?id=250221 Reviewed by Brian Weinstein. * Source/WebKit/UIProcess/API/Cocoa/_WKWebExtension.mm: (-[_WKWebExtension _backgroundContentIsServiceWorker]): Added. * Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContext.mm: (-[_WKWebExtensionContext _backgroundWebView]): Added. (-[_WKWebExtensionContext _backgroundContentURL]): Added. * Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionContextPrivate.h: * Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionPrivate.h: * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm: (WebKit::WebExtensionContext::load): Added call to writeStateToStorage() to save the last base URL. (WebKit::WebExtensionContext::backgroundContentURL): Return a null URL instead of asserting. * Source/WebKit/UIProcess/Extensions/WebExtensionContext.h: (WebKit::WebExtensionContext::backgroundWebView const): Added. Canonical link: https://commits.webkit.org/258554@main
63dc388
to
0a3c1ae
Compare
Committed 258554@main (0a3c1ae): https://commits.webkit.org/258554@main Reviewed commits have been landed. Closing PR #8313 and removing active labels. |
0a3c1ae
63dc388
π§ͺ 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π watch-sim