#57552 closed defect (bug) (fixed)
Add 'wp-polyfill' to _wp_get_iframed_editor_assets() for inert attribute in Firefox.
| Reported by: | wildworks | Owned by: | hellofromTonya |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.2 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | has-patch gutenberg-merge commit |
| Cc: | Focuses: |
Description (last modified by )
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:
Change History (11)
This ticket was mentioned in PR #3906 on WordPress/wordpress-develop by @wildworks.
4 years ago
#1
- Keywords has-patch added
@wildworks commented on PR #3906:
4 years ago
#3
I am a little concerned that the files changed in Gutenberg are different from the files changed to backport to the WordPress core.
Is this a problem in this case?
@Mamaduka commented on PR #3906:
4 years ago
#4
No, this is correct. I think we need to match core and plugin function names.
@hellofromTonya commented on PR #3906:
4 years ago
#5
Currently reviewing for commit.
#6
@
4 years ago
- Milestone Awaiting Review → 6.2
- Owner set to
- Status new → reviewing
Self-assigning for review and commit.
#8
@
4 years ago
- Description modified (diff)
- Summary Backport loading inert polyfill into an iframe → Add 'wp-polyfill' to _wp_get_iframed_editor_assets() for inert attribute in Firefox.
#9
@
4 years ago
- Type enhancement → defect (bug)
Reclassifying as a debug. Why? This change is fixing an issue where Firefox doesn't support the inert attribute.
@hellofromTonya commented on PR #3906:
4 years ago
#11
Committed via https://core.trac.wordpress.org/changeset/55181.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket https://core.trac.wordpress.org/ticket/57552
Related Gutenberg PR: https://github.com/WordPress/gutenberg/pull/47398
@Mamaduka @ntsekouras @youknowriad