| Index: chrome/browser/resources/pdf/background.js
|
| diff --git a/chrome/browser/resources/pdf/background.js b/chrome/browser/resources/pdf/background.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..afd03527522d66f03eb6ec03393ba518bfba1ceb
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/pdf/background.js
|
| @@ -0,0 +1,8 @@
|
| +chrome.streamsPrivate.onExecuteMimeTypeHandler.addListener(
|
| + function(mime_type, original_url, content_url, tab_id) {
|
| + // TODO(raymes): Currently this doesn't work with embedded PDFs (it
|
| + // causes the entire frame to navigate). Also work out how we can
|
| + // mask the URL with the URL of the PDF.
|
| + chrome.tabs.update(tab_id, { url: 'pdf.html?' + content_url });
|
| + }
|
| +);
|
|
|