Make WordPress Core

Changes between Initial Version and Version 8 of Ticket #57552


Ignore:
Timestamp:
02/01/2023 08:38:42 PM (3 years ago)
Author:
hellofromTonya
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57552

    • Property Status changed from new to reviewing
    • Property Summary changed from Backport loading inert polyfill into an iframe to Add 'wp-polyfill' to _wp_get_iframed_editor_assets() for inert attribute in Firefox.
    • Property Owner set to hellofromTonya
    • Property Milestone changed from Awaiting Review to 6.2
    • Property Keywords has-patch gutenberg-merge commit added
  • 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)
     1Adds 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
     3Why?
     4
     5The 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
     7References:
     8* [https://github.com/WordPress/gutenberg/pull/47398 Gutenberg PR 47398].