[wp-trac] [WordPress Trac] #57552: Add 'wp-polyfill' to _wp_get_iframed_editor_assets() for inert attribute in Firefox.
WordPress Trac
noreply at wordpress.org
Wed Feb 1 20:42:38 UTC 2023
#57552: Add 'wp-polyfill' to _wp_get_iframed_editor_assets() for inert attribute in
Firefox.
----------------------------------------------+----------------------------
Reporter: wildworks | Owner:
| hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch gutenberg-merge commit | Focuses:
----------------------------------------------+----------------------------
Changes (by hellofromTonya):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"55181" 55181]:
{{{
#!CommitTicketReference repository="" revision="55181"
Editor: Add 'wp-polyfill' to _wp_get_iframed_editor_assets() for inert
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:
* [https://github.com/WordPress/gutenberg/pull/47398 Gutenberg PR 47398].
Follow-up to [53160].
Props wildworks, mamaduka, youknowriad.
Fixes #57552.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57552#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list