Bug 225154

Summary: Add SPI to query whether a URL would be upgraded to HTTPS
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Alex Christensen 2021-04-28 09:57:00 PDT
Add SPI to query whether a URL would be upgraded to HTTPS
Comment 1 Alex Christensen 2021-04-28 09:57:59 PDT
Created attachment 427271 [details]
Patch
Comment 2 Alex Christensen 2021-04-28 09:58:02 PDT
<rdar://problem/77269904>
Comment 3 Geoffrey Garen 2021-04-28 10:03:28 PDT
Comment on attachment 427271 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=427271&action=review

r=me -- but let's consider another name

> Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:249
> ++ (BOOL)_shouldUpgradeToHTTPS:(NSURL *)url WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));

I think I would call this _willUpgradeToHTTPS, since it's a question about what the WebView will do.
Comment 4 Alex Christensen 2021-04-28 10:06:14 PDT
Created attachment 427274 [details]
Patch
Comment 5 Alex Christensen 2021-04-28 12:00:41 PDT
r276727