• Robert Knight's avatar
    Fix login flow triggering popup blocker in Firefox and IE · 7626dd65
    Robert Knight authored
    hypothesis/client#603 broke the login popup window in Firefox and IE
    because the call to `window.open` no longer happens in the same turn of
    the event loop as the user's click on the "Login" link. It is therefore
    no longer considered in FF to have happened "in response to a user
    gesture".
    
    This PR fixes the issue by separating creation and use of the popup
    window into separate functions and moving creation to happen earlier, in
    the same event loop turn as the "Login" button click.
    
    Fixes #534
    7626dd65
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
yarn.lock Loading commit data...