diff --git a/brightray/browser/devtools_ui.cc b/brightray/browser/devtools_ui.cc index 42769b53c3..30a974fccf 100644 --- a/brightray/browser/devtools_ui.cc +++ b/brightray/browser/devtools_ui.cc @@ -42,11 +42,12 @@ std::string GetMimeTypeForPath(const std::string& path) { return "image/png"; } else if (EndsWith(filename, ".gif", false)) { return "image/gif"; + } else if (EndsWith(filename, ".svg", false)) { + return "image/svg+xml"; } else if (EndsWith(filename, ".manifest", false)) { return "text/cache-manifest"; } - NOTREACHED(); - return "text/plain"; + return "text/html"; } class BundledDataSource : public content::URLDataSource { @@ -86,6 +87,14 @@ class BundledDataSource : public content::URLDataSource { return false; } + virtual bool ShouldDenyXFrameOptions() const override { + return false; + } + + virtual bool ShouldServeMimeTypeAsContentTypeHeader() const override { + return true; + } + private: virtual ~BundledDataSource() {} DISALLOW_COPY_AND_ASSIGN(BundledDataSource);