After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333714 - Esc confirms Javascript popups instead of cancelling them
Esc confirms Javascript popups instead of cancelling them
Status: RESOLVED FIXED
Product: galeon
Classification: Deprecated
Component: User interface
2.0
Other Linux
: Normal major
: ---
Assigned To: galeon-maint
galeon-maint
Depends on:
Blocks:
 
 
Reported: 2006-03-07 09:23 UTC by Loïc Minier
Modified: 2006-03-08 11:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Loïc Minier 2006-03-07 09:23:02 UTC
Hi,

Cyril Bouthors reported in Debian bug http://bugs.debian.org/355671 that:
<<
ESC is bound to 'OK' instead of 'Cancel' with javascript confirmation           
popups!                                                                         

To reproduce, use the following HTML/JavaScript code:                           
                                                                                
################################################################                
                                                                                
<body>                                                                          
                                                                                
<SCRIPT LANGUAGE="JavaScript">                                                  
function ask_confirmation(txt) {                                                
  resultat = confirm(txt);                                                      
  if(resultat=="1"){ return true; } else { return false; }                      
}                                                                               
</SCRIPT>                                                                       
                                                                                
<a href="./" onclick="return ask_confirmation('Sure?')">foo</a>                 

################################################################                

>>

This might be due to the fact that Galeon is built against xulrunner in Debian.

Cheers,
Comment 1 Christian Persch 2006-03-08 11:08:09 UTC
Fixed in cvs.