MDL-68991 core: Prevent popup blockers blocking feedback window
authorShamim Rezaie <shamim@moodle.com>
Tue, 9 Jun 2020 11:34:44 +0000 (21:34 +1000)
committerShamim Rezaie <shamim@moodle.com>
Wed, 10 Jun 2020 06:10:53 +0000 (16:10 +1000)
commit292a67aede0eacc514b426f184f8ecd6b6b65569
treebb967892e2b18f733172636644a79d8b4afe5580
parent4cdcd23fb28b087e4252220b902415a99677f05b
MDL-68991 core: Prevent popup blockers blocking feedback window

Some browsers like Firefox are very inflexible with window.open()
and block it if it is not instantly invoked after the user click.

Also according to https://stackoverflow.com/a/6807615 it is best
practice to replace self:: with static::
lib/amd/build/userfeedback.min.js
lib/amd/build/userfeedback.min.js.map
lib/amd/src/userfeedback.js
lib/classes/userfeedback.php
lib/tests/behat/userfeedback.feature