This commit is contained in:
Kovid Goyal 2021-05-16 10:56:27 +05:30
parent dcc0818e81
commit d7efe7d8f9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -165,6 +165,7 @@ class IframeWrapper:
def create_wrapped_iframe(handlers, bootstrap_text, entry_point, kw): def create_wrapped_iframe(handlers, bootstrap_text, entry_point, kw):
if ':' in entry_point: if ':' in entry_point:
# this is a document loaded via the fake protocol from web_view.py
kw.src = entry_point kw.src = entry_point
kw.sandbox = (kw.sandbox or '') + ' allow-same-origin' kw.sandbox = (kw.sandbox or '') + ' allow-same-origin'
iframe = E.iframe(**kw) iframe = E.iframe(**kw)