DescriptionImprove print preview checks in the PDF plugin
Special functionality is available in the PDF plugin for print preview. We
don't want to allow this functionality to be exposed when not in print
preview as it may have potential security implications. This CL improves
the checks that are used:
1) Check the document URL to determine whether we are in print preview, rather
than the URL that is passed in to load, which could be chosen by an attacker.
2) Add CHECKs to ensure we are in print preview mode and trying to load a print
preview document when print preview messages are received.
Note that we should never get into a state where these checks would be invalid
but this gives us defense in depth.
BUG=654280
Committed: https://crrev.com/9fb7fed591eb80fa9653f7d027f004afb8425b17
Cr-Commit-Position: refs/heads/master@{#430802}
Patch Set 1 #Patch Set 2 : Improve print preview checks in the PDF plugin #
Total comments: 2
Patch Set 3 : Improve print preview checks in the PDF plugin #
Messages
Total messages: 10 (4 generated)
|