Skip to content
Permalink
Browse files

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

…Chrome

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

Resolves: FriendsOfTYPO3#30
Related: FriendsOfTYPO3#26
  • Loading branch information...
andreasfernandez committed Mar 15, 2019
1 parent 97a857f commit 9ea2d82a798ae1e60c88980eb4d69d15ae1ba4be
Showing with 1 addition and 1 deletion.
  1. +1 −1 Resources/Public/JavaScript/HTMLArea/Editor/Editor.js
@@ -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')
},
isNested: this.isNested,
nestedParentElements: this.nestedParentElements,

0 comments on commit 9ea2d82

Please sign in to comment.
You can’t perform that action at this time.