[BUGFIX] Catch security exceptions in global JS module 93/45093/2
authorMarkus Klein <markus.klein@typo3.org>
Wed, 2 Dec 2015 15:39:21 +0000 (16:39 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 4 Dec 2015 10:13:42 +0000 (11:13 +0100)
commitc29b804fdfb4e60de34112ac705f38152d902b0d
tree7660877719e4ea059748e6716ad299c2e7f2efb8
parent539644a7dbb5f807450185bd9e474a48d793ad97
[BUGFIX] Catch security exceptions in global JS module

The storage JS module is loaded in the top window.
In case this windows has been opened by some other page
(different domain) then a security exception is thrown
by the browsers, which kills the execution.

Catch exceptions when accessing the opener to avoid
this particular edge case.

Resolves: #71857
Releases: master
Change-Id: Ifa19d1f70eae71ac46c66bb759580d82ce5b6c99
Reviewed-on: https://review.typo3.org/45093
Reviewed-by: Eckard Gehrke <eckard.gehrke@gmx.de>
Tested-by: Eckard Gehrke <eckard.gehrke@gmx.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Resources/Public/JavaScript/Storage.js