[BUGFIX] RTE: Importing google webfonts breaks style sheet parsing 60/21860/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 22:47:34 +0000 (00:47 +0200)
commitad307d2bc5765d2b0d70ae3593eb67bc7c7ad2d7
treee1b0ae467952e1ff2ae9ab3fe09b44c92d8179f6
parent347b95362c097e3780608c18964ca4d5118e638d
[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/21860
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js