<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>284834</bug_id>
          
          <creation_ts>2024-12-17 11:36:56 -0800</creation_ts>
          <short_desc>localhost should not be affected by &quot;Warn before connecting to a website over HTTP&quot;</short_desc>
          <delta_ts>2024-12-17 20:43:10 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Safari 18</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=284559</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anthony Ricaud">rik</reporter>
          <assigned_to name="Matthew Finkel">m_finkel</assigned_to>
          <cc>mohit.n</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2082410</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2024-12-17 11:36:56 -0800</bug_when>
    <thetext>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 &quot;localhost:8000&quot; in the location bar

Actual result:
Safari displays the following error
Safari can&apos;t open the page &quot;http://localhost:3000/&quot;. The error is: &quot;Navigation failed because the request was for an HTTP URL with HTTPS-Only enabled&quot; (WebKitErrorDomain:305)

Expected result:
I can visit the page

Extra notes:
- If my webserver displays an address such as &quot;http://localhost:8000&quot;, right clicking &gt; Open link will also be blocked
- If I manually type the full &quot;http://localhost:8000&quot; in the location bar, I can visit the page but I don&apos;t think that&apos;s a common thing to do
- As a web developer, this is too disruptive to my workflow so I disabled that setting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082438</commentid>
    <comment_count>1</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2024-12-17 13:02:46 -0800</bug_when>
    <thetext>Thanks for filing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082439</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-17 13:02:56 -0800</bug_when>
    <thetext>&lt;rdar://problem/141635296&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082449</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-12-17 13:23:37 -0800</bug_when>
    <thetext>This is very very similar to bug 284559.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>