[wp-trac] [WordPress Trac] #44306: wp-embed-template.js Sends a message earlier than the wp-embed.js listener will be installed
WordPress Trac
noreply at wordpress.org
Mon Oct 11 13:37:18 UTC 2021
#44306: wp-embed-template.js Sends a message earlier than the wp-embed.js listener
will be installed
--------------------------+-----------------------------
Reporter: Cawa-93 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Embeds | Version: 4.9.6
Severity: normal | Resolution:
Keywords: | Focuses: javascript
--------------------------+-----------------------------
Changes (by swissspidy):
* severity: major => normal
* milestone: Awaiting Review => Future Release
Comment:
Copying over from #44632:
To solve the race condition, I think `wp-embed-template.js` should
* not send the message on load if the secret is missing
* send the message as soon as the secret has been added (which means `wp-
embed.js` has been loaded)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44306#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list