odoo/odoo#258389
Created by JavaScript, Jorge Pinna Puissant (jpp)
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 17s)
- ci/documentation: (runtime 1089s)
- ci/design-theme: (runtime 2584s)
- 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