Project

General

Profile

Actions

Bug #78492

closed

RTE does not reference CSS files correctly in Firefox

Added by Markus Klein over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2016-10-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

In Firefox 49.0.2 RTE fails to reference CSS files correctly.

RTE[data_tt_content__1__bodytext_][HTMLArea.Iframe::createHead]: Skin CSS set to: http://example.com/typo3//typo3/sysext/rtehtmlarea/Resources/Public/Css/Skin/htmlarea-edited-content.css

With Chrome everything works as expected though.

Actions #1

Updated by Markus Klein over 7 years ago

The culprit is typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Editor/Iframe.js

link0.href = ((UserAgent.isGecko && navigator.productSub < 2010072200 && !/^http(s?):\/{2}/.test(this.config.editedContentStyle)) ? this.config.baseURL : '') + this.config.editedContentStyle;

navigator.productSub on Firefox 49 is "20100101", which makes the condition true.

The code is rather old, but seems to work on 7.6.

Actions #2

Updated by Gerrit Code Review over 7 years ago

  • Status changed from Accepted 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/50428

Actions #3

Updated by Markus Klein over 7 years ago

  • Description updated (diff)
Actions #4

Updated by Markus Klein over 7 years ago

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

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF