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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19996</bug_id>
          
          <creation_ts>2012-11-18 07:04:50 +0000</creation_ts>
          <short_desc>File URI handling - &apos;localhost&apos; domain usage should be avoided</short_desc>
          <delta_ts>2013-11-21 05:27:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>URL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael A. Puls II">shadow2531</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78449</commentid>
    <comment_count>0</comment_count>
    <who name="Michael A. Puls II">shadow2531</who>
    <bug_when>2012-11-18 07:04:50 +0000</bug_when>
    <thetext>&lt;http://my.opera.com/operawiki/forums/topic.dml?id=1132462&gt;

Opera&apos;s use of file://localhost/ instead of file:/// has been a major compatibility problem with NPAPI plug-ins and external programs.

Given those problems and that no other browser uses &apos;localhost&apos;, using file://localhost/ should be invalid or heavily discouraged.

The link mentions Opera bug CORE-40495, but CORE-5928 and CORE-12340 are a few more examples (but far from all).

The only thing mentioning file://localhost/ is &lt;http://tools.ietf.org/id/draft-hoffman-file-uri-03.txt&gt;, so Opera probably gets its behavior from that. But, no other browser (and very few programs) use it, so the RFC should be ignored and no browser should use file://localhost/ when file:/// works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96592</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-20 15:53:53 +0000</bug_when>
    <thetext>The specification does not mention the weird localhost behavior which should be sufficient I think. Only implement that what is required. Everything else is forbidden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96623</commentid>
    <comment_count>2</comment_count>
    <who name="Michael A. Puls II">shadow2531</who>
    <bug_when>2013-11-21 05:27:30 +0000</bug_when>
    <thetext>Sounds good.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>