Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Do not use about:blank as src in other Webkit browsers than Chrome #31

Merged
merged 1 commit into from
Mar 19, 2019
Merged

Conversation

andreaskienast
Copy link
Contributor

Only Chrome needs about:blank as iframe src as introduced in #28. Safari
can't handle this and treats about:blank as a cross origin.

Resolves: #30
Related: #26

@@ -214,7 +214,7 @@ define(['TYPO3/CMS/Rtehtmlarea/HTMLArea/UserAgent/UserAgent',
id: this.editorId + '-iframe',
tag: 'iframe',
cls: 'editorIframe',
src: UserAgent.isGecko ? 'javascript:void(0);' : (UserAgent.isWebKit ? 'about:blank;' : HTMLArea.editorUrl + 'Resources/Public/Html/blank.html')
src: UserAgent.isGecko ? 'javascript:void(0);' : (UserAgent.isWebKit ? (UserAgent.isChrome ? 'about:blank;' : 'javascript: \'' + Util.htmlEncode(this.config.documentType + this.config.blankDocument) + '\'' ): HTMLArea.editorUrl + 'Resources/Public/Html/blank.html')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you fix the indention please?

…Chrome

Only Chrome needs `about:blank` as iframe src as introduced in #28. Safari
can't handle this and treats `about:blank` as a cross origin.

Resolves: #30
Related: #26
@pschriner
Copy link

What about Opera, Vivaldi?

@andreaskienast
Copy link
Contributor Author

@pschriner are you able to test this in these browsers?

@andreaskienast
Copy link
Contributor Author

I just installed Vivaldi 2.3.1440.61 now, htmlarea is still functional.

@pschriner
Copy link

pschriner commented Mar 15, 2019

On Opera 60.0.3254.0 (current developer), which seems to be based on Chrome 73 (Developer console whats new), the original version does not work (which means: about:blank is required).

On Opera 59.x (based on chrome 72) it works (no surprises)

This patch seems to work right

@bmack bmack merged commit e1c69be into FriendsOfTYPO3:master Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants