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 333780 - Esc confirms Javascript popups instead of cancelling them
Esc confirms Javascript popups instead of cancelling them
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: [obsolete] Backend:Mozilla
git master
Other Linux
: Normal major
: 2.14.x
Assigned To: Epiphany Maintainers
Marco Pesenti Gritti
Depends on:
Blocks:
 
 
Reported: 2006-03-07 18:37 UTC by Christian Persch
Modified: 2006-03-08 11:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
minimal fix (571 bytes, patch)
2006-03-07 21:32 UTC, Christian Persch
none Details | Review

Description Christian Persch 2006-03-07 18:37:33 UTC
+++ This bug was initially created as a clone of Bug #333714 +++

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-07 21:32:29 UTC
Created attachment 60868 [details] [review]
minimal fix
Comment 2 Christian Persch 2006-03-08 11:04:19 UTC
Fixed in cvs.