[wp-meta] [Making WordPress.org] #7532: WordPress embeds mistakenly load Chatrix JavaScript

Making WordPress.org noreply at wordpress.org
Mon Mar 25 16:18:58 UTC 2024


#7532: WordPress embeds mistakenly load Chatrix JavaScript
------------------------------------------------+--------------------
 Reporter:  swissspidy                          |      Owner:  (none)
     Type:  defect (bug)                        |     Status:  new
 Priority:  normal                              |  Milestone:
Component:  Communication (Matrix, Slack, IRC)  |   Keywords:
------------------------------------------------+--------------------
 If you embed a make/core post such as
 https://make.wordpress.org/core/2024/02/27/i18n-improvements-6-5
 -performant-translations/embed/ for example, they unnecessarily load the
 `https://make.wordpress.org/core/wp-
 content/plugins/chatrix/build/logout.iife.js?ver=0.9.0` JS file.

 That should not be loaded for embeds and causes console errors because the
 embed iframes are sandbox, so the JS can't access the `document` global
 variable anyway.

 To reproduce:

 1. Visit https://make.wordpress.org/core/2024/02/27/i18n-improvements-6-5
 -performant-translations/embed/ in an incognito window
 2. See the JS file being loaded

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7532>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list