mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-11-30 16:37:18 +01:00
Nothing coming from the sandbox can be trusted: it grants itself a user activation for any event, and a script can trigger some events on its own (e.g. a timer calling setFocus). Hence the host only shows a dialog, once, while handling an event for which the viewer allows it: the ones caused by the user, Open, and the print/save ones. A focus change requested by a script no longer counts as a user activation.
13 KiB
13 KiB