DescriptionSandbox should prevent 'execCommand("print", ...)'.
Unless 'allow-modals' is present, 'sandbox' should prevent modal dialogs,
including the print dialog popped up from 'execCommand("print", ...)'.
The existing code doesn't handle this case; this patch moves the sandbox
check up to 'ChromeClient::print()', which handles both 'print()' and
'execCommand("print", ...'.
BUG=658985
R=jochen@chromium.org
Committed: https://crrev.com/6a616686e564d5cac7d25b61070b5031a818df8d
Cr-Commit-Position: refs/heads/master@{#427664}
Patch Set 1 #
Messages
Total messages: 11 (6 generated)
|