Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to stop "leave page" warning

59,621 views
Skip to first unread message

Thai Guy

unread,
Jun 16, 2012, 5:48:13 PM6/16/12
to
I frequent a forum that has very slow page loading and frequently get a
"this page is asking you if you want to leave the page" after I post
something. If I don't click "Leave Page" the warning stays up there
until I click either "leave" or "stay".

Which warning in 'about:config' removes this warning? I can find lots
of warnings that may be it, but I don't want to just change a bunch
willy-nilly to find the right one.

Dave Pyles

unread,
Jun 16, 2012, 6:37:22 PM6/16/12
to
Those warnings are javascript very rudely put into the pages by the web
nerds who created them. The only way to get rid of the is to turn off
javascript, which will keep you from seeing useful information (many
menus, etc.) on other pages.
Dave Pyles

Thai Guy

unread,
Jun 16, 2012, 8:29:46 PM6/16/12
to
--->
I was kind of afraid of that. I saw references to it when I "view page
source". It is a real drag when I click something and move to another
tab only to find out that this pop-up has been waiting for me to confirm
I want to go to the next page. Sigh.

Ralph Fox

unread,
Jun 16, 2012, 11:58:24 PM6/16/12
to
The thread at this link appears to have a solution.
http://forums.mozillazine.org/viewtopic.php?f=38&t=2083577
(I have not tried the solution myself.)

It requires the Greasemonkey extension
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/


--
Kind regards
Ralph

Thai Guy

unread,
Jun 17, 2012, 2:23:04 AM6/17/12
to
--->
Looks promising. I'll check it out. Thanks, Ralph.

Christoph Schmees

unread,
Jun 18, 2012, 11:48:58 AM6/18/12
to
no need for the all-or-nothing approach. Did you ever hear of
NoScript? It allows you to selectively allow JS on a
by-site-basis. NoScript is the very first and most important
extension I install on a fresh FF installation.

Christoph

--
email:
nurfuerspam -> gmx
de -> net

Thai Guy

unread,
Jun 18, 2012, 12:01:07 PM6/18/12
to
--->
Yes, I've heard of NoScript. It also will not deal with this problem
because of the nature of the beast. So far, GreaseMonkey seems to work
after I tweaked a script I found for another site.

clay

unread,
Jun 18, 2012, 12:04:58 PM6/18/12
to
NoScript lets these pop-ups (the ones I've seen) through by default.
I haven't figured out how to find the js element to block and stop them.

davidpe...@gmail.com

unread,
Jun 7, 2013, 1:31:37 PM6/7/13
to
I have the script for Greasemonkey and have Greasemonkey installed, but how does one add this script? I know zip nada about installing a script...

Can anyone give step-by-step instructions, spelling it out for me like I'm a six year old?

THANKS




(function() {
window.addEventListener("load", foo, false);

function foo() {
var u = "beforeunload";
var v = unsafeWindow;
if (v._eventTypes && v._eventTypes[u]) {
var r=v._eventTypes[u];
for(var s=0;s<r.length;s++) {
v.removeEventListener(u,r[s],false);
}
v._eventTypes[u]=[];
}
}

»Q«

unread,
Jun 7, 2013, 3:29:32 PM6/7/13
to
On Fri, 7 Jun 2013 10:31:37 -0700 (PDT)
davidpe...@gmail.com wrote:

> I have the script for Greasemonkey and have Greasemonkey installed,
> but how does one add this script? I know zip nada about installing a
> script...
>
> Can anyone give step-by-step instructions, spelling it out for me
> like I'm a six year old?

Step one: Read
<http://wiki.greasespot.net/Greasemonkey_Manual:Installing_Scripts>

Step two: Save the script as a text file with extension .user.js

Step three: Drag-and-drop the file onto a Firefox window and follow
the installation dialog that pops up.

Step four (optional): Post back here if you hit trouble or have more
questions about the process.

MrGatoChile

unread,
Jun 7, 2013, 6:40:19 PM6/7/13
to
Thanks for the script

sergej...@gmail.com

unread,
Nov 20, 2013, 8:48:26 PM11/20/13
to
Just disable Javascript and close the window, that helps. After that you can enable javascript again.

WaltS

unread,
Nov 20, 2013, 9:13:59 PM11/20/13
to
On 11/20/2013 08:48 PM, sergej...@gmail.com wrote:
> Just disable Javascript and close the window, that helps. After that you can enable javascript again.
>


Could you explain How-to do that with the current Firefox 25.0.1? The
option to Enable JavaScript was removed from the Content options some
versions back. I can't recall which one at this time.

Sailfish

unread,
Nov 20, 2013, 10:14:16 PM11/20/13
to
My bloviated meandering follows what WaltS graced us with on 11/20/2013
6:13 PM:
Windows:
CTRL+Shift_I , click gear wheel on left of Tools toolbar , scroll down
and click Disable JavaScript checkbox under Advanced settings ?

--
Sailfish
Rare Mozilla Stuff: http://tinyurl.com/lcey2ex

WaltS

unread,
Nov 20, 2013, 10:36:48 PM11/20/13
to
I knew that, but was asking the poster that was responding to a thread
from 2012, which somebody responded to on 2013-06-07, and included
discussions about NoScript and Greasemonkey.

The solution for the problem appears to be adding Greasemonkey and
writing a script for it which was posted on 2013-06-07.


Sailfish

unread,
Nov 21, 2013, 12:35:42 AM11/21/13
to
My bloviated meandering follows what WaltS graced us with on 11/20/2013
7:36 PM:
That's the 2nd old post I got snagged into responding to as of late,
darnit! :-)

follow-uo mozilla.general

powellj...@gmail.com

unread,
Dec 14, 2013, 1:13:11 PM12/14/13
to
>just use internet explorer it won't do it

Chuck Anderson

unread,
Dec 14, 2013, 10:10:22 PM12/14/13
to
Was this answered? I've been playing with JavaScript a lot lately and am
using this JavaScript feature to avoid losing entered data (email message
composition. I am writing my own browser based email client).

That "should I stay or should I go" window is fired from a JavaScript event
called onBeforeUnload (another JavaScript function the Gecko team has ruined
with their nanny design philosophy). It is programmed into the page you are
on and the only practical way to get rid of it is to disable all JavaScript.

--
*****************************
Chuck Anderson � Boulder, CO
http://cycletourist.com
Turn Off, Tune Out, Drop In
*****************************

johnb...@gmail.com

unread,
Dec 15, 2013, 5:31:24 PM12/15/13
to
So we are being told to quit using Chrome because it has become too inflexible with regards to Javacode?
Fairly lame when a browser which is supposed to be the "smart" "fast" browser by Google is so static that Java programmers cannot program for it without subject their audience to needless aggravation like this.

»Q«

unread,
Dec 15, 2013, 10:37:48 PM12/15/13
to
In <news:E_2dna8LW4dtgDDP...@mozilla.org>,
Chuck Anderson <cyclet...@invalid.invalid> wrote:

> powellj...@gmail.com wrote:
> > On Saturday, June 16, 2012 3:48:13 PM UTC-6, Thai Guy wrote:
> >> I frequent a forum that has very slow page loading and frequently
> >> get a "this page is asking you if you want to leave the page" after I
> >> post something. If I don't click "Leave Page" the warning stays up
> >> there until I click either "leave" or "stay".
> >>
> >>
> >>
> >> Which warning in 'about:config' removes this warning? I can find
> >> lots
> >>
> >> of warnings that may be it, but I don't want to just change a
> >> bunch willy-nilly to find the right one.
> >>
> >> just use internet explorer it won't do it
>
> Was this answered?

Yeah. See the parts of the thread from June 2013 with stuff about
scripts for Greasemonkey.

(Clueless Google Groupers keep reviving the thread, including this
latest "just use IE" troll.)

> I've been playing with JavaScript a lot lately and am using this
> JavaScript feature to avoid losing entered data (email message
> composition. I am writing my own browser based email client).
>
> That "should I stay or should I go" window is fired from a JavaScript
> event called onBeforeUnload (another JavaScript function the Gecko
> team has ruined with their nanny design philosophy). It is
> programmed into the page you are on and the only practical way to get
> rid of it is to disable all JavaScript.

A Greasemonkey script can prevent onBeforeUnload events.

(It's also possible to use something called Configurable Security
Policies (CAPS) to control what events are allowed on which sites.
CAPS gives very finely grained control of everything JavaScript can do,
but it involves setting up a lot of hidden prefs and is complicated to
get right and easy to bork. IIRC this thread never got into it. The
Greasemonkey way is much easier for anybody who's not an IT
professional.)

Ed Mullen

unread,
Dec 16, 2013, 11:10:47 AM12/16/13
to
javascript - NOT Java.

--
Ed Mullen
http://edmullen.net/
If an orange is orange, why isn't a lime called a green or a lemon
called a yellow?

Chuck Anderson

unread,
Dec 17, 2013, 8:39:55 PM12/17/13
to
I actually want to use the unBeforeUnload event in a web application (an email
client) to prevent losing entered data (email composition). Firefox treats
the event different than all other browsers, though, and will not allow
customization of the handler dialog. I would like to ask the user if they
wish to Save, Send or Cancel, but can not make tis happen in Firefox.

Oh ... and I did not notice until after I posted how old the message I was
replying to was.

D'oH! (Google Groups strikes again)

»Q«

unread,
Dec 17, 2013, 9:14:21 PM12/17/13
to
In <news:BPCdnZrttqfdYC3P...@mozilla.org>,
Chuck Anderson <cyclet...@invalid.invalid> wrote:

> I actually want to use the unBeforeUnload event in a web application
> (an email client) to prevent losing entered data (email
> composition). Firefox treats the event different than all other
> browsers, though, and will not allow customization of the handler
> dialog. I would like to ask the user if they wish to Save, Send or
> Cancel, but can not make tis happen in Firefox.

My javascript capabilities are pretty limited, and I don't have any
clue how to do what you want. You might want to root around at
<https://developer.mozilla.org/docs/Web>, especially in the JS and Web
API sections. And I think mozilla.dev.webapps is the place to get help
with this kind of stuff; if there's a better place, they should be
able to point you to it. Good luck!

WaltS

unread,
Dec 17, 2013, 9:24:56 PM12/17/13
to
He might also want to peruse or ask on comp.lang.javascript if he has a
Usenet account.


spekb...@gmail.com

unread,
Jan 22, 2014, 2:08:44 AM1/22/14
to
Clear my browsing history, seemed to help.

Keith Nuttle

unread,
Jan 22, 2014, 8:20:01 AM1/22/14
to
I always thought this was some way coded into the page, as it only
appears on those aggressive advertising pages.




leewo...@gmail.com

unread,
Mar 12, 2014, 2:25:18 AM3/12/14
to
I have hit upon a solution to this problem. I am dropping Firefox. I am fed up with their many problems and idiosyncrasies. IE isn't looking so bad after all.
>

Annailis

unread,
Mar 12, 2014, 8:25:37 AM3/12/14
to
On 12/03/2014 2:25 AM, leewo...@gmail.com wrote:
> I have hit upon a solution to this problem. I am dropping Firefox. I am fed up with their many problems and idiosyncrasies. IE isn't looking so bad after all.
>>

What "leave page" warning?

--
AW

Roger

unread,
Mar 12, 2014, 10:00:15 AM3/12/14
to
On 3/12/2014 1:25 AM, leewo...@gmail.com wrote:
>I am fed up with their many problems and idiosyncrasies. IE isn't looking so bad after all.
>>

I love this sentence, particularly the reference to FF's idiosyncrasies.
But even IE is not so good. It would be great for all of us to have
just one fully configurable browser.

WaltS

unread,
Mar 12, 2014, 10:34:04 AM3/12/14
to
This one originally posted 2012-06-16.

https://groups.google.com/d/msg/mozilla.support.firefox/7vsGvolXZC8/NTcbN23txeMJ

Which was resurrected a year later.

https://groups.google.com/d/msg/mozilla.support.firefox/7vsGvolXZC8/TxN9fNweLYoJ

Love those pesky Google Groupers.

Ron Hunter

unread,
Mar 12, 2014, 10:44:58 AM3/12/14
to
Some websites detect an effort to leave their server, and ask if you
really want to do this. It's rather annoying. Another annoying
practice is to 'stuff' the history with several copies of the current
website link preventing the back button from taking you back.

Adam Kubias

unread,
Mar 12, 2014, 12:48:47 PM3/12/14
to
I don't understand... those leave page warnings are not browser specific.

Was Greywolf

unread,
Mar 12, 2014, 3:24:43 PM3/12/14
to
Many people have, erm, let's say _incomplete_ concepts of what a browser
does, what the internet is, etc.

But then, most people have an incomplete concept of what happens when
they step on the accelerator. Or the brake. Etc.

HTH

--
Best,
Wolf K.

Annailis

unread,
Mar 12, 2014, 7:10:21 PM3/12/14
to
Thanks. Don't see those "leave page" warnings too often myself.
All software has quirks.

--
AW

Ralph Fox

unread,
Mar 12, 2014, 7:54:59 PM3/12/14
to
On Wed, 12 Mar 2014 19:10:21 -0400, Annailis wrote:

> Thanks. Don't see those "leave page" warnings too often myself.
> All software has quirks.


It is the web page which is doing that, not a quirk
in the browser.

The idea is that web-based applications can ask if
you want to save your data before leaving. Most
sites don't need it or use it.


--
Kind regards
Ralph

Was Greywolf

unread,
Mar 12, 2014, 11:58:00 PM3/12/14
to
On 2014-03-12 7:10 PM, Annailis wrote:
[...]
> Thanks. Don't see those "leave page" warnings too often myself.
> All software has quirks.

It's not FF, it's the website that asks you whether you want to leave
that page. FF merely displays what the website/page code tells it to
display.

I usually see the warning when I leave an in interactive page on which
I've entered some data, which could be as innocuous as clicking a
button. IOW, when the page detects what may be unfinished business. The
website's owner(s) may be over-zealous in providing the warning, but
it's meant as a courtesy.

Ron Hunter

unread,
Mar 13, 2014, 3:07:51 AM3/13/14
to
Most of the ones I see are just reluctant to let me leave until I give
them the information they want.

Was Greywolf

unread,
Mar 13, 2014, 7:51:42 AM3/13/14
to
That too. ;-)

--
Best,
Wolf K.

pattyan...@gmail.com

unread,
Apr 20, 2014, 1:07:00 PM4/20/14
to
I close the browser in the task bar, could be a virus wanting to run an exe file wanting to install on click regardless of what the windows says.

programming could install a key tracker when you click leave.

ctrl/alt/delete/ click on chrome and shut down all of them and start browsing over with a new window.

Wolf K.

unread,
Apr 20, 2014, 2:39:22 PM4/20/14
to
"Do you want to leave [this] page?" is evoked by Facebook among others.
I avoid it by creating a new tab, which creates blank page. Shut down
from there.

--
Best,
Wolf K.
kirkwood40.blogspot.ca

kris...@gmail.com

unread,
Apr 27, 2014, 11:01:30 AM4/27/14
to

you are going to love this. I hit post reply to add my bit, and changed my mind. I hit delete, or cancel, whatever, and there it was! The same style pop up box we are talking about appeared!

sylvia....@gmail.com

unread,
Apr 23, 2015, 9:17:54 PM4/23/15
to mozilla-sup...@lists.mozilla.org
go to about:config and set dom.disable_beforeunload = true, reboot firefox and this annoying warning shall never appear again! :)

poss...@gmail.com

unread,
Jul 24, 2016, 1:13:21 PM7/24/16
to mozilla-sup...@lists.mozilla.org
Would like to leave this page, wentto it in erra.

Paul in Houston, TX

unread,
Jul 24, 2016, 1:19:48 PM7/24/16
to mozilla-sup...@lists.mozilla.org
poss...@gmail.com wrote:
> Would like to leave this page, wentto it in erra.

Turn off JS.

WaltS48

unread,
Jul 24, 2016, 1:40:09 PM7/24/16
to mozilla-sup...@lists.mozilla.org
On 07/24/2016 01:01 PM, poss...@gmail.com wrote:
> Would like to leave this page, wentto it in erra.
>
Click "OK", "Leave Page" or whatever the action is to leave the page,
and don't go back there again.

--
Visit Pittsburgh <http://www.visitpittsburgh.com/>
Three Rivers Regatta <http://yougottaregatta.com/>
Little Italy Days <http://littleitalydays.com/>
Pittsburgh Renaissance Festival <http://pittsburghrenfest.com/>
Britsburgh <http://bacpgh.com/our-programs/events/britsburgh/>
Ubuntu 16.04LTS

Ed Mullen

unread,
Jul 24, 2016, 1:47:47 PM7/24/16
to mozilla-sup...@lists.mozilla.org
On 7/24/2016 at 1:01 PM, poss...@gmail.com's prodigious digits fired off:
> Would like to leave this page, wentto it in erra.
>
>

Turn off javascript.

--
Ed Mullen
http://edmullen.net/
Borrow money from pessimists-they don't expect it back.

Good Guy

unread,
Jul 24, 2016, 1:51:46 PM7/24/16
to mozilla-sup...@lists.mozilla.org
On 24/07/2016 18:01, poss...@gmail.com wrote:
Would like to leave this page, wentto it in erra.
 

Just close the browser and start again if some script is stopping you from leaving it.

--
With over 350 million devices now running Windows 10, customer satisfaction is higher than any previous version of windows.

EE

unread,
Jul 24, 2016, 2:52:25 PM7/24/16
to mozilla-sup...@lists.mozilla.org
Good Guy wrote:
> On 24/07/2016 18:01, poss...@gmail.com wrote:
>> Would like to leave this page, wentto it in erra.
>
> Just close the browser and start again if some script is stopping you
> from leaving it.
>
What I really do not like is a page that will take you right back to
itself if you click the Back button. I defeat that by going back 2
steps after right-clicking the Back button.

Chris Ilias

unread,
Jul 24, 2016, 3:26:13 PM7/24/16
to mozilla-sup...@lists.mozilla.org
On 2016-07-24 1:01 PM, poss...@gmail.com wrote:
> Would like to leave this page, wentto it in erra.

Try this:
1. In the location bar, type "about:config" (without the quotes) and
press <Enter>.
2. Click [I'll be careful, I Promise!]
3. Search for the preference:
dom.disable_beforeunload
4. Double-click on it to set the value to True.

--
Chris Ilias <http://ilias.ca>
Mailing list/Newsgroup moderator

J. P. Gilliver (John)

unread,
Jul 24, 2016, 3:46:39 PM7/24/16
to mozilla-sup...@lists.mozilla.org
In message
<mailman.1061.146938836...@lists.mozilla.org>, Chris
Ilias <nm...@ilias.ca> writes:
>On 2016-07-24 1:01 PM, poss...@gmail.com wrote:
>> Would like to leave this page, wentto it in erra.
>
>Try this:
>1. In the location bar, type "about:config" (without the quotes) and
>press <Enter>.
>2. Click [I'll be careful, I Promise!]
>3. Search for the preference:
>dom.disable_beforeunload
>4. Double-click on it to set the value to True.
>
What version of Firefox did that come in with? (Will it actually do
anything if added to earlier versions?)
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

live your dash. ... On your tombstone, there's the date you're born and the
date you die - and in between there's a dash. - a friend quoted by Dustin
Hoffman in Radio Times, 5-11 January 2013

John McGaw

unread,
Jul 24, 2016, 4:23:35 PM7/24/16
to mozilla-sup...@lists.mozilla.org
On 7/24/2016 1:39 PM, WaltS48 wrote:
> On 07/24/2016 01:01 PM, poss...@gmail.com wrote:
>> Would like to leave this page, wentto it in erra.
>>
> Click "OK", "Leave Page" or whatever the action is to leave the page, and
> don't go back there again.
>

Probably not a great idea. Any webpage which plays such games might just be
making use of your clicks for some nefarious purposes like installing
little gifts for you to discover later. Online paranoia is almost always
the appropriate response IMHO. What I don't understand is why simply
closing the tab wouldn't work; at least I've never seen a page where that
wouldn't work.

Paul in Houston, TX

unread,
Jul 24, 2016, 5:14:38 PM7/24/16
to mozilla-sup...@lists.mozilla.org
Chris Ilias wrote:
> On 2016-07-24 1:01 PM, poss...@gmail.com wrote:
>> Would like to leave this page, wentto it in erra.
>
> Try this:
> 1. In the location bar, type "about:config" (without the quotes) and press <Enter>.
> 2. Click [I'll be careful, I Promise!]
> 3. Search for the preference:
> dom.disable_beforeunload
> 4. Double-click on it to set the value to True.

Have that in my SM 2.26 set to True for ages.
Dose not help.

username

unread,
Jul 24, 2016, 9:50:13 PM7/24/16
to mozilla-sup...@lists.mozilla.org
I once landed on a page that would not even let me close Firefox. The
only way to leave without playing the game was reboot the pc.

Chris Ilias

unread,
Jul 24, 2016, 10:14:06 PM7/24/16
to mozilla-sup...@lists.mozilla.org
On 2016-07-24 3:44 PM, J. P. Gilliver (John) wrote:
> In message
> <mailman.1061.146938836...@lists.mozilla.org>, Chris
> Ilias <nm...@ilias.ca> writes:
>>
>> Try this:
>> 1. In the location bar, type "about:config" (without the quotes) and
>> press <Enter>.
>> 2. Click [I'll be careful, I Promise!]
>> 3. Search for the preference:
>> dom.disable_beforeunload
>> 4. Double-click on it to set the value to True.
>
> What version of Firefox did that come in with?

It was implemented in Firefox 29.

> (Will it actually do
> anything if added to earlier versions?)

No.

Paul in Houston, TX

unread,
Jul 24, 2016, 11:51:10 PM7/24/16
to mozilla-sup...@lists.mozilla.org
Chris Ilias wrote:
> On 2016-07-24 3:44 PM, J. P. Gilliver (John) wrote:
>> In message
>> <mailman.1061.146938836...@lists.mozilla.org>, Chris
>> Ilias <nm...@ilias.ca> writes:
>>>
>>> Try this:
>>> 1. In the location bar, type "about:config" (without the quotes) and
>>> press <Enter>.
>>> 2. Click [I'll be careful, I Promise!]
>>> 3. Search for the preference:
>>> dom.disable_beforeunload
>>> 4. Double-click on it to set the value to True.
>>
>> What version of Firefox did that come in with?
>
> It was implemented in Firefox 29.
>
>> (Will it actually do
>> anything if added to earlier versions?)
>
> No.

:(

Keith Nuttle

unread,
Jul 25, 2016, 7:45:37 AM7/25/16
to mozilla-sup...@lists.mozilla.org
On 7/24/2016 3:44 PM, J. P. Gilliver (John) wrote:
> On 2016-07-24 1:01 PM, poss...@gmail.com wrote:
>> Would like to leave this page, wentto it in erra.
>
> Try this:
> 1. In the location bar, type "about:config" (without the quotes) and
> press <Enter>.
> 2. Click [I'll be careful, I Promise!]
> 3. Search for the preference:
> dom.disable_beforeunload
> 4. Double-click on it to set the value to True.
I have seen the Leave Page Warning but only in the context of an
incomplete message on a forum.

I visit several garden forums. If after clicking to bring up the
response forum, partially filling it in, and then deciding not to send
it; I routinely get this message. Closing the tab will take care of
the problem.

It is funny, I saw this as a feature not a bug.

Mark Lloyd

unread,
Jul 25, 2016, 12:20:33 PM7/25/16
to mozilla-sup...@lists.mozilla.org
On 07/24/2016 01:51 PM, EE wrote:

[snip]

> What I really do not like is a page that will take you right back to
> itself if you click the Back button. I defeat that by going back 2
> steps after right-clicking the Back button.
>

I don't like those either, although it's been a few years since I've
seen one.

--
Mark Lloyd
http://notstupid.us/

"The language and concepts contained herein are guaranteed not to cause
eternal torment in the place where the guy with the horns and pointed
stick conducts his business." [Frank Zappa]

Mark Lloyd

unread,
Jul 25, 2016, 12:25:47 PM7/25/16
to mozilla-sup...@lists.mozilla.org
On 07/24/2016 08:49 PM, username wrote:

[snip]

> I once landed on a page that would not even let me close Firefox. The
> only way to leave without playing the game was reboot the pc.

I've been on one like that (it's been several years, so I don't remember
the URL). It would also open new tabs at a rate of about 4 per second.
It was hard to close them faster than that.

Good Guy

unread,
Jul 25, 2016, 12:32:06 PM7/25/16
to mozilla-sup...@lists.mozilla.org
On 25/07/2016 17:25, Mark Lloyd wrote:

I've been on one like that (it's been several years, so I don't remember the URL). It would also open new tabs at a rate of about 4 per second. It was hard to close them faster than that.

Porn sites used to do that!! 

WaltS48

unread,
Jul 25, 2016, 12:46:24 PM7/25/16
to mozilla-sup...@lists.mozilla.org
On 07/25/2016 12:19 PM, Mark Lloyd wrote:
> On 07/24/2016 01:51 PM, EE wrote:
>
> [snip]
>
>> What I really do not like is a page that will take you right back to
>> itself if you click the Back button. I defeat that by going back 2
>> steps after right-clicking the Back button.
>>
>
> I don't like those either, although it's been a few years since I've
> seen one.
>

I catch one occasionally. Usually when I forget to click the Home link
in the page, which almost all sites have now. :-[

EE

unread,
Jul 25, 2016, 3:21:30 PM7/25/16
to mozilla-sup...@lists.mozilla.org
Chris Ilias wrote:
> On 2016-07-24 1:01 PM, poss...@gmail.com wrote:
>> Would like to leave this page, wentto it in erra.
>
> Try this:
> 1. In the location bar, type "about:config" (without the quotes) and
> press <Enter>.
> 2. Click [I'll be careful, I Promise!]
> 3. Search for the preference:
> dom.disable_beforeunload
> 4. Double-click on it to set the value to True.
>
What happens if you set dom.disable_unload to true? Does that cause
problems?

»Q«

unread,
Jul 25, 2016, 3:57:07 PM7/25/16
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.1095.146947447...@lists.mozilla.org>,
It will stop this from happening:
<https://developer.mozilla.org//docs/Web/API/WindowEventHandlers/onbeforeunload>

> Does that cause problems?

It can. For me, it causes a problem with a web app which has a tabbed
interface. Sometimes I click to close the tab in Fx when I only mean
to close one of the app's tabs, and the JavaScript-driven warning that
I'm closing the app's page is all the prevents me from losing data I
wanted to keep.

If you never need any warnings about leaving pages, then there
shouldn't be any negative consequences from toggling the pref.
0 new messages