odoo/odoo#258389

Created by JavaScript, Jorge Pinna Puissant (jpp)
Merged at 1ac8967b9da47d71e4d8e76850f44a8f87bc1757

Statuses:

label
odoo-dev:master-secure_context-jpp
head
d1757b996622f17987a5cdf641f024ff02ed4a64
merged
1 month ago by JavaScript, Aaron Bohy (aab)
odoo/odoo
master #258389

non-secure contexts

[FIX] web: prevent errors in non-secure contexts

Multiple browser APIs are restricted in non-secure contexts. This commit
protects the offline service to prevent it from throwing errors when
running without HTTPS.

Note that most offline service functionalities will not work in a
non-secure context. This is because we cannot encrypt the IndexedDB caches
without a secure context; consequently, offline navigation will be
unavailable.

Part-of-task-6075066


[IMP] web: notify user in non-secure contexts

This commit adds a console error to alert the user when they are connected
via a non-secure context (HTTP). It specifies that certain Odoo
functionalities may not work correctly and that errors may occur due to
browser API restrictions.

Part-of-task-6075066