[BUGFIX] Timeout processing of media URL to avoid race condition 69/43369/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 16 Sep 2015 09:17:56 +0000 (11:17 +0200)
committerBenni Mack <benni@typo3.org>
Sat, 19 Sep 2015 20:19:30 +0000 (22:19 +0200)
commitaa75e8808d8abc083a872800341616869dba51b0
tree770ea16ca134b38954da809ae4d460d57d611a82
parentea5ac3929801007f503199845e6d9d7cb150ed5d
[BUGFIX] Timeout processing of media URL to avoid race condition

The new "Add media by URL" button opens a modal with a textfield
for an URL. If processing the URL fails, an error modal is displayed.
However, because of a race condition the error dialog is not closable.
Add a timeout of 200ms before processing the URL to workaround the
race condition.

Resolves: #69868
Related: #61799
Releases: master
Change-Id: I7a8f1450b73b4923a1ae9c2e0346e2571475b92e
Reviewed-on: http://review.typo3.org/43369
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/OnlineMedia.js