Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle multiple javascript modal prompts #2120

Merged
merged 2 commits into from
May 2, 2017
Merged

handle multiple javascript modal prompts #2120

merged 2 commits into from
May 2, 2017

Conversation

brendankenny
Copy link
Member

@brendankenny brendankenny commented May 1, 2017

followup to #2106. Solution there only closes the first dialog popup, but we want to always close them, including over a page reload per pass (the test site in #1939 must persist your selection somehow because it now works).

Discovered while adding a smoketest that we handle dismissing modal prompts, so PR also includes that :)

also add a window.confirm to dbw_tester
@brendankenny brendankenny changed the title handle mutiple javascript modal prompts handle multiple javascript modal prompts May 1, 2017
Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

word, do we have an audit for this? seems like we should've before geolocation and notifications if we don't :) haha

@brendankenny
Copy link
Member Author

@ebidel suggested one in #1939 (comment). Even worse than geolocation or notification prompts, so yeah, we really should :)

@paulirish
Copy link
Member

while you're here can you add a log.warn to log that we're dismissing a modal.

@brendankenny
Copy link
Member Author

while you're here can you add a log.warn to log that we're dismissing a modal.

done

@brendankenny brendankenny merged commit 40033d8 into master May 2, 2017
@brendankenny brendankenny deleted the prompt branch May 2, 2017 20:45
paulirish pushed a commit to paulirish/lighthouse that referenced this pull request May 5, 2017
* warn when a JS dialog is suppressed
* add a window.confirm to dbw_tester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants