Skip to content

fix infinite loop #4494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 420 commits into
base: master-mysterious-egg
Choose a base branch
from
Open

Conversation

ged-odoo
Copy link

No description provided.

Goaman and others added 30 commits April 18, 2025 11:19
This commit addresses a race condition in the `onEditPage` method of
the `WebsiteBuilder` component. The issue occurred when asynchronous
operations (like iframe loading and asset bundle loading) were not
completed before proceeding with the editing flow, leading to
unpredictable behavior.

Changes:
- Added `await this.iframeLoaded` in `onEditPage` to ensure the iframe
is fully loaded before loading assets or enabling editing.
- Set the `is-ready` attribute on the iframe element in `onIframeLoad`
to mark it as ready once the iframe content is loaded.

These changes ensure that all dependencies are properly initialized
before enabling the editing mode, resolving the race condition.
FrancoisGe and others added 28 commits April 22, 2025 16:49
Now handling the Google Maps API in the iframe with an interaction, we
can't test it anymore since the tests don't have access to the iframe
and can't make overrides there, and therefore doesn't load the
interaction.
When calling twice `customizeWebsiteColors` or
`customizeWebsiteVariables` without awaiting them, the same file may be
created twice in DB. This causes crashes (error 500 in both the backend
and the frontend) which are very hard to recover from.
This can happen due to the introduction of a `composite` action in the
next commit, by going through clean/apply (for websiteConfig) or by
calling 2 actions which both trigger one of the async methods.

Additionnally, it's better to batch `reloadBundles` too so that its RPC
call is only done once, at the end.
Before this commit, in website builder:
- overlay does not close when clicked outside the iframe (Toolbar, link popover)
- When you add a link with the link popover, it closes when you add the first char of the url.
- when you have a banner and text:
    - you select the text
    - the toolbar opens
    - click on the banner icon
    - The toolbar should close
when header template is changed, like old data-trigger
@robodoo
Copy link

robodoo commented Apr 25, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@ged-odoo ged-odoo force-pushed the master-mysterious-egg branch from e24556e to 897f4ab Compare April 29, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.