<?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>46465</bug_id>
          
          <creation_ts>2010-09-24 07:23:42 -0700</creation_ts>
          <short_desc>[Qt] QtTestBrowser defaultUrl does not work</short_desc>
          <delta_ts>2010-09-24 10:08:29 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chang Shu">cshu</reporter>
          <assigned_to name="Chang Shu">cshu</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>kling</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>284366</commentid>
    <comment_count>0</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-09-24 07:23:42 -0700</bug_when>
    <thetext>QtTestBrowser is capable of loading a local index.html by default. However, it is broken now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284375</commentid>
    <comment_count>1</comment_count>
      <attachid>68678</attachid>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-09-24 07:41:57 -0700</bug_when>
    <thetext>Created attachment 68678
fix patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284408</commentid>
    <comment_count>2</comment_count>
      <attachid>68678</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-24 08:51:41 -0700</bug_when>
    <thetext>Comment on attachment 68678
fix patch

LGTM, r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284410</commentid>
    <comment_count>3</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-09-24 08:53:32 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 68678 [details])
&gt; LGTM, r=me

thanks for the quick review!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284417</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-09-24 09:02:31 -0700</bug_when>
    <thetext>&gt; [Qt] Fix the code to check file existence.

In the future, please write more detailed ChangeLogs.

Example:

&gt; [Qt] Fix loading of the default URL (~/index.html) in QtTestBrowser
&gt; 
&gt; We were erroneously checking for the presence of a *directory* called index.html in the user&apos;s
&gt; home directory. Correct this by using QFile::exists() instead of QDir::exists().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284422</commentid>
    <comment_count>5</comment_count>
      <attachid>68678</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-24 09:10:53 -0700</bug_when>
    <thetext>Comment on attachment 68678
fix patch

Clearing flags on attachment: 68678

Committed r68259: &lt;http://trac.webkit.org/changeset/68259&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284423</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-24 09:10:58 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284427</commentid>
    <comment_count>7</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-09-24 09:13:27 -0700</bug_when>
    <thetext>Hum I think this is kinda useless :-( Is anyone leaving an index.html file in the home root dir for testing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284428</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-24 09:21:48 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; &gt; [Qt] Fix the code to check file existence.
&gt; 
&gt; In the future, please write more detailed ChangeLogs.
&gt; 
&gt; Example:
&gt; 
&gt; &gt; [Qt] Fix loading of the default URL (~/index.html) in QtTestBrowser
&gt; &gt; 
&gt; &gt; We were erroneously checking for the presence of a *directory* called index.html in the user&apos;s
&gt; &gt; home directory. Correct this by using QFile::exists() instead of QDir::exists().

It is a very simple fix, it&apos;s trivial to understand what was wrong.
I don&apos;t think if we needed so detailed changelog what you mentioned.
But I agree detailed comments are always welcome.



(In reply to comment #7)
&gt; Hum I think this is kinda useless :-( Is anyone leaving an index.html file in the home root dir for testing?
Not at all. Previously I used this feature. :)
It is good for lazy peoples. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284471</commentid>
    <comment_count>9</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-09-24 10:08:29 -0700</bug_when>
    <thetext>&gt; (In reply to comment #7)
&gt; &gt; Hum I think this is kinda useless :-( Is anyone leaving an index.html file in the home root dir for testing?
&gt; Not at all. Previously I used this feature. :)
&gt; It is good for lazy peoples. :)
Right. :) The test browser does not have bookmarks. And typing in the url eidtor is kind of painful, especially on the phone.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>68678</attachid>
            <date>2010-09-24 07:41:57 -0700</date>
            <delta_ts>2010-09-24 09:10:53 -0700</delta_ts>
            <desc>fix patch</desc>
            <filename>46465_1.patch</filename>
            <type>text/plain</type>
            <size>1333</size>
            <attacher name="Chang Shu">cshu</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09P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gUVN0cmluZygi
ZmlsZTovLyUxLyUyIikuYXJnKFFEaXI6OmhvbWVQYXRoKCkpLmFyZyhRTGF0aW4xU3RyaW5nKCJp
bmRleC5odG1sIikpOwotICAgICAgICBpZiAoUURpcihkZWZhdWx0VXJsKS5leGlzdHMoKSkKLSAg
ICAgICAgICAgIHVybHMuYXBwZW5kKGRlZmF1bHRVcmwpOworICAgICAgICBRU3RyaW5nIGRlZmF1
bHRJbmRleEZpbGUgPSBRU3RyaW5nKCIlMS8lMiIpLmFyZyhRRGlyOjpob21lUGF0aCgpKS5hcmco
UUxhdGluMVN0cmluZygiaW5kZXguaHRtbCIpKTsKKyAgICAgICAgaWYgKFFGaWxlKGRlZmF1bHRJ
bmRleEZpbGUpLmV4aXN0cygpKQorICAgICAgICAgICAgdXJscy5hcHBlbmQoUVN0cmluZygiZmls
ZTovLyIpICsgZGVmYXVsdEluZGV4RmlsZSk7CiAgICAgICAgIGVsc2UKICAgICAgICAgICAgIHVy
bHMuYXBwZW5kKCIiKTsKICAgICB9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>