Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

In firefox 31 when closing the tab the window.onbeforeunload keyword it work correctly, instead when you closing browser with X it don't work.

  • 1 (رد واحد)
  • 3 have this problem
  • 1 view
  • آخر ردّ كتبه guigs

more options

When i use javascript to make some actions closing the browser, it only work when i close the tab, but when i close the browser with X the javascript function ended before execute all statements. In try with other browsers all work correctly.

When i use javascript to make some actions closing the browser, it only work when i close the tab, but when i close the browser with X the javascript function ended before execute all statements. In try with other browsers all work correctly.

الحل المُختار

Hello,

The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: This will cause you to lose any Extensions and some Preferences.

  • Open websites will not be saved in Firefox versions lower than 25.

To Reset Firefox do the following:


  1. Click the menu button New Fx Menu, click help Help-29 and select Troubleshooting Information.Now, a new tab containing your troubleshooting information should open.
  2. At the top right corner of the page, you should see a button that says "Reset Firefox"Button reset. Click on it.
  3. Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
  4. Firefox will open with all factory defaults applied.

Further information can be found in the Refresh Firefox - reset add-ons and settings article.

Did this fix your problems? Please report back to us!

Thank you.

Read this answer in context 👍 0

All Replies (1)

more options

الحل المُختار

Hello,

The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: This will cause you to lose any Extensions and some Preferences.

  • Open websites will not be saved in Firefox versions lower than 25.

To Reset Firefox do the following:


  1. Click the menu button New Fx Menu, click help Help-29 and select Troubleshooting Information.Now, a new tab containing your troubleshooting information should open.
  2. At the top right corner of the page, you should see a button that says "Reset Firefox"Button reset. Click on it.
  3. Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
  4. Firefox will open with all factory defaults applied.

Further information can be found in the Refresh Firefox - reset add-ons and settings article.

Did this fix your problems? Please report back to us!

Thank you.

Modified by guigs