commit | aed0e5425bf2021fac85173daac10145f6a58a2a | [log] [tgz] |
---|---|---|
author | Devlin Cronin <rdevlin.cronin@chromium.org> | Fri Jan 26 22:05:29 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 26 22:05:29 2018 |
tree | f8baad75877c5789ef9665c5167ed654d528f1d4 | |
parent | 5d2531613139a1c409dfacd28d03b05b2100fcfe [diff] |
[Extensions] Change Mime-Type deducation in URLRequestExtensionJob Modify URLRequestExtensionJob to determine the mime type of a requested file through net::GetWellKnownMimeTypeFromExtension(), rather than URLRequestFileJob::GetMimeType(). The difference here is that the latter will include platform-specific modifications. This means that if another application on the users machine specified a different mime type for an extension, that type would be used. This causes problems with modules in extensions, in the cases where a different application has set a different mime type for .js files, since modules have strict mime type requirements. Use GetWellKnownMimeTypeFromExtension(), and add .js to the list of primary mappings in mime_util.cc. Bug: 797712 Change-Id: I27fea0479268520abd08fb62a501d213a3a04f52 Reviewed-on: https://chromium-review.googlesource.com/885401 Reviewed-by: Asanka Herath <asanka@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#532070}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .