Skip to content

[8.4-stable] fix(preview): Only exchange messages with the preview frame - #4432

Merged
tvdeyen merged 1 commit into
8.4-stablefrom
backport/8.4-stable/pr-4430
Oct 31, 2026
Merged

tvdeyen merged 1 commit into
8.4-stablefrom
backport/8.4-stable/pr-4430

Conversation

@alchemycms-ci-bot

Copy link
Copy Markdown
Collaborator

Backport

This will backport the following commits from main to 8.4-stable:

Questions ?

Please refer to the Backport tool documentation

The admin posted to the preview with "*" and accepted messages from any window, so any frame or opener could focus element editors and every page loaded into the preview received the messages. Taking the target origin from the preview's ready message keeps this working when the frontend lives on another origin or redirects, without trusting other senders.

(cherry picked from commit 2021581)

# Conflicts:
#	app/assets/builds/alchemy/alchemy_admin.min.js
#	app/assets/builds/alchemy/alchemy_admin.min.js.map
@tvdeyen
tvdeyen enabled auto-merge October 31, 2026 11:05
@codecov

codecov Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.43%. Comparing base (596db07) to head (1f3fbb2).

Additional details and impacted files
@@             Coverage Diff             @@
##           8.4-stable    #4432   +/-   ##
===========================================
  Coverage       98.43%   98.43%           
===========================================
  Files             369      369           
  Lines            9831     9831           
===========================================
  Hits             9677     9677           
  Misses            154      154           
Flag Coverage Δ
mariadb 97.06% <ø> (ø)
mysql 95.97% <ø> (ø)
postgresql 95.97% <ø> (ø)
sqlite 95.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tvdeyen
tvdeyen merged commit 460af5f into 8.4-stable Oct 31, 2026
28 checks passed
@tvdeyen
tvdeyen deleted the backport/8.4-stable/pr-4430 branch October 31, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants