Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:38:25+00:00 2026-05-31T05:38:25+00:00

The following gist: https://gist.github.com/1876791 (borrowed from the demo in this question ) is a

  • 0

The following gist: https://gist.github.com/1876791 (borrowed from the demo in this question)
is a dead simple example of usage of window.onbeforeunload in js.

The problem we have is the following (Happens with Safari 5.1.3 and not Latest Chrome version):

  1. Visit this page: https://web.archive.org/web/20211028110528/http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm
  2. Click on one of the links, you will get an alert asking you if you really want to leave this page
  3. Click “Stay On Page”
  4. Reload the page using cmd-R. You will be asked another time if you really want to leave the page
  5. Click “Stay On Page”.
  6. Safari stays in a “loading” status, with the progress bar showing as if it were to load the next page.

Is this a bug from Safari ? Is there a way to circumvent this problem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:38:26+00:00Added an answer on May 31, 2026 at 5:38 am

    I was able to reproduce this issue even while skipping OP’s steps 2 and 3. Any form of reload exhibits this issue. Minimalistic steps to reproduce:

    1. Visit the page in question.
    2. Hit reload.
    3. Click “Stay on Page” button.

    The loading progress is visually pre-engaged right after the reload hit and stays so for the entire life of the confirm dialog (apparently in an effort to communicate the “hanging over cliff edge”-type mature of the situation 😉 However:

    • When dialog is dismissed with “Stay on page” button, it leaves the stopping X symbol on and the loading progress still engaged and frozen somewhere around 10% mark.
    • This “loading” can NOT be cancelled by any means (keyboard, button, script).
    • Network tab in Web Inspector asserts NO loading happening.

    This really looks like a Webkit/Safari UI bug – it looks to fail to disengage the progress bar in stay-on-page conditions. Best would be to report it to the Webkit team or, since you experience this in Safari, maybe the Safari team would be better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to install nodejs and apache on the same server following this: https://gist.github.com/754303
So I used the html2haml converter to convert the following: https://gist.github.com/1379702 from http://css-tricks.com/2361-jquery-ui-tabs-with-nextprevious/ to
Dcraw contains a following algorithm to process image colors: https://gist.github.com/1047302 . Is it a
Greetings, I have the following service running in the background: https://gist.github.com/807968 When I close
I installed Rails 3 by following this gist: http://gist.github.com/296055 But when I try rails
Following on from this question what would be the best way to write a
Following up from this question: How can I unlock a file that is locked
http://gist.github.com/172341 ( stackoverflow was breaking the formatting ) In the following case method name
UPDATE : The full site code is here - https://github.com/eWizardII/PeerInstruction I have the following
Following on from my recent question on Large, Complex Objects as a Web Service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.