real explicit tab close

Discussion of features in Seamonkey
Post Reply
Michael REMY
Posts: 323
Joined: December 19th, 2009, 2:27 am

real explicit tab close

Post by Michael REMY »

hi,

some bad pages have a auto-javascript confirm alertbox which is displayed once you decided to close (or navigate away) a page (a tab).

when you close a tab by right click-mouse action (contextual menu on tab's name), this javascript should not be displayed because you do the close operation volontary.
but i don't know why, seamonkey allows to the webpage to display it and block the close operation, what is very boring.

moreover when you close seamonkey (by the top right windows cross), the javascript alert is not allowed in that case, so why the contextual action did not do the same thing ?

best regards,


Mike
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: real explicit tab close

Post by patrickjdempsey »

There are two things you can try. In about:config try setting the following to true to disable alerts that attempt to prevent tab close:
dom.disable_beforeunload

Secondly, Firefox does not have this problem because Firefox moved over to using modal dialogs for alerts. Modal dialogs do not prevent you from closing the tab or switching to a different tab. For whatever reason SeaMonkey does not appear to use this, and the preference for it is missing. I am not sure if it works as I don't have a test example handy, but this is the preference in Firefox, set it to true:
prompts.tab_modal.enabled
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: real explicit tab close

Post by Philip Chee »

patrickjdempsey wrote:Secondly, Firefox does not have this problem because Firefox moved over to using modal dialogs for alerts.
Err, Firefox moved over to using NON-modal dialogs. Everything else you said is correct.

Phil
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: real explicit tab close

Post by patrickjdempsey »

Ooops. Right!
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
Michael REMY
Posts: 323
Joined: December 19th, 2009, 2:27 am

Re: real explicit tab close

Post by Michael REMY »

here a crappy page :
http://journal-des-bourses.com/trk/

when you try to close it, you have a boring alertbox ! (both by cross buton and contextual menu)
when tou close it with a bunch of other page (like google homepage) and decide to close all the tab, then the alertbox is not showing up ! why this is not that way with closing by contextual menu or cross box ?
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: real explicit tab close

Post by patrickjdempsey »

If you change the about:config preference like I said you don't get that.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
Michael REMY
Posts: 323
Joined: December 19th, 2009, 2:27 am

Re: real explicit tab close

Post by Michael REMY »

patrickjdempsey wrote:If you change the about:config preference like I said you don't get that.


i just tried it, it works (no alert box).

i would try it on close all tab (this alertbox i want to keep to prevent from mistake) but i can't find any more the "close all tab" feature in any menu ! did it desappear ?
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: real explicit tab close

Post by patrickjdempsey »

Right-click a tab "Close other tabs".
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
Post Reply