<?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>18929</bug_id>
          
          <creation_ts>2008-05-07 13:53:17 -0700</creation_ts>
          <short_desc>Form submission sets queries on non-standard URLs</short_desc>
          <delta_ts>2008-05-07 13:53:17 -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>Forms</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Eric Roman">eroman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79840</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">eroman</who>
    <bug_when>2008-05-07 13:53:17 -0700</bug_when>
    <thetext>The &quot;query&quot; component can be set on non-standard urls like &quot;data:&quot; and &quot;about:blank&quot;.

I don&apos;t think that allowing this makes sense, and it shouldn&apos;t be a factor for web compatibility.

For example, if you set the &quot;query&quot; on a data:url it clobbers the first place where it matches a question mark -- this is meaningless and arbitrary, since that question mark may have been inside a javascript string, part of image data, etc...

There are several layout-tests that rely on this behavior. They implicitly set the query by submitting a GET form, whose action is a non-standard url.

// Sets query on data:urls. Very strange, but it looks like FF does this too (not to say it is correct though)
LayoutTests/fast/events/stopPropagation-submit.html

// Sets query on &quot;about:blank&quot;. Can conceivably make sense, but still inconsistent.
LayoutTests/http/tests/navigation/onload-navigation-iframe-timeout.html
LayoutTests/http/tests/navigation/onload-navigation-iframe.htm

(there is also LayoutTests/fast/forms/mailto/* which sets query on mailto:urls. these ones make sense though, since mailto by definition has a query component.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>