Thank you Martin.
I suppose I might be able to achieve Save As by generating a blob for download. But this might just be a proof of concept anyway.
Redirect PDFs to an URL within your extension that then handles loading and displaying the PDF. Breaks “Save page as” for saving the PDF
This sounds easiest, but this concerns me a bit. I guess the way this would work would be that the user clicks on a link to say, “http://www.pdf995.com/samples/pdf.pdf” and then the extension redirects to www.mycustompdfviewer.com?pdf=http://www.pdf995.com/samples/pdf.pdf which opens the pdf. Is that what you’re thinking? Would there be issues with popup blockers?
The downside would be that the final link isn’t so clean.
Replace the content of the PDF response with your PDF viewer. Means it gets displayed for the URL the PDF is at, but also breaks “Save page as”.
I’m not sure exactly what you mean by “the content of the PDF response”. Would I replace the GET results of the HTTP call to the PDF, and with what? Can you say more?