[BUGFIX] RTE: Importing google webfonts breaks style sheet parsing 62/21862/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:29:57 +0000 (01:29 +0200)
commit249765e16b93d6ec4b66d8d830dc8195c2e2cca1
treece8b9fcee15f62468f16de6420e7221a29819f73
parent0fb8ed9bf766061e1907c05b6dc8ccdb1fe113f4
[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/21862
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js