[Webkit-unassigned] [Bug 18782] New: XMLHttpRequest not sent if mouse button not released

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 28 06:17:29 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18782

           Summary: XMLHttpRequest not sent if mouse button not released
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: flgu at 4js.com


XMLHttpRequest isn't sent until the mouse button is released when using it in
onScroll event.

The bug occur with webkit r32531 on Mac Os X only. The bug doesn't occur with
webkit on windows (r32574) and doesn't occur with firefox 2 on mac.

Use this test case to reproduce the bug. Put the file under the location
http://localhost/xhr_bug.xhtml and open it. Then drag down the scrollbar. With
webkit on mac, the request is sent only when the user release the mouse button.
Under webkit on windows or with others browsers on mac, the request is sent
without waiting the mouse button release:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Webkit MacOs XHR mouse release bug</title>
    <script>
      alerted=0;
      function scroll()
      {
         xhr = new window.XMLHttpRequest;
         xhr.open( 'GET', "http://localhost/xhr_bug.xhtml", true );

         xhr.onreadystatechange = function() {
             if(alerted==0)
             {
                 alerted=1;
                 alert( "onreadystatechange" );
             }
         };

         xhr.send( null );
      }
    </script>
  </head>
  <body>
    <div style="overflow-y: scroll; overfow-x: hidden; width: 32px; height:
315px; visibility: visible" onscroll="scroll()">
      <div style="height: 765px">a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a </div>
    </div>
  </body>
</html>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list