Project

General

Profile

Actions

Bug #91270

closed

ContextHelp.js: Uncaught DOMException: Blocked a frame with origin "http://localhost" from accessing a cross-origin frame.

Added by Eckard Gehrke almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2020-05-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

when using typo3 v10.4.0 with Chrome I am getting an "Uncaught DOMException: Blocked a frame with origin "http://localhost" from accessing a cross-origin frame." already for bringing up the initial logon screen. it comes again after logon:

ContextHelp.js?bust=bd966a94047fa0fd0ce42f4c9226f3fdec31b627:13 Uncaught DOMException: Blocked a frame with origin "http://localhost" from accessing a cross-origin frame.
at s.initialize (http://localhost/km/typo3/sysext/backend/Resources/Public/JavaScript/ContextHelp.js?bust=bd966a94047fa0fd0ce42f4c9226f3fdec31b627:13:404)
at new s (http://localhost/km/typo3/sysext/backend/Resources/Public/JavaScript/ContextHelp.js?bust=bd966a94047fa0fd0ce42f4c9226f3fdec31b627:13:242)
at Object.<anonymous> (http://localhost/km/typo3/sysext/backend/Resources/Public/JavaScript/ContextHelp.js?bust=bd966a94047fa0fd0ce42f4c9226f3fdec31b627:13:2205)
at Object.execCb (http://localhost/km/typo3temp/assets/compressed/require-cc8b88c5ce2859197c8f05b91a61c71d.js:5:16788)
at i.check (http://localhost/km/typo3temp/assets/compressed/require-cc8b88c5ce2859197c8f05b91a61c71d.js:5:10519)
at i.<anonymous> (http://localhost/km/typo3temp/assets/compressed/require-cc8b88c5ce2859197c8f05b91a61c71d.js:5:12962)
at http://localhost/km/typo3temp/assets/compressed/require-cc8b88c5ce2859197c8f05b91a61c71d.js:5:1544
at http://localhost/km/typo3temp/assets/compressed/require-cc8b88c5ce2859197c8f05b91a61c71d.js:5:13430
at each (http://localhost/km/typo3temp/assets/compressed/require-cc8b88c5ce2859197c8f05b91a61c71d.js:5:1020)
at i.emit (http://localhost/km/typo3temp/assets/compressed/require-cc8b88c5ce2859197c8f05b91a61c71d.js:5:13397)

logon works nevertheless.

Best regards
Eckard.


Files

typo3Backend.jpg (329 KB) typo3Backend.jpg Eckard Gehrke, 2020-05-04 14:39

Related issues 4 (1 open3 closed)

Related to TYPO3 Core - Bug #91205: Backend content iFrame breaks with setting [BE][cookieSameSite]="lax" because ContextHelp.js uses "use strict"Closed2020-04-27

Actions
Related to TYPO3 Core - Bug #91262: V10.4 backend does not work any more with chrome browser Closed2020-05-01

Actions
Related to TYPO3 Core - Bug #80665: CSH on popup window - more link leads to non-existent pageClosedSusanne Moog2017-04-03

Actions
Related to TYPO3 Core - Task #90995: Integrate Cross-Origin-Opener-Policy HTTP header in backendNewOliver Hader2020-04-10

Actions
Actions #1

Updated by Andreas Kienast almost 4 years ago

  • Status changed from New to Accepted

I can confirm the issue as follows (with ddev):

  • Be logged out off the backend
  • Request a new password by using the "Forgot password" feature
  • Head to mailhog (runs on port 8025) and click the opt-in link
  • Now the console reports the mentioned issue

For some reason the issue is sometimes gone when I reload the windows using F5 (or alike), navigating doesn't solve it.

Actions #2

Updated by Andreas Kienast almost 4 years ago

  • Related to Bug #91205: Backend content iFrame breaks with setting [BE][cookieSameSite]="lax" because ContextHelp.js uses "use strict" added
Actions #3

Updated by Andreas Kienast almost 4 years ago

  • Status changed from Accepted to In Progress
Actions #4

Updated by Gerrit Code Review almost 4 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64394

Actions #5

Updated by Gerrit Code Review almost 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64394

Actions #6

Updated by Gerrit Code Review almost 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64394

Actions #7

Updated by Georg Ringer almost 4 years ago

  • Related to Bug #91262: V10.4 backend does not work any more with chrome browser added
Actions #8

Updated by Oliver Hader almost 4 years ago

  • Related to Bug #80665: CSH on popup window - more link leads to non-existent page added
Actions #9

Updated by Oliver Hader almost 4 years ago

  • Related to Task #90995: Integrate Cross-Origin-Opener-Policy HTTP header in backend added
Actions #10

Updated by Oliver Hader almost 4 years ago

@Eckard Gehrke: Please execute both commands in browser console and tell use the shown results

window.opener.document.location;
window.opener.top.document.location;

And if you could add a screenshot showing the whole backend with the error messages in the console would be great.

Thx!

Actions #11

Updated by Eckard Gehrke almost 4 years ago

The result is for both commands the same:
Uncaught DOMException: Blocked a frame with origin "http://localhost" from accessing a cross-origin frame.
at <anonymous>:1:19
(anonymous) @ VM223:1
I have added a screenshot.

The other ticket with the contexthelp seems now to be solved with 10.4.2.dev will update that later after checking again.

Actions #12

Updated by Oliver Hader almost 4 years ago

How to reproduce:

  • e.g. having a link on some cross-origin site (or bookmarklet) opening the backend
<a href="http://example.org/typo3/" target="_blank">Backend</a>
  • e.g. having a window.open action
window.open('http://example.org/typo3/')
Actions #13

Updated by Gerrit Code Review almost 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64404

Actions #14

Updated by Gerrit Code Review almost 4 years ago

Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64404

Actions #15

Updated by Andreas Fernandez almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #16

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF