Bug 373621 - Make mime-type of PDF not overridable. r=bz
authorXidorn Quan <me@upsuper.org>
Thu, 28 Jul 2016 20:20:42 +1000
changeset 307198 c2211a92bce2048fb6b541a85fd306225d4f32f3
parent 307197 23fd4759f733c724c14f3533b25cf8dad3309296
child 307199 5aeb092868f81a1a2ed987dfcae509ec89b818d5
push id30506
push usercbook@mozilla.com
push dateFri, 29 Jul 2016 09:56:58 +0000
treeherdermozilla-central@2ea3d51ba1bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs373621
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 373621 - Make mime-type of PDF not overridable. r=bz MozReview-Commit-ID: 8k2XorDX0z9
uriloader/exthandler/nsExternalHelperAppService.cpp
--- a/uriloader/exthandler/nsExternalHelperAppService.cpp
+++ b/uriloader/exthandler/nsExternalHelperAppService.cpp
@@ -517,16 +517,17 @@ static const nsDefaultMimeTypeEntry defa
   { "application/xhtml+xml", "xhtml" },
   { "application/xhtml+xml", "xht" },
   { TEXT_PLAIN, "txt" },
   { VIDEO_OGG, "ogv" },
   { VIDEO_OGG, "ogg" },
   { APPLICATION_OGG, "ogg" },
   { AUDIO_OGG, "oga" },
   { AUDIO_OGG, "opus" },
+  { APPLICATION_PDF, "pdf" },
   { VIDEO_WEBM, "webm" },
   { AUDIO_WEBM, "webm" },
 #if defined(MOZ_WMF)
   { VIDEO_MP4, "mp4" },
   { AUDIO_MP4, "m4a" },
   { AUDIO_MP3, "mp3" },
 #endif
 #ifdef MOZ_RAW