<?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>127958</bug_id>
          
          <creation_ts>2014-01-30 15:04:59 -0800</creation_ts>
          <short_desc>Making URL stop treating an assigned empty port as &quot;0&quot; instead of &quot;&quot;</short_desc>
          <delta_ts>2023-08-23 00:22:38 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>128023</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Maciej Stachowiak">mjs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>syoichi</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>974043</commentid>
    <comment_count>0</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2014-01-30 15:04:59 -0800</bug_when>
    <thetext>Making URL stop treating an assigned empty port as &quot;0&quot; instead of &quot;&quot;. Other browsers don&apos;t do it and it&apos;s probably wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1603503</commentid>
    <comment_count>1</comment_count>
    <who name="akirk">webkit</who>
    <bug_when>2020-01-07 02:39:21 -0800</bug_when>
    <thetext>The spec (https://url.spec.whatwg.org/#dom-url-port) actually says this:

&gt; If the given value is the empty string, then set context object’s url’s port to null.
And in the getter:

&gt; If context object’s url’s port is null, return the empty string.
So in my opinion this needs to be changed to what the other browsers implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972920</commentid>
    <comment_count>2</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-08-23 00:22:38 -0700</bug_when>
    <thetext>From our text expectation files:

PASS URL: Setting &lt;http://example.net:8080&gt;.port = &apos;&apos; Port number is removed if empty is the new value</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>