DescriptionOOP PDF: Change the save toolbar button to match the save menu behavior.
Previously, the save toolbar button for the out-of-process PDF plugin
was a link to the PDF URL. This did not function for file URLs or PDFs
returned in response to a POST. This changes the button to use the
pepper PDF save API and adds a way for a WebContentsDelegate to override
SaveFrame behavior so the MimeHandlerViewGuest can instruct its embedder
to handle the actual save.
BUG=416329
TEST=Run with --out-of-process-pdf.
Open a local PDF and click the save toolbar button. The save as dialog
should appear.
Repeat the same with a PDF returned by a POST request. Saving should
save the opened PDF - not the page returned by a GET to the same URL.
Committed: https://crrev.com/92af61555dff60e1d1b51c47d27d07c5a643726d
Cr-Commit-Position: refs/heads/master@{#304920}
Patch Set 1 : #Patch Set 2 : rebase #Messages
Total messages: 18 (6 generated)
|