Bug 284834

Summary: localhost should not be affected by "Warn before connecting to a website over HTTP"
Product: WebKit Reporter: Anthony Ricaud <rik>
Component: New BugsAssignee: Matthew Finkel <m_finkel>
Status: NEW    
Severity: Normal CC: mohit.n, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=284559

Anthony Ricaud
Reported 2024-12-17 11:36:56 PST
Steps to reproduce: 1. Enable Warn before connecting to a website over HTTP 2. Launch a webserver (with `python -m http.server` as an exemple) 3. Type "localhost:8000" in the location bar Actual result: Safari displays the following error Safari can't open the page "http://localhost:3000/". The error is: "Navigation failed because the request was for an HTTP URL with HTTPS-Only enabled" (WebKitErrorDomain:305) Expected result: I can visit the page Extra notes: - If my webserver displays an address such as "http://localhost:8000", right clicking > Open link will also be blocked - If I manually type the full "http://localhost:8000" in the location bar, I can visit the page but I don't think that's a common thing to do - As a web developer, this is too disruptive to my workflow so I disabled that setting
Attachments
John Wilander
Comment 1 2024-12-17 13:02:46 PST
Thanks for filing!
Radar WebKit Bug Importer
Comment 2 2024-12-17 13:02:56 PST
Alexey Proskuryakov
Comment 3 2024-12-17 13:23:37 PST
This is very very similar to bug 284559.
Note You need to log in before you can comment on or make changes to this bug.