Bug 72169 - [Qt] FrameLoaderClientQt::canShowMIMEType should always return true
Summary: [Qt] FrameLoaderClientQt::canShowMIMEType should always return true
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jesus Sanchez-Palencia
URL:
Keywords: Qt, QtTriaged
Depends on: 72512
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-11 13:13 PST by Jesus Sanchez-Palencia
Modified: 2014-02-03 03:19 PST (History)
3 users (show)

See Also:


Attachments
Patch (2.22 KB, patch)
2011-11-11 13:19 PST, Jesus Sanchez-Palencia
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesus Sanchez-Palencia 2011-11-11 13:13:09 PST
Currently FrameLoaderClientQt::canShowMIMEType is called after dispatchDecidePolicyForResponse. We might have a bug if decidePolicyForResponse returns PolicyUse while canShowMIMEType returns false.

We should keep this implementation in WK1 as in WK2, always returning true.
Comment 1 Jesus Sanchez-Palencia 2011-11-11 13:19:45 PST
Created attachment 114758 [details]
Patch
Comment 2 Simon Hausmann 2011-11-13 11:04:39 PST
Comment on attachment 114758 [details]
Patch

r=me
Comment 3 WebKit Review Bot 2011-11-16 07:12:45 PST
Comment on attachment 114758 [details]
Patch

Clearing flags on attachment: 114758

Committed r100448: <http://trac.webkit.org/changeset/100448>
Comment 4 WebKit Review Bot 2011-11-16 07:12:49 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Csaba Osztrogonác 2011-11-16 07:49:18 PST
It broke a test:

--- /ramdisk/qt-linux-release/build/layout-test-results/http/tests/loading/text-content-type-with-binary-extension-expected.txt 
+++ /ramdisk/qt-linux-release/build/layout-test-results/http/tests/loading/text-content-type-with-binary-extension-actual.txt 
@@ -2,11 +2,14 @@
 main frame - didCommitLoadForFrame
 frame "iframe" - didStartProvisionalLoadForFrame
 main frame - didFinishDocumentLoadForFrame
+frame "iframe" - didCommitLoadForFrame
+frame "iframe" - didFinishDocumentLoadForFrame
+frame "iframe" - didHandleOnloadEventsForFrame
 main frame - didHandleOnloadEventsForFrame
-frame "iframe" - didFailProvisionalLoadWithError
+frame "iframe" - didFinishLoadForFrame
 main frame - didFinishLoadForFrame
 Test for https://bugs.webkit.org/show_bug.cgi?id=17360 REGRESSION: mp4 file downloaded from server is downloaded as html.
 
-Binary data not loaded as text. Maybe PASS.
+FAIL
Comment 6 Jesus Sanchez-Palencia 2011-11-16 08:01:17 PST
(In reply to comment #5)
> It broke a test:

Ossy, why can't I see this in http://build.webkit.org/console?category=core ?!
Or am I missing something there?
Comment 7 Csaba Osztrogonác 2011-11-16 08:06:27 PST
(In reply to comment #6)
> (In reply to comment #5)
> > It broke a test:
> 
> Ossy, why can't I see this in http://build.webkit.org/console?category=core ?!
> Or am I missing something there?

You should see orange bubble here, which means that bot is red and it was red before your patch. But it doesn't inform you if there is additional failing test or not. You should check waterfall.
Comment 8 Csaba Osztrogonác 2011-11-16 09:08:08 PST
Reopen, because it was rolled out: http://trac.webkit.org/changeset/100459
Comment 9 Jocelyn Turcotte 2014-02-03 03:19:14 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.