<?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>49650</bug_id>
          
          <creation_ts>2010-11-17 00:56:27 -0800</creation_ts>
          <short_desc>REGRESSION: [Qt] QNetworkReply delivered by the unsupportedContent() signal does not contain downloaded data</short_desc>
          <delta_ts>2011-08-18 07:01:01 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>frank.fischer</reporter>
          <assigned_to name="Andreas Kling">kling</assigned_to>
          <cc>adawit</cc>
    
    <cc>ademar</cc>
    
    <cc>benjamin</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>frank.fischer</cc>
    
    <cc>jhanssen</cc>
    
    <cc>kling</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>luiz</cc>
    
    <cc>markus</cc>
    
    <cc>menard</cc>
    
    <cc>peter.hartmann</cc>
    
    <cc>sfcheng</cc>
    
    <cc>zecke</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>310156</commentid>
    <comment_count>0</comment_count>
    <who name="">frank.fischer</who>
    <bug_when>2010-11-17 00:56:27 -0800</bug_when>
    <thetext>It&apos;s not possible to get any data except meta data from the reply submitted with the unsupportedContent(QNetworkReply*) Signal since Qt 4.7.

USECASE:

- configure a webview to forward unsupported content
- connect the signal with a propper slot
- open the webview
- klick on a download link (something with mime type &quot;application/octet-stream&quot; for example)
- if the debugging steps into the slot connected to the unsupported content signal only meta data are available (not bad so far)
- in the slot wait for finishing the reply (takes longer then usual as if no the reply does not have a connection anymore)
- after the reply finished reply-&gt;size() will return 0 and also reply-&gt;header(QNetworkRequest::ContentLengthHeader) will return 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>310219</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-11-17 05:33:58 -0800</bug_when>
    <thetext>Could you please attach a simple test case so we can run in and just start to debug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>310260</commentid>
    <comment_count>2</comment_count>
      <attachid>74109</attachid>
    <who name="">frank.fischer</who>
    <bug_when>2010-11-17 07:06:32 -0800</bug_when>
    <thetext>Created attachment 74109
3 src files containing a little usecase for the bug

Here is a little test case provided with workaround (commented out).

The problem is that this workaround only works for &quot;GET&quot; requests. But I expect some unsupportedContent after &quot;POST&quot; or &quot;PUT&quot; requests. Moreover I find it bad style to request twice the same just because the first request does not what it&apos;s expected to do.

Until Qt 4.6.3 this worked fine without workaround and all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>310277</commentid>
    <comment_count>3</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-11-17 07:44:55 -0800</bug_when>
    <thetext>Moving to P1, quite a bad regression.

Downloading the package of http://qt.nokia.com/downloads/qt-creator-source-package does not work.
It might be a QNAM problem, I have no problem with KIO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331623</commentid>
    <comment_count>4</comment_count>
    <who name="Jan Erik Hanssen">jhanssen</who>
    <bug_when>2011-01-10 07:43:55 -0800</bug_when>
    <thetext>Initial investigation shows that the problem is related to the move from QueuedConnection to AutoConnection in QNetworkReplyHandler.cpp. The issue is that when DirectConnection is being used, QWebPage::unsupportedContent(QNetworkReply*) is being emitted in a slot connected to QTcpSocket::readyRead(). But if you open a modal dialog or just use a QEventLoop then the readyRead() signal emission won&apos;t return and thus the tcp packet is not ACK&apos;ed.

I&apos;m not really sure how to solve this, not even sure it can be solved in WebKit without going back to QueuedConnection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331691</commentid>
    <comment_count>5</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-01-10 10:43:07 -0800</bug_when>
    <thetext>Adding Holger, he knows those stuffs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331700</commentid>
    <comment_count>6</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2011-01-10 10:49:46 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Adding Holger, he knows those stuffs.

Tricky. I don&apos;t have a fast answer and will need to take a look at it, I will try to find some time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>336804</commentid>
    <comment_count>7</comment_count>
    <who name="Stephen">sfcheng</who>
    <bug_when>2011-01-19 14:27:46 -0800</bug_when>
    <thetext>I am probably having the same problem here. I am implementing my own download manager by handling QWebPage::unsupportContent(QNetworkReply *reply). If I add a modal dialog in the handler to obtain the download confirmation with the user, the reply object will be no longer return any data. reply-&gt;isFinished() will return true after that. 

If no dialog is shown and I directly proceed to download the file, everything is fine. 

The same problem happens if I add some time delay with app event loop processing in the middle, for example:

    int nMilSeconds=100;
    QTime dieTime = QTime::currentTime().addMSecs(nMilSeconds);
    while( QTime::currentTime() &lt; dieTime )
    {
        qApp-&gt;sendPostedEvents();
        qApp-&gt;processEvents(QEventLoop::AllEvents,nMilSeconds);
    }

Jan, could you confirm whether this is the same problem as what you described? Have you guys have any update or workaround on this?

Thanks a lot.
Stephen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>337023</commentid>
    <comment_count>8</comment_count>
    <who name="Jan Erik Hanssen">jhanssen</who>
    <bug_when>2011-01-19 18:30:51 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; Jan, could you confirm whether this is the same problem as what you described? Have you guys have any update or workaround on this?

That does sound like the same issue, yes.

If you control your local WebKit source then you could always revert to using QueuedConnection in QNetworkReplyHandler.cpp, I believe the change to AutoConnection was done for performance reasons and you should have no other issues with doing this than things getting a bit slower.

Another possible solution (though I can&apos;t say for sure this will work) could be to not open your dialog in a slot connected to unsupportContent(), but instead do a queued slot invokation (e.g. using a single-shot timer) and do the dialog execution there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338662</commentid>
    <comment_count>9</comment_count>
    <who name="Stephen">sfcheng</who>
    <bug_when>2011-01-22 19:55:11 -0800</bug_when>
    <thetext>Jan, I tried your proposal of using a queued slot but it didn&apos;t work. Even if I convert the modal dialog into a non-modal dialog and initiate the file download when the dialog is closed, the reply object gets closed. Only if I hook proper receiving slots to signals such as readyRead(),finished(), downloadProgress() first (i.e., we are actually starting the download) and then show a modal dialog, the download goes fine. I guess when the app event loop starts and there are no receiving slots for the reply connection, the connection is automatically closed. If there is way to postpone processing events and signals from the reply connection object while keep pumping other app events, that&apos;d work as well. I am still pretty green to QT and am not aware of such advanced techniques. 

I really would like to inform the user first before actually burning the bandwidth. I hope you guys can find some effective to resolve this issue in the next Qt release. 

Thanks a lot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338698</commentid>
    <comment_count>10</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-01-23 08:37:07 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; Jan, I tried your proposal of using a queued slot [...]

This is no place to ask for support, especially to Jan Erik who is a benevolent contributor.

You are free to comment if want to help fixing this in WebKit, but please use the forum (http://developer.qt.nokia.com/forums/viewforum/21/ ) to get workaround and the like.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370130</commentid>
    <comment_count>11</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-03-19 08:34:47 -0700</bug_when>
    <thetext>Taking and blocking 2.2 release on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370134</commentid>
    <comment_count>12</comment_count>
      <attachid>86264</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-03-19 08:59:32 -0700</bug_when>
    <thetext>Created attachment 86264
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370326</commentid>
    <comment_count>13</comment_count>
      <attachid>86264</attachid>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-03-21 04:19:25 -0700</bug_when>
    <thetext>Comment on attachment 86264
Proposed patch

Looks good to me : r+</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370330</commentid>
    <comment_count>14</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2011-03-21 04:42:36 -0700</bug_when>
    <thetext>No unit test? sorry to be the pain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378728</commentid>
    <comment_count>15</comment_count>
      <attachid>86264</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-04-04 04:27:53 -0700</bug_when>
    <thetext>Comment on attachment 86264
Proposed patch

What about testing with a custom QNam? This sounds like regression invitation otherwise. Some dude will come in two years, think this queued signal is legacy and remove it. :-D</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>384001</commentid>
    <comment_count>16</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-04-12 07:51:32 -0700</bug_when>
    <thetext>Righto. This should be fixed in Qt, reported: http://bugreports.qt.nokia.com/browse/QTBUG-18718

Leaving this open to track progress.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412819</commentid>
    <comment_count>17</comment_count>
    <who name="Luiz Agostini">luiz</who>
    <bug_when>2011-05-31 13:26:11 -0700</bug_when>
    <thetext>It seems to be a big problem that we should solve for QtWebKit-2.2.
Don&apos;t you think that we should land the proposed patch until the problem is properly solved in QNAM?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412839</commentid>
    <comment_count>18</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-05-31 13:55:21 -0700</bug_when>
    <thetext>(In reply to comment #17)
&gt; It seems to be a big problem that we should solve for QtWebKit-2.2.
&gt; Don&apos;t you think that we should land the proposed patch until the problem is properly solved in QNAM?

You are right, we should do that.

I suggest to push that in trunk with a comment mentioning http://bugreports.qt.nokia.com/browse/QTBUG-18718
Then we cherry pick to 2.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412914</commentid>
    <comment_count>19</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-05-31 15:11:33 -0700</bug_when>
    <thetext>(In reply to comment #18)
&gt; (In reply to comment #17)
&gt; &gt; It seems to be a big problem that we should solve for QtWebKit-2.2.
&gt; &gt; Don&apos;t you think that we should land the proposed patch until the problem is properly solved in QNAM?
&gt; 
&gt; You are right, we should do that.
&gt; 
&gt; I suggest to push that in trunk with a comment mentioning http://bugreports.qt.nokia.com/browse/QTBUG-18718
&gt; Then we cherry pick to 2.2.

Candycakes! I&apos;ll land it with a comment, then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413308</commentid>
    <comment_count>20</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-06-01 05:40:01 -0700</bug_when>
    <thetext>Committed r87797: &lt;http://trac.webkit.org/changeset/87797&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413338</commentid>
    <comment_count>21</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2011-06-01 06:43:30 -0700</bug_when>
    <thetext>Where is the unit/layout test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414112</commentid>
    <comment_count>22</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-06-02 07:45:15 -0700</bug_when>
    <thetext>Revision r87797 cherry-picked into qtwebkit-2.2 with commit 791c2c8 &lt;http://gitorious.org/webkit/qtwebkit/commit/791c2c8&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414128</commentid>
    <comment_count>23</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-06-02 08:06:56 -0700</bug_when>
    <thetext>(In reply to comment #21)
&gt; Where is the unit/layout test?

There is none, see comment in ChangeLog:
No new tests since this doesn&apos;t fail for qrc:// or file:// URLs and our tests can&apos;t depend on http:// URLs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414685</commentid>
    <comment_count>24</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2011-06-03 00:12:58 -0700</bug_when>
    <thetext>(In reply to comment #23)

&gt; There is none, see comment in ChangeLog:
&gt; No new tests since this doesn&apos;t fail for qrc:// or file:// URLs and our tests can&apos;t depend on http:// URLs.

Well, the underlying question is if you think test cases are optional or not. I really would prefer to not have double standards, accept if a fellow reviewer says it is not testable, but for ordinary contributors ask them to come up with unit tests... it is a bit saddening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414755</commentid>
    <comment_count>25</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-06-03 03:15:23 -0700</bug_when>
    <thetext>(In reply to comment #24)
&gt; &gt; There is none, see comment in ChangeLog:
&gt; &gt; No new tests since this doesn&apos;t fail for qrc:// or file:// URLs and our tests can&apos;t depend on http:// URLs.
&gt; 
&gt; Well, the underlying question is if you think test cases are optional or not. I really would prefer to not have double standards, accept if a fellow reviewer says it is not testable, but for ordinary contributors ask them to come up with unit tests... it is a bit saddening.

Andreas and I share an office. He asked me to review that, I asked for test, and we discussed how we could test this. That is just not on the comments of this thread.

Given testing this requires building too much test infrastructure, I agreed to push the work around for now while the network team looks at QNAM.

It is just an exception for a workaround of a bug in Qt. I don&apos;t understand the drama. If I was unfair regarding testing for one of your patch, I appologize.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414758</commentid>
    <comment_count>26</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-06-03 03:20:26 -0700</bug_when>
    <thetext>(In reply to comment #24)
&gt; (In reply to comment #23)
&gt; 
&gt; &gt; There is none, see comment in ChangeLog:
&gt; &gt; No new tests since this doesn&apos;t fail for qrc:// or file:// URLs and our tests can&apos;t depend on http:// URLs.
&gt; 
&gt; Well, the underlying question is if you think test cases are optional or not. I really would prefer to not have double standards, accept if a fellow reviewer says it is not testable, but for ordinary contributors ask them to come up with unit tests... it is a bit saddening.

If someone claims a change is untestable or especially nontrivial to test, I won&apos;t reject an otherwise correct patch over it. This is currently often the case with drag&amp;drop bugs on Qt, since our DRT has major issues with d&amp;d.

If you have a way of testing this particular change, I&apos;m all ears.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414853</commentid>
    <comment_count>27</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2011-06-03 07:01:22 -0700</bug_when>
    <thetext>(In reply to comment #25)

...
&gt; Given testing this requires building too much test infrastructure, I agreed to push the work around for now while the network team looks at QNAM.
&gt; 
&gt; It is just an exception for a workaround of a bug in Qt. I don&apos;t understand the drama. If I was unfair regarding testing for one of your patch, I appologize.

Sorry, this might be a bit lengthy. So first of all I don&apos;t have any hard feelings and it is not me feeling treated unfairly in some other bug report or such. It is more a been there, done that moment. From the comments to this bug report I get the feeling (which of course can be wrong) is that you are rushing for a release and from my experience the sad truth is there are no such shortcuts.

E.g. when Simon and me were working on the first QtWebKit release and we met in person (Qt DevDays, FOSS.IN, CCC event) we were so happy to avoid hitting the bugtracker, giving each other review in place. It was at a time where we did not have the DumpRenderTree, or much unit tests for QWebView/QWebFrame/QWebPage. There have been many moments were I regret to not have created a bug, not having put enough context into the bug report or not having done a (better) test.

The next thing is that theory says one should not write stuff that one can not test (strategic defense initiative as the prime example), of course it is too late her right now. In any case even a not perfect test case helps us to progress...

So yes the hint here... don&apos;t rush, don&apos;t give in to pressure...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414857</commentid>
    <comment_count>28</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2011-06-03 07:12:39 -0700</bug_when>
    <thetext>(In reply to comment #26)

&gt; If you have a way of testing this particular change, I&apos;m all ears.

Now, my own lazynes strucks... so this was not tired, you might have been there already...

a) Test that the unsupportedContent signal is a queued signal.

The original bug was introduced by me when I moved away from QueuedConnection to get better performance. So the idea (not for the bugfix but to avoid future regressions) would be to test (by creating a new EventLoop) that some of the API signals are queued, leave a comment pointing to this bug report... so next time a smart-ass like me coming around to play with the way a signal is connected needs to ack the test failure... Maybe you have decided against such a test, it would be nice to know why.

b) Create a simple http loading test... add a printf for the signal (when dumping frame load calls) inside the DRT for the unsupported content... now the vague part as I didn&apos;t try it yet... maybe add another printf inside FrameLoaderClientQt... and then a queued/non-queued signal would change the order of the printf...

c) Create a simple http loading test (platform specific), handle unsupported content by returning a unit value/string, use XML HTTP Request to load this this content... print the magic string coming from DRT for this unsupported content..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414871</commentid>
    <comment_count>29</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-06-03 07:30:33 -0700</bug_when>
    <thetext>(In reply to comment #28)
&gt; a) Test that the unsupportedContent signal is a queued signal.
&gt; 
&gt; The original bug was introduced by me when I moved away from QueuedConnection to get better performance. So the idea (not for the bugfix but to avoid future regressions) would be to test (by creating a new EventLoop) that some of the API signals are queued, leave a comment pointing to this bug report... so next time a smart-ass like me coming around to play with the way a signal is connected needs to ack the test failure... Maybe you have decided against such a test, it would be nice to know why.
&gt; 
&gt; b) Create a simple http loading test... add a printf for the signal (when dumping frame load calls) inside the DRT for the unsupported content... now the vague part as I didn&apos;t try it yet... maybe add another printf inside FrameLoaderClientQt... and then a queued/non-queued signal would change the order of the printf...

But the thing is the queueing is just an ugly workaround. That is not what we want to test, we want to make sure unsupported content behave as it should.


This is not the first time we have this kind of problem. We had some really weird timing issue with QNam over http. 
I just created https://bugs.webkit.org/show_bug.cgi?id=62012 following this thread. Pierre recently wrote a small HTTP server for testing some stuff, maybe he can pick this up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427368</commentid>
    <comment_count>30</comment_count>
    <who name="Dawit A.">adawit</who>
    <bug_when>2011-06-25 09:10:40 -0700</bug_when>
    <thetext>Unfortunately, this patch causes a regression in kdewebkit because we need the unsupportedContent signal to be delivered as early as possible. This breaks KDE KIO&apos;s put-slave-on-hold functionality that allows applications to pass an active network connection to each other.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447201</commentid>
    <comment_count>31</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-08-05 07:28:33 -0700</bug_when>
    <thetext>The Queued-signal workaround has been reverted in r92479 (see Bug #63582) because of a regression spotted in KDE&apos;s custom QNAM feature.

I guess we have no choice but push for the real fix in Qt: http://bugreports.qt.nokia.com/browse/QTBUG-18718</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447210</commentid>
    <comment_count>32</comment_count>
    <who name="Dawit A.">adawit</who>
    <bug_when>2011-08-05 07:55:21 -0700</bug_when>
    <thetext>(In reply to comment #31)
&gt; The Queued-signal workaround has been reverted in r92479 (see Bug #63582) because of a regression spotted in KDE&apos;s custom QNAM feature.
&gt; 
&gt; I guess we have no choice but push for the real fix in Qt: http://bugreports.qt.nokia.com/browse/QTBUG-18718

In the meantime, people with this problem can workaround it by connecting to the unsupportedContent(QNetworkReply*) signal using the Qt::QueuedConnection connection type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>452999</commentid>
    <comment_count>33</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-08-18 06:41:36 -0700</bug_when>
    <thetext>Since this has to be fixed in Qt (we won&apos;t do anything in the QtWebKit side) and there&apos;s a workaround available on the user&apos;s side, shouldn&apos;t this bug be closed here as WONTFIX?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453008</commentid>
    <comment_count>34</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-08-18 07:01:01 -0700</bug_when>
    <thetext>(In reply to comment #33)
&gt; Since this has to be fixed in Qt (we won&apos;t do anything in the QtWebKit side) and there&apos;s a workaround available on the user&apos;s side, shouldn&apos;t this bug be closed here as WONTFIX?

Better ask for forgiveness than permission: closing bug as WONTFIX here. I&apos;ll keep track of the associated Qt Bug.

Bug 62012 is also of interest, it should allow us to test for this kind of problem in the future (there&apos;s a reference to this bug there).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>74109</attachid>
            <date>2010-11-17 07:06:32 -0800</date>
            <delta_ts>2010-11-17 07:06:32 -0800</delta_ts>
            <desc>3 src files containing a little usecase for the bug</desc>
            <filename>bug_unsupportedContent.zip</filename>
            <type>application/zip</type>
            <size>1962</size>
            <attacher>frank.fischer</attacher>
            
              <data encoding="base64">UEsDBBQAAAAIABCAcT37+ZOIkQEAAEIDAAAIAAAAbWFpbi5jcHB1UstOwzAQvFfqP1ggIadqSLhw
4FGp9ICQeFW8Dggh11klVlM7tTcNAvHvbF6laSGnzc7s7HjsfaVlmkfAzqZ4matgOs6yVEmByuhR
v7cD3wilX5SOTPEX+oACc3chLIFdeGIsBNMnm24hBczmChEcBlSuFBTvSzxMKpbSyBa0j5eFsLEc
MpkIywZUr17fvH7vq99j9G2aHjCRZeycaSg6fV4LlKPeaTVWEv2RNFqDRE4/Q/ZwdXk7vuapcFgf
cpIaBxH3PJqsCNd3j3yZK6RWK7ORyaDy227/7fPOSgc4lqhW0IDlTEt4gdmzAhJq0qi1mnaXWtYk
1kbOPX8kouge7EJo0HSAKAbkjY4/op97a2ILrmZvyrQxrOnrKNbyNzQnYuBEdMjopq3S8QEFs+uj
icklpvhnqrO8CmRCjq1Iu6Zb1voMqRERL18R30sQs5MgoMeizVyJQ2kWAYWpS4qjti8tCDTWdya3
EvxMyDk52dtaTXGoT+BHYRgO2XEYbhlLNu7OAuZW11cIHyAr4Pv0B1BLAwQUAAAACABPf3E996O9
G6wDAAAVCwAADgAAAHdlYnZpZXdfcXQuY3BwvVVbb9MwFH5H4j+YIpALoxkSAilsk0o3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mUwnTBpnPmcMz
NMVxbq6pVVdd205sKiDnn6evO7Fi3Y6+Lfs8V94TT59A/sq+ruDmUwTGyjgg2TQN7drrZf2SSPef
76gdF2r6oLPd64P4LufZnD/d3+++vMXncgshmrcY5AKSihl1AIWqvpq70HPnLSRXH/8KYsXzD1BL
AwQUAAAACAAEf3E9E/W+iy8BAAB7AgAADAAAAHdlYnZpZXdfcXQuaH1S30vDMBB+F/wfDvbSDaEv
4sMmPmwOf4Fa0fWxdM1tBrOkJtcWGfNv97q2rq2yC+TId1++fJdkIFda4AqicD5d3M3D6DaKTk8G
DEmNPZRxqROVCYTLgEJcPkjyA84LicVVv36TST94tmZt0blpbHuEHBMyJVgO4KjmRMXOQa0JY0iz
pZIJNKdUpC2nOoLoaXo/n71O9jJV1JvGDByi0fSCUIo10gjS2KKm4aRL+254ZaFbanczAtZorb3h
1iJlVkOU1uhk1xZglLhlFOCUIdczlxsp4D3WQuGbdlmaGsvUmdHEFr3gEakw9uMFU/U1AlumX99/
Fa5NoZWJRWPP+5SaLs55X4IyR3EGNUCGYsVC/9kcg+9vcLNE647dwqHbLqta7RjdPztqIVes2P5Q
P1BLAQIUABQAAAAIABCAcT37+ZOIkQEAAEIDAAAIAAAAAAAAAAAAIAAAAAAAAABtYWluLmNwcFBL
AQIUABQAAAAIAE9/cT33o70brAMAABULAAAOAAAAAAAAAAAAIAAAALcBAAB3ZWJ2aWV3X3F0LmNw
cFBLAQIUABQAAAAIAAR/cT0T9b6LLwEAAHsCAAAMAAAAAAAAAAAAIAAAAI8FAAB3ZWJ2aWV3X3F0
LmhQSwUGAAAAAAMAAwCsAAAA6AYAAAAA
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86264</attachid>
            <date>2011-03-19 08:59:32 -0700</date>
            <delta_ts>2011-05-31 13:55:51 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>bug-49650.diff</filename>
            <type>text/plain</type>
            <size>2909</size>
            <attacher name="Andreas Kling">kling</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvcXQvQ2hhbmdlTG9nIGIvU291cmNlL1dlYktpdC9x
dC9DaGFuZ2VMb2cKaW5kZXggZThhMjNkZi4uMTNkOWJmOSAxMDA2NDQKLS0tIGEvU291cmNlL1dl
YktpdC9xdC9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdC9xdC9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwyMCBAQAorMjAxMS0wMy0xOSAgQW5kcmVhcyBLbGluZyAgPGtsaW5nQHdlYmtpdC5vcmc+
CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgUkVHUkVT
U0lPTjogW1F0XSBRTmV0d29ya1JlcGx5IGRlbGl2ZXJlZCBieSB0aGUgdW5zdXBwb3J0ZWRDb250
ZW50KCkgc2lnbmFsIGRvZXMgbm90IGNvbnRhaW4gZG93bmxvYWRlZCBkYXRhCisgICAgICAgIGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD00OTY1MAorCisgICAgICAgIERl
ZmVyIGVtaXNzaW9uIG9mIFFXZWJQYWdlOjp1bnN1cHBvcnRlZENvbnRlbnQoKSB1bnRpbCB3ZSdy
ZSBiYWNrIGluIHRoZSBldmVudCBsb29wLgorICAgICAgICBUaGlzIGxldHMgdGhlIFFOQU0gYmFj
a2VuZCBmaW5pc2ggd2l0aCB0aGUgcmVwbHkgd2l0aG91dCBoYW5kaW5nIG92ZXIgb3duZXJzaGlw
IHRvIHRoZSB1c2VyIGNvZGUuCisKKyAgICAgICAgTm8gbmV3IHRlc3RzIHNpbmNlIHRoaXMgZG9l
c24ndCBmYWlsIGZvciBxcmM6Ly8gb3IgZmlsZTovLyBVUkxzIGFuZCBvdXIgdGVzdHMgY2FuJ3Qg
ZGVwZW5kIG9uIGh0dHA6Ly8gVVJMcy4KKworICAgIC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cHBvcnQvRnJhbWVMb2FkZXJDbGllbnRRdC5oCmlu
ZGV4IDAzMzM1OTkuLmQ4ZjU2MjUgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvcXQvV2ViQ29y
ZVN1cHBvcnQvRnJhbWVMb2FkZXJDbGllbnRRdC5oCisrKyBiL1NvdXJjZS9XZWJLaXQvcXQvV2Vi
Q29yZVN1cHBvcnQvRnJhbWVMb2FkZXJDbGllbnRRdC5oCkBAIC00Myw2ICs0Myw4IEBACiAjaW5j
bHVkZSA8UVVybD4KICNpbmNsdWRlIDxxb2JqZWN0Lmg+CiAjaW5jbHVkZSA8d3RmL0ZvcndhcmQu
aD4KKworY2xhc3MgUU5ldHdvcmtSZXBseTsKIGNsYXNzIFFXZWJGcmFtZTsKIAogbmFtZXNwYWNl
IFdlYkNvcmUgewpAQCAtNjgsNiArNzAsNyBAQCBzaWduYWxzOgogICAgIHZvaWQgbG9hZFByb2dy
ZXNzKGludCBkKTsKICAgICB2b2lkIGxvYWRGaW5pc2hlZChib29sKTsKICAgICB2b2lkIHRpdGxl
Q2hhbmdlZChjb25zdCBRU3RyaW5nJiB0aXRsZSk7CisgICAgdm9pZCB1bnN1cHBvcnRlZENvbnRl
bnQoUU5ldHdvcmtSZXBseSopOwogCiBwdWJsaWM6CiAgICAgRnJhbWVMb2FkZXJDbGllbnRRdCgp
Owo=
</data>
<flag name="review"
          id="88979"
          type_id="1"
          status="+"
          setter="benjamin"
    />
    <flag name="commit-queue"
          id="88980"
          type_id="3"
          status="-"
          setter="benjamin"
    />
          </attachment>
      

    </bug>

</bugzilla>