X
Tap here to go to the mobile version of the site.

Support Forum

Stop web page from asking me if really want to leave

Posted

gmail stops me from leaving

gmail stops me from leaving
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

More Information

jscher2000
  • Top 10 Contributor
8699 solutions 71104 answers

This can be a useful feature to avoid losing unsaved work in progress --

-- but some sites may abuse it. Unfortunately, I'm not aware of a way to disable the "hook" for this only for some sites, it's all or none.

If you want to try it anyway:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste beforeunload and pause while the list is filtered

(3) To completely block all sites from hooking into this event, double-click the dom.disable_beforeunload preference to switch the value from false to true

This can be a useful feature to avoid losing unsaved work in progress -- <img src="https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2019-09-07-15-33-52-5ebb71.png" width="500"> -- but some sites may abuse it. Unfortunately, I'm not aware of a way to disable the "hook" for this only for some sites, it's all or none. If you want to try it anyway: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste '''beforeunload''' and pause while the list is filtered (3) To completely block all sites from hooking into this event, double-click the '''dom.disable_beforeunload''' preference to switch the value from false to true
Was this helpful to you?
Quote

Question owner

That fix did work until a few days ago, but even though about:config is set to dom.disable_beforeunload True, firefox stops the page from redirecting out of gmail.

That fix did work until a few days ago, but even though about:config is set to dom.disable_beforeunload True, firefox stops the page from redirecting out of gmail.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17482 solutions 157978 answers

Quote: firefox stops the page from redirecting out of gmail.

Are you opening an external link when this happens? Are you composing a new message ?

Did you make changes on about:config to how links are opened?

For links opened via JavaScript you can look at this pref:

Quote: ''firefox stops the page from redirecting out of gmail.'' Are you opening an external link when this happens? Are you composing a new message ? Did you make changes on about:config to how links are opened? *http://kb.mozillazine.org/browser.link.open_newwindow *1: current tab; 2:new window; 3:new tab; For links opened via JavaScript you can look at this pref: *http://kb.mozillazine.org/browser.link.open_newwindow.restriction

Modified by cor-el

Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8699 solutions 71104 answers

What does the message look like?

Is it some kind of outbound link or redirect warning?

What does the message look like? Is it some kind of outbound link or redirect warning?
Was this helpful to you?
Quote

Question owner

the message is: firefox prevented this page from automatically redirecting to another page. I thought it was just when I was in gmail, but now it's other pages as well. the about:config dom...was already changed to true

the message is: firefox prevented this page from automatically redirecting to another page. I thought it was just when I was in gmail, but now it's other pages as well. the about:config dom...was already changed to true
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8699 solutions 71104 answers

davidready said

the message is: firefox prevented this page from automatically redirecting to another page.

Different issue. Undo the first preference change and:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box above the list, type or paste access and pause while the list is filtered

(3) If the accessibility.blockautorefresh preference is bolded and "modified" or "user set" to true, double-click it to restore the default value of false

''davidready [[#answer-1250322|said]]'' <blockquote> the message is: firefox prevented this page from automatically redirecting to another page. </blockquote> Different issue. Undo the first preference change and: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button accepting the risk. (2) In the search box above the list, type or paste '''access''' and pause while the list is filtered (3) If the '''accessibility.blockautorefresh''' preference is bolded and "modified" or "user set" to true, double-click it to restore the default value of false
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.