Changes between Initial Version and Version 8 of Ticket #57552
- Timestamp:
- 02/01/2023 08:38:42 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57552
-
Property
Status
changed from
newtoreviewing -
Property
Summary
changed from
Backport loading inert polyfill into an iframetoAdd 'wp-polyfill' to _wp_get_iframed_editor_assets() for inert attribute in Firefox. - Property Owner set to hellofromTonya
-
Property
Milestone
changed from
Awaiting Reviewto6.2 - Property Keywords has-patch gutenberg-merge commit added
-
Property
Status
changed from
-
Ticket #57552 – Description
initial v8 1 This ticket tracks the addition of inert polyfill to the iframe editor instance. 2 It's a backport from the Gutenberg plugin. (https://github.com/WordPress/gutenberg/pull/47398) 1 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. 2 3 Why? 4 5 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. 6 7 References: 8 * [https://github.com/WordPress/gutenberg/pull/47398 Gutenberg PR 47398].