desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #27677
[Bug 865136] [NEW] javascript confirm-box is ok-ed or form submitted when closing tab
Public bug reported:
1. so you have a page with a code attached..
2. you push submit-button, but don't choose ok or cancel
3. you close the window (at least in ubuntu/gnome3 you can close it)
4. the browser will submit the form anyhow and the script in 'something' will be loaded in the server side.
5. You will not see this in the browser because the window was closed.
6. see the server log or make a script that does something and you will see that it was really loaded.
you have for example a product delete button, you push it, close the
window and don't want to remove the product, but it is removed anyhow.
Possible fixes and notes:
1. when a confirm-box (maybe alert box also) is open, disable the possibility of closing the tab (good)
2. run the javascript code to the end with option "cancel" chosen (maybe this is not a good idea because there might be another confirm-box coming afterwards in the code, or lots of code is run.
3. stop the javascript immediately, don't submit the form and close the tab. (this also could be good option imho)
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: firefox 6.0.2+build2+nobinonly-0ubuntu0.11.04.1
ProcVersionSignature: Ubuntu 2.6.38-11.48-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon Oct 3 11:13:42 2011
FirefoxPackages:
firefox 6.0.2+build2+nobinonly-0ubuntu0.11.04.1
flashplugin-installer 10.3.183.7ubuntu0.11.04.1
adobe-flashplugin N/A
icedtea-plugin N/A
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
PATH=(custom, no user)
LANG=fi_FI.UTF-8
SHELL=/bin/bash
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: firefox (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386 natty
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/865136
Title:
javascript confirm-box is ok-ed or form submitted when closing tab
Status in “firefox” package in Ubuntu:
New
Bug description:
1. so you have a page with a code attached..
2. you push submit-button, but don't choose ok or cancel
3. you close the window (at least in ubuntu/gnome3 you can close it)
4. the browser will submit the form anyhow and the script in 'something' will be loaded in the server side.
5. You will not see this in the browser because the window was closed.
6. see the server log or make a script that does something and you will see that it was really loaded.
you have for example a product delete button, you push it, close the
window and don't want to remove the product, but it is removed anyhow.
Possible fixes and notes:
1. when a confirm-box (maybe alert box also) is open, disable the possibility of closing the tab (good)
2. run the javascript code to the end with option "cancel" chosen (maybe this is not a good idea because there might be another confirm-box coming afterwards in the code, or lots of code is run.
3. stop the javascript immediately, don't submit the form and close the tab. (this also could be good option imho)
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: firefox 6.0.2+build2+nobinonly-0ubuntu0.11.04.1
ProcVersionSignature: Ubuntu 2.6.38-11.48-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon Oct 3 11:13:42 2011
FirefoxPackages:
firefox 6.0.2+build2+nobinonly-0ubuntu0.11.04.1
flashplugin-installer 10.3.183.7ubuntu0.11.04.1
adobe-flashplugin N/A
icedtea-plugin N/A
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
PATH=(custom, no user)
LANG=fi_FI.UTF-8
SHELL=/bin/bash
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/865136/+subscriptions
Follow ups
References