jscher2000 / Content-Type-Fixer-extension

Firefox extension to override dumb Content-Type headers with correct values
Mozilla Public License 2.0
23 stars 2 forks source link

Can't download PDFs from Google Docs #9

Closed Elaborendum closed 3 years ago

Elaborendum commented 3 years ago

When the extension is active, its not possible to download PDFs out of Google Docs files.

jscher2000 commented 3 years ago

There is a problem with overriding the Content-Disposition to inline on some Google sites. Version 1.7.1 added exceptions for some Google domains --

-- but there may be some I missed. If you look at the log

extension button > Add/Edit Content Types (View Log)

after starting the download, what host name is the download coming from?

Elaborendum commented 3 years ago

Just tried downloading from Documents, Presentations and Spreadsheets and got the following, respectively.

So, googleusercontent.com. This appears in the log: image

Just in case, there are also grey lines that all come from docs.google.com and just say image

jscher2000 commented 3 years ago

Oh... the exception only applied on mail.google.com and drive.google.com, and it never occurred to me to test downloading as PDF.

I have added docs.google.com in version 1.7.2 and it seems to resolve the issue.

Elaborendum commented 3 years ago

Thank you, it is fixed.