Bug 246045 - When searching a domain with only https available. Browser will try loading http first, fail and won't load https (Even if upgrade connections to HTTPS is set to true).
Summary: When searching a domain with only https available. Browser will try loading h...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-04 15:55 PDT by erwan.joly
Modified: 2022-10-11 15:56 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description erwan.joly 2022-10-04 15:55:21 PDT
Brave github issue suggested it's a webkit issue https://github.com/brave/brave-ios/issues/6098

Description:
When searching a domain with only https available. Browser will try loading http first, fail and won't load https (Even if upgrade connections to HTTPS is set to true).
Only way to make it load https is to specify it in the URL. https schema should be the default not http

Steps to Reproduce
search for an URL with only HTTPS available example marketracoon.com
enjoy the error this site can't be reached
search for https://marketracoon.com notice it is up
Actual result:
this site can't be reached

Expected result:
The browser should not default to http but https (even more in this case as Upgrade Connections to HTTPS is set to true)

Reproduces how often:
Everytime I look at a page that does not have HTTP support but has HTTPS support (aws api gateway with regional domains websites).

Brave Version:
1.43 (22.9.9.14)

Device details:
Iphone 12 Pro max iOS 16.0
Comment 1 Alexey Proskuryakov 2022-10-04 18:55:46 PDT
WebKit doesn't have the logic to try https when connection on port 80 is refused, and probably shouldn't, because that's trivial to implement in a browser, and not necessarily appropriate for every other embedder.

We do have upgradeKnownHostsToHTTPS on WKWebViewConfiguration, but marketracoon.com is not currently on the known list. And that's only about known hosts, not about retrying.
Comment 2 Radar WebKit Bug Importer 2022-10-11 15:56:39 PDT
<rdar://problem/101054820>