[GTK] The remote web inspector shows the HTML content as plain text
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Sep 2014 13:33:50 +0000 (13:33 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Sep 2014 13:33:50 +0000 (13:33 +0000)
commit4d16cb214f9999932110fc79cf3452f02665e528
tree0c48a6f365e8bbc99510e8307eb6ecb3590836ee
parentf47204f91c8db3d723892b8401c3ccd0810f0c13
[GTK] The remote web inspector shows the HTML content as plain text
https://bugs.webkit.org/show_bug.cgi?id=137250

Reviewed by Gustavo Noronha Silva.

Use GResource API directly to get the resource data, instead of
using the GFile API, and use g_content_type_guess() to get the
MIME Type.

* UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
(WebKit::WebInspectorServer::platformResourceForPath):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp