Skip to content
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

Editor iframe: remove site editor Dashboard link handler #90849

Merged
merged 1 commit into from
May 22, 2024

Conversation

jsnajdr
Copy link
Member

@jsnajdr jsnajdr commented May 17, 2024

Fixes #90791. There is a handleSiteEditorBackButton click handler that detects clicks on the Site Editor Dashboard link and does a custom handling on these clicks. The handler is buggy and can sometimes cause crashes (doesn't check if element is null). And nowadays the handler no longer has any function, because we never iframe the Site Editor. See for example #76371 which was a part of the iframe deprecation effort a year ago.

This PR simply removes the handleSiteEditorBackButton handler.

@jsnajdr jsnajdr requested a review from mattwiebe May 17, 2024 15:27
@jsnajdr jsnajdr self-assigned this May 17, 2024
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label May 17, 2024
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

Copy link
Contributor

@mattwiebe mattwiebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking up the trash @jsnajdr ! 🙇‍♂️

@jsnajdr jsnajdr merged commit 0c78fc0 into trunk May 22, 2024
14 of 15 checks passed
@jsnajdr jsnajdr deleted the fix/editor-dashboard-link branch May 22, 2024 05:37
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JS error when clicking Crop button on Image block
3 participants