Summary: | Need a way to allow WKWebView to load request with ShouldOpenExternalURLsPolicy::ShouldAllow. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yongjun Zhang <yongjun_zhang> | ||||||
Component: | WebKit2 | Assignee: | Yongjun Zhang <yongjun_zhang> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | achristensen, andersca, bdakin, beidson, commit-queue, ggaren, mitz, sam, thorton, yongjun_zhang | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Yongjun Zhang
2017-05-22 12:03:03 PDT
Created attachment 310898 [details]
Patch.
Comment on attachment 310898 [details]
Patch.
Sure, but I see no reason why this SPI should be iOS-only.
(In reply to Alex Christensen from comment #3) > Comment on attachment 310898 [details] > Patch. > > Sure, but I see no reason why this SPI should be iOS-only. Currently, this is only needed for iOS. We can certainly expand this to macOS if needed in the future. We did have the C SPI version in WKPagePrivate.h WKPageLoadURLWithShouldOpenExternalURLsPolicy, and it seems like no one is using it right now. (In reply to Yongjun Zhang from comment #4) > (In reply to Alex Christensen from comment #3) > > Comment on attachment 310898 [details] > > Patch. > > > > Sure, but I see no reason why this SPI should be iOS-only. > > Currently, this is only needed for iOS. We can certainly expand this to > macOS if needed in the future. This isn't how we should add things to a cross-platform framework. We should add to both platforms unless we have a good reason *not* to. > We did have the C SPI version in WKPagePrivate.h > WKPageLoadURLWithShouldOpenExternalURLsPolicy, and it seems like no one is > using it right now. Created attachment 310922 [details]
Patch, add this SPI for both iOS and macOS.
Address review comment, adding _loadRequest:shouldOpenExternalURLs: as an SPI for both iOS and macOS.
Comment on attachment 310922 [details] Patch, add this SPI for both iOS and macOS. Clearing flags on attachment: 310922 Committed r217252: <http://trac.webkit.org/changeset/217252> All reviewed patches have been landed. Closing bug. |