MozillaZine

real explicit tab close

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

Post Posted August 31st, 2015, 9:49 pm

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

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted September 8th, 2015, 5:51 pm

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/

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted September 10th, 2015, 8:48 am

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

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted September 14th, 2015, 3:17 pm

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: 289
Joined: December 19th, 2009, 2:27 am

Post Posted September 21st, 2015, 8:12 am

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 ?

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted September 21st, 2015, 11:12 am

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: 289
Joined: December 19th, 2009, 2:27 am

Post Posted September 23rd, 2015, 12:45 am

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 ?

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted September 23rd, 2015, 5:17 pm

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/

Return to SeaMonkey Features


Who is online

Users browsing this forum: No registered users and 1 guest