Bug 116536 - [GTK] MiniBrowser hangs when opening 'file:///' urls of content other than HTML
Summary: [GTK] MiniBrowser hangs when opening 'file:///' urls of content other than HTML
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-21 07:17 PDT by Eduardo Lima Mitev
Modified: 2013-06-25 11:12 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Lima Mitev 2013-05-21 07:17:16 PDT
Opening local content of (at least) types txt, css and json makes MiniBrowser hang.

1) $ touch /tmp/foo.txt
2) $ WebKitBuild/Release/Programs/MiniBrowser file:///tmp/foo.txt

The expected result would (ideally) be showing the contents as raw txt file. Unsupported MIME-types can be checked with `webkit_web_view_can_show_mime_type()` <http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-can-show-mime-type>.

A quicker solution would be to avoid the hang and show a simple error message praying "unsupported MIME-type" or something alike. I can work on this approach initially, and then file a new bug to provide a default handler for unsupported types, which should require more work.
Comment 1 Andres Gomez Garcia 2013-06-18 17:30:04 PDT
I think this is already solved with bug 117533.
Comment 2 Eduardo Lima Mitev 2013-06-25 11:12:49 PDT
(In reply to comment #1)
> I think this is already solved with bug 117533.

Yes, indeed it has been fixed. Thanks a lot!

Closing.