Issue Bug Closed

#106170Attaching images to content elements via element browser is broken in Firefox

Garvin Hicking 02/13/25, 13:58 updated 08/12/25, 14:36

Description

It seems with Firefox (134.0.2) the changes in element-browser.js create an error, which does not happen with Chromium. It somehow seems related to CORS and the FF security model for accessing a frame?

See screenshot.

Reverting element-browser.js to the version of TYPO3 13.4.4 makes it work again.

Slack discussion thread: https://typo3.slack.com/archives/C025BQLFA/p1739386874937549

Reviews 3

Files 2

History 813

  1. Garvin Hicking changed subject Attaching images to Content elements is broken Attaching images to content elements via element browser is broken in Firefox <span data-processor="relativetime" data-value="2025-02-13T14:02:31+00:00" > 02/13/25, 14:02 </span>

  2. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-02-13T22:49:43+00:00" > 02/13/25, 22:49 </span>

    Update: The reason is LastPass. It seems to inject custom iframes, which the new JS code tries to access (because it thinks the iframes belongs to TYPO3).

    A solution would be to check the iterated iframes if they are really accessible.

  3. Oliver Hader changed attached Screenshot 2025-02-14 at 12.02.04.png <span data-processor="relativetime" data-value="2025-02-14T11:04:08+00:00" > 02/14/25, 11:04 </span>

  4. Oliver Hader commented <span data-processor="relativetime" data-value="2025-02-14T11:12:56+00:00" > 02/14/25, 11:12 </span>

    Side-note:

    I registered a free account of LastPast.com, installed the browser extension and was able to reproduce the original (faulty) behavior.

  5. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-02-17T10:00:11+00:00" > 02/17/25, 10:00 </span>

    Applied in changeset commit:c238621247e51ded79eb89b5cda5e9b2d23d641d.