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

Safari 9.1.1: No prompt after first refresh #112

Open
RandomByte opened this issue Jun 27, 2016 · 4 comments
Open

Safari 9.1.1: No prompt after first refresh #112

RandomByte opened this issue Jun 27, 2016 · 4 comments

Comments

@RandomByte
Copy link

Using the latest Safari, the user only gets prompted on the first refresh with unsaved changes. Any succeeding refreshes with unsaved form changes do not lead to a prompt.

I don't use this plugin, but see that it runs into the same issues I do with my (very similar) implementation. So maybe you guys have an idea.

Steps to reproduce

Chrome 9.1.1 on Mac OS X 10.11.5 (El Capitan)

  1. Open the Demo Page from readme
  2. Make a change in any form (e.g. change the coffee dropdown in the first form)
  3. Reload the page
    -> "Are you sure you want to leave this page?" dialog appears
  4. Confirm the dialog with "Leave Page"
  5. Make another change
  6. Reload the page
    => No dialog appears and the page gets reloaded

I suspect that this might be some kind of security measure introduced by Safari. In Chrome, all the succeeding dialogs have a little checkbox saying "Prevent this page from creating additional dialogs". Maybe the Safari developers decided to ditch any additional dialogs without asking the user (they do something similar with popup blocking).

In the latest release notes they only mention that they now use a generic string to prompt the user rather than the custom one supplied by the application.

@radeknovis
Copy link

I'm facing the same issue. Using beta Safari Version 10.0 (11602.1.32.7)

@XCame
Copy link

XCame commented Aug 10, 2016

Same behavior using Safari Version 9.1.2 (11601.7.7) on El Capitan 10.11.6 (15G31)

@missbruni
Copy link

Same problem here

@XCame
Copy link

XCame commented Sep 6, 2016

Seems to be a Safari Bug. Same Problem here on Stack Overflow without a relation to AreYouSure
http://stackoverflow.com/questions/37268874/beforeunload-not-working-in-safari-9-1-after-the-page-reloads-on-clicking-leave

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

No branches or pull requests

4 participants