<?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>230051</bug_id>
          
          <creation_ts>2021-09-08 09:59:23 -0700</creation_ts>
          <short_desc>Compat problem with new URL()</short_desc>
          <delta_ts>2021-09-15 10:19:51 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <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="Luke Warlow">lwarlow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1791510</commentid>
    <comment_count>0</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2021-09-08 09:59:23 -0700</bug_when>
    <thetext>Steps to reproduce the problem:
1. Navigate to https://jsfiddle.net/40abpv7d/
2. Look at the HTML output


I&apos;m not entirely sure on the correct behaviour. Chrome, Firefox and Safari all behave differently.

Chrome - https://%22google.com/
Safari - https://&quot;google.com/
Firefox - TypeError: URL constructor: https://&quot;google.com is not a valid URL.


As I say I&apos;m not sure if Chrome, Firefox or Safari is &quot;correct&quot; as far as the spec is concerned. But from what I as a web developer expect I would say that Firefox is the most correct, followed by Chrome. Safari&apos;s behaviour of outputting a non URL safe string surprises me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791511</commentid>
    <comment_count>1</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2021-09-08 09:59:46 -0700</bug_when>
    <thetext>Firefox Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1729733

Chrome Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1247709</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793737</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-15 10:00:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/83155604&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793745</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-09-15 10:19:51 -0700</bug_when>
    <thetext>According to https://url.spec.whatwg.org/#forbidden-host-code-point WebKit is correct here.  I look forward to other browsers either changing to match the spec or raising an issue with the spec for discussion.  It seems like Firefox intends to match the spec here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>