<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>22763</bug_id>
          
          <creation_ts>2008-12-09 14:04:59 -0800</creation_ts>
          <short_desc>escape button doesn&apos;t close chat window</short_desc>
          <delta_ts>2014-03-10 09:25:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.meebo.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="jasneet">jasneet</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>christopherbalz</cc>
    
    <cc>jasneet</cc>
    
    <cc>joseph</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102012</commentid>
    <comment_count>0</comment_count>
    <who name="jasneet">jasneet</who>
    <bug_when>2008-12-09 14:04:59 -0800</bug_when>
    <thetext>I Steps:
Login to http://www.meebo.com/
Click on any contact name to open a chat window
Press escape button

II Issue:
On pressing Escape button, the chat window doesn&apos;t close in webkit

III Other Browsers:
IE7: ok
FF3: ok

IV Nightly tested: 39088

Bug in Chromium : http://code.google.com/p/chromium/issues/detail?id=1276</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>135657</commentid>
    <comment_count>1</comment_count>
    <who name="Christopher M. Balz">christopherbalz</who>
    <bug_when>2009-07-29 13:06:37 -0700</bug_when>
    <thetext>  * Please see: https://us.etrade.com/javascript/et1/dev_tools/test/harness/modal_dialog/index-developers.html for a clear, source-code test case showing what seems to be the exact same problem.

  * As of this date, the issue is still not fixed either in WebKit Version
4.0.2 (4530.19, r46367) nor in the Apple Safari 4.0.2.

  * I have filed a bug on the same issue by using the &quot;Report Bugs to
Apple . . . &quot; menu option on the Safari &quot;Safari&quot; web browser menu.


Steps
-----

What should happen: 

  The &apos;esc&apos; key should cause a modal dialog window to close.

What happens: 

  The &apos;esc&apos; key has no effect.


How to reproduce: 

  a) Visit this page (
https://us.etrade.com/javascript/et1/dev_tools/test/harness/modal_dialog/index-developers.html
).  

  b) Click on the button &apos;Click Here to Show Modal Dialog&quot;.

  c) Press the &apos;esc&apos; key

  d) Verify that the modal dialog does not close.


Notes
-----

Other Reference Browsers: The &apos;esc&apos; key works properly on Firefox, Internet
Explorer 6 through 8, and Opera.  

Importance: This bug affects functionality in production on etrade.com.  If this is the same bug as the Meebo one, which I think it is, then many users of the very popular Meebo service also do not get the functionality.

Version: This issue is in Safari 4.0.2, but the dropdown box does not have that option.  So I put it at Safari 528+.  The issue is also in the WebKit nightly from yesterday ( Version 4.0.2 (4530.19, r46367) ), per my comment above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178851</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Holsten">joseph</who>
    <bug_when>2010-01-08 15:55:27 -0800</bug_when>
    <thetext>I&apos;m glad you can write a test harness. Unfortunately, I have no idea why you think the escape button should close the chat window.

Escape does not normally close a window by default. Are you attaching to a keyboard event?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178945</commentid>
    <comment_count>3</comment_count>
    <who name="Christopher M. Balz">christopherbalz</who>
    <bug_when>2010-01-08 22:40:10 -0800</bug_when>
    <thetext>Thank you for responding.  I address the issues you raise below:

Escape: Escape normally closes a window that is a modal dialog (many examples of this; a handy one is the native JavaScript &apos;alert&apos; dialog).  The test harness shows a modal dialog.  I believe the bug that it exposes is the same issue that is affecting the meebo chat window.  This has been a WebKit bug for about five years.

Attaching to a keyboard event: Yes, the code attempts to detect the keyboard event from the user pressing the &apos;esc&apos; key, so that it can close the window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179865</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-01-12 09:55:59 -0800</bug_when>
    <thetext>I suspect that this is a duplicate of bug 18157 and/or bug 25147 - we don&apos;t dispatch keypress event for the Esc key. One can use keydown for a workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179977</commentid>
    <comment_count>5</comment_count>
    <who name="Christopher M. Balz">christopherbalz</who>
    <bug_when>2010-01-12 14:24:36 -0800</bug_when>
    <thetext>Yes, if the browser is not dispatching an event for the keypress event, that would cause this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988903</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-03-10 09:25:33 -0700</bug_when>
    <thetext>As of today, WebKit dispatches a keypress for Esc. However, this particular bug became invalid:

1. meebo.com no longer exists.
2. The etrade.com test case still doesn&apos;t work, however appears to have changed. The pop-up window doesn&apos;t install any event handlers any more.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>