[FIX] web: handle unhandled rejections in the frontend
[FIX] web: handle unhandled rejections in the frontend

Following of https://github.com/odoo/odoo/pull/28457. Promises which
are rejected are acting the same way as exceptions and thus have to be
catched. The Odoo `guardedCatch` method is not stopping the exception
though. In the backend, unhandled promise rejections are catched by the
CatchManager, which then ignore them.

This commit makes the frontend act the same way regarding unhandled
promise rejections. We might want to share the crash manager behavior
someday.

Part of https://github.com/odoo/odoo/pull/31664

closes odoo/odoo#31664

Signed-off-by: Quentin Smetz (qsm) <75b324bb495ac8d4f83496f7c52eda774af7ed7a@odoo.com>
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo