Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editor: Add 'wp-polyfill' to _wp_get_iframed_editor_assets() for iner…
…t attribute in Firefox. Adds the polyfill script to the iframe to make the `inert` attribute work correctly in Firefox. This solves the problem that the site editor can operate on the block editor in Firefox even in browse mode. Why? The inert attribute is intended to render the element and its sub-tree elements `inert`, but Firefox doesn't support this attribute. For the `inert` attribute to work as intended in Firefox, even within an iframe, the script needs to be injected into the iframe as well as the global document. References: * [WordPress/gutenberg#47398 Gutenberg PR 47398]. Follow-up to [53160]. Props wildworks, mamaduka, youknowriad. Fixes #57552. Built from https://develop.svn.wordpress.org/trunk@55181 git-svn-id: http://core.svn.wordpress.org/trunk@54714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information