DescriptionFix loading PDFs with no HTTP response headers in OOP PDF
Currently if no response headers are passed into the plugin in OOP PDF then the
headers fetched URLLoader that loaded the stream URL will be used, but the
MIME type for the blob URL is always plain text, which causes the document
loader to refuse to load the document. Currently, if no headers are passed
to the in process plugin, we always try to load the document, so this just
mimics that behavior in the OOP plugin. When the in-process plugin is removed
we can change the document loader and remove the hack.
This also removes blob: URLs from the MIME type check in document loader
because they are no longer ever passed in.
BUG=303491
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274081
Patch Set 1 #Patch Set 2 : #
Messages
Total messages: 5 (0 generated)
|