<?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>30788</bug_id>
          
          <creation_ts>2009-10-26 13:54:12 -0700</creation_ts>
          <short_desc>HistoryController does not handle some opaque URLs correctly</short_desc>
          <delta_ts>2016-02-05 03:20:52 -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>History</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>30724</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Alejandro G. Castro">alex</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>sam</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157905</commentid>
    <comment_count>0</comment_count>
      <attachid>41890</attachid>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2009-10-26 13:54:12 -0700</bug_when>
    <thetext>Created attachment 41890
Test reproducing the problem

This bug comes from the bug 30724, in the comment 2 it is explained the situation that is currently causing problems with the gtk+ DRT when testing opaque-base-url.html, but that it seems it could be reproduced with the test attached to this bug in other platforms. I&apos;ve added the main authors of the opaque-base-url.html test to the CC, thanks in advance for the help.

The test tries to reproduce the error in other platforms, not just gtk+, trying to do a similar action done in the gtk+ DRT. Basically this kind of opaque urls are causing problems when the state is saved in the HistoryController, it is checked if that item is in current document and that tries to create a URL using an opaque URL that hits the checkEncodedString assertion about the first character in an url. I guess even this being an invalid URL (we should remove that from the opaque test then) we should handle the situation without reaching the assertion.

Can someone check the test with other platforms and see if the problem is there? I guess the patch should control the current document condition in case of this kind of opaque URLs, not sure if just avoiding saving or setting as current because there is not URL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>165356</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2009-11-20 10:45:40 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Created an attachment (id=41890) [details]
&gt; Test reproducing the problem
&gt; 
&gt; This bug comes from the bug 30724, in the comment 2 it is explained the
&gt; situation that is currently causing problems with the gtk+ DRT when testing
&gt; opaque-base-url.html, but that it seems it could be reproduced with the test
&gt; attached to this bug in other platforms. I&apos;ve added the main authors of the
&gt; opaque-base-url.html test to the CC, thanks in advance for the help.
&gt;

The html code is this, I&apos;ll try to check the assertion:

&lt;script&gt;
if (window.layoutTestController) {
  layoutTestController.dumpAsText();
  layoutTestController.queueReload();
}
&lt;/script&gt;

&lt;iframe frameborder=0 src=&quot;data:text/html,&lt;iframe frameborder=0 src=&apos;&lt;p&gt;FAILURE&lt;/p&gt;&apos; width=10 height=10&gt;&lt;/iframe&gt;&quot;&gt;&lt;/iframe&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162368</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2016-02-05 03:20:52 -0800</bug_when>
    <thetext>The test is nowadays passing, closing the bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>41890</attachid>
            <date>2009-10-26 13:54:12 -0700</date>
            <delta_ts>2009-10-26 13:54:12 -0700</delta_ts>
            <desc>Test reproducing the problem</desc>
            <filename>reload-opaque-url.html</filename>
            <type>text/html</type>
            <size>258</size>
            <attacher name="Alejandro G. Castro">alex</attacher>
            
              <data encoding="base64">CjxzY3JpcHQ+CmlmICh3aW5kb3cubGF5b3V0VGVzdENvbnRyb2xsZXIpIHsKICBsYXlvdXRUZXN0
Q29udHJvbGxlci5kdW1wQXNUZXh0KCk7CiAgbGF5b3V0VGVzdENvbnRyb2xsZXIucXVldWVSZWxv
YWQoKTsKfQo8L3NjcmlwdD4KCjxpZnJhbWUgZnJhbWVib3JkZXI9MCBzcmM9ImRhdGE6dGV4dC9o
dG1sLDxpZnJhbWUgZnJhbWVib3JkZXI9MCBzcmM9JzxwPkZBSUxVUkU8L3A+JyB3aWR0aD0xMCBo
ZWlnaHQ9MTA+PC9pZnJhbWU+Ij48L2lmcmFtZT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>