Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 301223004: Fix loading PDFs with no HTTP response headers in OOP PDF (Closed)

Created:
6 years, 6 months ago by raymes
Modified:
6 years, 6 months ago
Reviewers:
gene
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Fix 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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M pdf/document_loader.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
raymes
6 years, 6 months ago (2014-05-30 08:16:22 UTC) #1
gene
lgtm
6 years, 6 months ago (2014-05-30 17:00:45 UTC) #2
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 6 months ago (2014-05-31 01:59:00 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/301223004/20001
6 years, 6 months ago (2014-05-31 02:00:15 UTC) #4
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 22:46:07 UTC) #5
Message was sent while issue was closed.
Change committed as 274081

Powered by Google App Engine
This is Rietveld 408576698