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 8356251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:07:54+00:00 2026-06-09T10:07:54+00:00

There is know bug where Firefox closes the open websocket connection when the user

  • 0

There is know bug where Firefox closes the open websocket connection when the user presses ESC button.
Is there a workaround or small jQuery code that can help me to prevent that?
I was thinking to start a new websocket connection every time the current connection is being closed, but that seems a little dangerous.

  • 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-06-09T10:07:57+00:00Added an answer on June 9, 2026 at 10:07 am

    Have a look at https://bugzilla.mozilla.org/show_bug.cgi?id=676881 where this problem and a partial fix is discussed. The following snippet executed after the page is loaded works for me:

    $(window).keydown(function(event) {
        // check for escape key
        if (event.which == 27) {
            // the following seems to fix the symptom but only in case the document has the focus
            event.preventDefault();
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My current method: if there's a function that I know has an bug, I
I know there is the bug where absolute elements appear above relative ones. However
I know there are many bug tracking/project management programs out there. For my main
Does anyone out there know how to integrate ContentFlow ( http://www.jacksasylum.eu/ContentFlow ) and Lightbox2
Does anybody out there know how to setup Eclipse with MinGW or Cygwin to
I was hoping some of you guru's out there know the answer to this
I know there have been many questions on grid and pack in the past
I know there are lots of tools on the net that can make our
I know there is a lot on this topic but I can't get any
I know there are a few workarounds to create an always visible bottom menu

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.