[BUGFIX] RTE: Importing google webfonts breaks style sheet parsing 64/21864/2
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 3 Jul 2013 22:45:12 +0000 (18:45 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 3 Jul 2013 23:52:52 +0000 (01:52 +0200)
commite48f408ce90d7eff2b158606bca9ccaa07a50037
tree739be9401c55e2f2497e16d9de4eb662a4947314
parent7de6e9aa9495b62b61b63c90fa7eadff771060b8
[BUGFIX] RTE: Importing google webfonts breaks style sheet parsing

Problem: Firefox raises a security error because the file is not in the
same domain as the executing script. Probably a Firefox bug since the
file certainly has adequate headers: the font are indeed displayed in
the RTE.

Solution: Since the Webfont style sheet does not contain any css rules
anyways, we will catch the error, and if it is a security error, log it
to the Javascript console (or Firebug) and silently continue. Re-throw
any other type of error.

Resolves: #49648
Releases: 4.5, 4.7, 6.0, 6.1, 6.2
Change-Id: I225152ad5d84de50f29d3830be6f1f3e10f249c8
Reviewed-on: https://review.typo3.org/21864
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js