mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-08-07 07:14:49 +00:00
77a59c3a26
Apparently, opening a link from a sandboxed iframe enabled the sandbox mode for the opened new tab as well. For most pages, this is not a problem since these pages don't depend on anything special. However when clicking a link to a PDF file, Chromium- based browsers don't open the tab, since the built-in PDF viewer is not compatible with the sandboxing. The attribute `allow-popups-to-escape-sandbox` allows pages opened from the sandbox into a new tab to be not sandboxed. Since we don't have opener access there, this is no risk to HedgeDoc and can safely be enabled and therefore fix PDF links. Signed-off-by: Erik Michelson <github@erik.michelson.eu>