From ad63194af35110b97c41057fd2ce52da5c460faa Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 2 May 2023 11:56:05 +0000 Subject: [PATCH] [FIX] web, *: use proper http-equiv="X-UA-Compatible" value *: mail, point_of_sale, pos_self_order, web_editor The `,chrome=1` part is no longer a supported value as the Google Chrome Frame plugin was discontinued on February 25, 2014. See [1]. Indeed the W3C validator returns an error about this. [1]: https://rocketvalidator.com/html-validation/a-meta-element-with-an-http-equiv-attribute-whose-value-is-x-ua-compatible-must-have-a-content-attribute-with-the-value-ie-edge Part-of: odoo/odoo#120311 --- addons/mail/views/discuss_public_templates.xml | 2 +- addons/point_of_sale/views/pos_assets_index.xml | 2 +- addons/pos_self_order/views/index.xml | 2 +- addons/web/views/webclient_templates.xml | 2 +- addons/web_editor/static/src/js/backend/html_field.js | 2 +- addons/web_editor/static/src/xml/wysiwyg.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/mail/views/discuss_public_templates.xml b/addons/mail/views/discuss_public_templates.xml index c194b1a977d..093940cc2e7 100644 --- a/addons/mail/views/discuss_public_templates.xml +++ b/addons/mail/views/discuss_public_templates.xml @@ -4,7 +4,7 @@ - + <link type="image/x-icon" rel="shortcut icon" t-att-href="x_icon or '/web/static/img/favicon.ico'"/> <script> diff --git a/addons/point_of_sale/views/pos_assets_index.xml b/addons/point_of_sale/views/pos_assets_index.xml index fe0fb37a716..621eab1c868 100644 --- a/addons/point_of_sale/views/pos_assets_index.xml +++ b/addons/point_of_sale/views/pos_assets_index.xml @@ -7,7 +7,7 @@ <head> <title>Odoo POS - + diff --git a/addons/pos_self_order/views/index.xml b/addons/pos_self_order/views/index.xml index 926f126cc32..653b244ce9b 100644 --- a/addons/pos_self_order/views/index.xml +++ b/addons/pos_self_order/views/index.xml @@ -4,7 +4,7 @@ Odoo Self Order - + diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index 08b4c784945..25b273d8e09 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -13,7 +13,7 @@ - + <link type="image/x-icon" rel="shortcut icon" t-att-href="x_icon or '/web/static/img/favicon.ico'"/> <script id="web.layout.odooscript" type="text/javascript"> diff --git a/addons/web_editor/static/src/js/backend/html_field.js b/addons/web_editor/static/src/js/backend/html_field.js index bd1a38b0af2..a80c30d1e45 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -456,7 +456,7 @@ export class HtmlField extends Component { '<!DOCTYPE html><html>' + '<head>' + '<meta charset="utf-8"/>' + - '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>\n' + + '<meta http-equiv="X-UA-Compatible" content="IE=edge"/>\n' + '<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>\n' + '</head>\n' + '<body class="o_in_iframe o_readonly" style="overflow: hidden;">\n' + diff --git a/addons/web_editor/static/src/xml/wysiwyg.xml b/addons/web_editor/static/src/xml/wysiwyg.xml index 6eed4b88748..09a54b29726 100644 --- a/addons/web_editor/static/src/xml/wysiwyg.xml +++ b/addons/web_editor/static/src/xml/wysiwyg.xml @@ -6,7 +6,7 @@ <!--=================--> <t t-name="wysiwyg.iframeContent"><head> <meta charset="utf-8"/> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> + <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/> <t t-foreach="assets || []" t-as="asset"> <t t-foreach="asset.cssLibs || []" t-as="cssLib">