Skip to content
Snippets Groups Projects
Commit b6ea1dd3 authored by Renaud Thiry's avatar Renaud Thiry
Browse files

[FIX] web_editor: prevent adding sandbox


in 28740b11da37239953185478de9f391265db543f
we add an option for a sanboxed iframe.

This mistakenly uses `null` instead of `false` in a `t-att`.
Which sets the sandbox attribute, breaking `mass_mail`.

We replace `null` with `false`, which correctly does not add the attribute
 at all.

 task-3255777

closes odoo/odoo#121869

Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent 44bfc23e
Branches
Tags
No related merge requests found
......@@ -4,7 +4,7 @@
<t t-name="web_editor.HtmlField" owl="1">
<t t-if="props.readonly || props.notEditable || (sandboxedPreview and !state.showCodeView)">
<t t-if="this.showIframe">
<iframe t-ref="iframe" t-att-class="{'d-none': !this.state.iframeVisible, 'o_readonly': true}" t-att-sandbox="sandboxedPreview ? 'allow-same-origin' : null"></iframe>
<iframe t-ref="iframe" t-att-class="{'d-none': !this.state.iframeVisible, 'o_readonly': true}" t-att-sandbox="sandboxedPreview ? 'allow-same-origin' : false"></iframe>
</t>
<t t-else="">
<div t-ref="readonlyElement" class="o_readonly" t-out="markupValue" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment