<?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>38634</bug_id>
          
          <creation_ts>2010-05-06 02:14:04 -0700</creation_ts>
          <short_desc>[Qt] QWebFrame::setHtml doesn&apos;t emit loadFinished signal</short_desc>
          <delta_ts>2011-02-10 03:58:24 -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>WebKit Qt</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>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jędrzej Nowacki">jedrzej.nowacki</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>jedrzej.nowacki</cc>
    
    <cc>kasthuri.n-s</cc>
    
    <cc>kenneth</cc>
    
    <cc>laszlo.gombos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>221587</commentid>
    <comment_count>0</comment_count>
      <attachid>55219</attachid>
    <who name="Jędrzej Nowacki">jedrzej.nowacki</who>
    <bug_when>2010-05-06 02:14:04 -0700</bug_when>
    <thetext>Created attachment 55219
Proposed autotest

The method should emit the signal for all types of html code. For now, It seems that the signal is emitted only for a html containing external resources, which is slightly inconsistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>344933</commentid>
    <comment_count>1</comment_count>
    <who name="kasthuri">kasthuri.n-s</who>
    <bug_when>2011-02-03 12:46:28 -0800</bug_when>
    <thetext>Tried to reproduce with latest version of webkit trunk and the signal is emitted properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345398</commentid>
    <comment_count>2</comment_count>
    <who name="Jędrzej Nowacki">jedrzej.nowacki</who>
    <bug_when>2011-02-04 00:19:52 -0800</bug_when>
    <thetext>Thanks for trying!

Hmm, few months ago we had discussion about this bug. Apparently it was received as a feature not an issue. If I remember correctly that was the only way for a browser to set an error / warning page without polluting history. So if it works now, then something may be broken too :(

Personally I don&apos;t like this kinds of side effects &amp; hacks. I would love to see cleaner API here.

Kenneth, is the usecase valid?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345486</commentid>
    <comment_count>3</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-02-04 07:44:10 -0800</bug_when>
    <thetext>
&gt; Hmm, few months ago we had discussion about this bug. Apparently it was received as a feature not an issue. If I remember correctly that was the only way for a browser to set an error / warning page without polluting history. So if it works now, then something may be broken too :(

setHTML does not affect back/forward history, that is correct.

&gt; Personally I don&apos;t like this kinds of side effects &amp; hacks. I would love to see cleaner API here.
&gt; 
&gt; Kenneth, is the usecase valid?

I am not kenneth, but I guess it is valid :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345738</commentid>
    <comment_count>4</comment_count>
    <who name="kasthuri">kasthuri.n-s</who>
    <bug_when>2011-02-04 13:23:56 -0800</bug_when>
    <thetext>ok, since I wasn&apos;t aware of the history, I just tried with a simple qt app which uses qwebview and calls setHtml() function of mainFrame.  In that app I got the loadFinished signal.  So do you have a writeup somewhere of the requirement so that I can understand it better? Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347697</commentid>
    <comment_count>5</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2011-02-08 14:41:28 -0800</bug_when>
    <thetext>Kasthuri, can you apply the patch and see if the test is still passing ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348616</commentid>
    <comment_count>6</comment_count>
      <attachid>81881</attachid>
    <who name="kasthuri">kasthuri.n-s</who>
    <bug_when>2011-02-09 15:05:50 -0800</bug_when>
    <thetext>Created attachment 81881
patch to check loadFinished signal

The proposed test modification was connecting for the loadFinished signal after calling setHtml() api which resulted in missing the signal for simple html files.
Hence the test was failing.  Updated the test to check for the loadFinished signal using QSignalSpy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348790</commentid>
    <comment_count>7</comment_count>
      <attachid>81881</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-02-09 20:42:42 -0800</bug_when>
    <thetext>Comment on attachment 81881
patch to check loadFinished signal

ok</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348925</commentid>
    <comment_count>8</comment_count>
      <attachid>81881</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-10 03:58:19 -0800</bug_when>
    <thetext>Comment on attachment 81881
patch to check loadFinished signal

Clearing flags on attachment: 81881

Committed r78192: &lt;http://trac.webkit.org/changeset/78192&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348926</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-10 03:58:24 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>55219</attachid>
            <date>2010-05-06 02:14:04 -0700</date>
            <delta_ts>2010-05-06 02:14:04 -0700</delta_ts>
            <desc>Proposed autotest</desc>
            <filename>tsts.diff</filename>
            <type>application/octet-stream</type>
            <size>561</size>
            <attacher name="Jędrzej Nowacki">jedrzej.nowacki</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9xdC90ZXN0cy9xd2ViZnJhbWUvdHN0X3F3ZWJmcmFtZS5jcHAg
Yi9XZWJLaXQvcXQvdGVzdHMvcXdlYmZyYW1lL3RzdF9xd2ViZnJhbWUuY3BwCmluZGV4IGJlYTdh
NjcuLjZjY2JmOTEgMTAwNjQ0Ci0tLSBhL1dlYktpdC9xdC90ZXN0cy9xd2ViZnJhbWUvdHN0X3F3
ZWJmcmFtZS5jcHAKKysrIGIvV2ViS2l0L3F0L3Rlc3RzL3F3ZWJmcmFtZS90c3RfcXdlYmZyYW1l
LmNwcApAQCAtMjQxNCw2ICsyNDE0LDcgQEAgdm9pZCB0c3RfUVdlYkZyYW1lOjpzZXRIdG1sKCkK
IHsKICAgICBRU3RyaW5nIGh0bWwoIjxodG1sPjxoZWFkPjwvaGVhZD48Ym9keT48cD5oZWxsbyB3
b3JsZDwvcD48L2JvZHk+PC9odG1sPiIpOwogICAgIG1fdmlldy0+cGFnZSgpLT5tYWluRnJhbWUo
KS0+c2V0SHRtbChodG1sKTsKKyAgICBRVkVSSUZZKHdhaXRGb3JTaWduYWwobV92aWV3LT5wYWdl
KCksIFNJR05BTChsb2FkRmluaXNoZWQoYm9vbCkpLCAxMDAwKSk7CiAgICAgUUNPTVBBUkUobV92
aWV3LT5wYWdlKCktPm1haW5GcmFtZSgpLT50b0h0bWwoKSwgaHRtbCk7CiB9CiAK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81881</attachid>
            <date>2011-02-09 15:05:50 -0800</date>
            <delta_ts>2011-02-10 03:58:19 -0800</delta_ts>
            <desc>patch to check loadFinished signal</desc>
            <filename>tst_qwebframe_changes.patch</filename>
            <type>text/plain</type>
            <size>1797</size>
            <attacher name="kasthuri">kasthuri.n-s</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvcXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJj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KCks
IGh0bWwpOworICAgIFFDT01QQVJFKHNweS5jb3VudCgpLCAxKTsKIH0KIAogdm9pZCB0c3RfUVdl
YkZyYW1lOjpzZXRIdG1sV2l0aFJlc291cmNlKCkK
</data>

          </attachment>
      

    </bug>

</bugzilla>