<?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>8137</bug_id>
          
          <creation_ts>2006-04-02 07:23:20 -0700</creation_ts>
          <short_desc>REGRESSION: scrolling on Google maps continues after the mouse is released outside the window</short_desc>
          <delta_ts>2006-12-19 12:44:27 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://maps.google.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoogleBug, HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Geoffrey Garen">ggaren</assigned_to>
          <cc>alice.barraclough</cc>
    
    <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>ian</cc>
    
    <cc>joost</cc>
    
    <cc>mitz</cc>
    
    <cc>mjs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38271</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-04-02 07:23:20 -0700</bug_when>
    <thetext>The same problem as in bug 5923, but apparently with a different cause (as the layout test still passes).

Steps to reproduce:
1. Go to http://maps.google.com
2. Click the mouse anywhere on the map, drag until the mouse pointer goes
outside the Safari window
3. Release the mouse button
4. Move the mouse pointer back into the window

Results: the map scrolls, although the mouse button is not down
Expected results (as in Safari 2.0.3): it shouldn&apos;t</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38279</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-04-02 10:48:31 -0700</bug_when>
    <thetext>This time around the problem seems to be that the final mouseup event is not delivered, because of the mouseDown check in RenderLayer::shouldApplyImplicitCapture(), which was introduced in r13601.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38302</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-04-02 16:50:07 -0700</bug_when>
    <thetext>Maciej, your change log for r13601 says nothing about what you were trying to accomplish with that check-in, so I am not comfortable making a change. But it does seem clear that a mouse up event wants to participate in the capture even though the mouse is no longer down at the time it&apos;s generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38303</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-04-02 16:50:44 -0700</bug_when>
    <thetext>We&apos;ll need a test case, so attaching the NeedsReduction keyword.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42489</commentid>
    <comment_count>4</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-05-16 09:51:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/4549745&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49456</commentid>
    <comment_count>5</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-07-12 10:20:36 -0700</bug_when>
    <thetext>Adding GoogleBug keyword in one big change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43530</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-12-02 12:20:24 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; This time around the problem seems to be that the final mouseup event is not
&gt; delivered, because of the mouseDown check in
&gt; RenderLayer::shouldApplyImplicitCapture(), which was introduced in r13601.

This method no longer exists due to refactoring, but the problem remains. I couldn&apos;t quickly find where this logic was moved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43499</commentid>
    <comment_count>7</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-12-02 14:34:28 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #1)
&gt; This method no longer exists due to refactoring, but the problem remains. I
&gt; couldn&apos;t quickly find where this logic was moved.
&gt; 

Now in RenderLayer::hitTestLayer(), the request.active condition:

    // We didn&apos;t hit any layer.  However if the mouse is down, we must always at least be inside
    // the render view.
    if (request.active &amp;&amp; renderer()-&gt;isRenderView()) {
        renderer()-&gt;setInnerNode(result);
        return this;
    }

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41394</commentid>
    <comment_count>8</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-18 09:39:10 -0800</bug_when>
    <thetext>I&apos;m working on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41302</commentid>
    <comment_count>9</comment_count>
      <attachid>11906</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-18 15:03:47 -0800</bug_when>
    <thetext>Created attachment 11906
reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41239</commentid>
    <comment_count>10</comment_count>
      <attachid>11910</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-18 15:56:25 -0800</bug_when>
    <thetext>Created attachment 11910
reduction

New reduction. Mitz pointed out that the old reduction tested for behavior that, though different in shipping Safari, was incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41209</commentid>
    <comment_count>11</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-19 00:19:10 -0800</bug_when>
    <thetext>Committed revision 18304.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41051</commentid>
    <comment_count>12</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-12-19 12:44:27 -0800</bug_when>
    <thetext>(In reply to comment #11)
&gt; Committed revision 18304.
&gt; 

The patch caused bug 11880.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11906</attachid>
            <date>2006-12-18 15:03:47 -0800</date>
            <delta_ts>2006-12-18 15:56:25 -0800</delta_ts>
            <desc>reduction</desc>
            <filename>mouseup-outside-target.html</filename>
            <type>text/html</type>
            <size>1049</size>
            <attacher name="Geoffrey Garen">ggaren</attacher>
            
              <data encoding="base64">PHA+VGhpcyB0ZXN0IHZlcmlmaWVzIHRoYXQgYW4gZWxlbWVudCB0aGF0IHJlY2VpdmVzIGEgbW91
c2UgZG93biBldmVudCByZWNlaXZlcwphIGNvcnJlc3BvbmRpbmcgbW91c2UgdXAgZXZlbnQgd2hl
biB0aGUgbW91c2UgdXAgaGFwcGVucyBvdXRzaWRlIHRoZSBlbGVtZW50J3MKYm91bmRzLgo8L3A+
CjxwPklmIHRoZSB0ZXN0IHBhc3NlcywgeW91J2xsIHNlZSBhIFBBU1MgbWVzc2FnZSBiZWxvdy4K
PC9wPgoKPHA+VG8gcnVuIHRoaXMgdGVzdCBpbiBTYWZhcmk6CjxvbD4KICAgIDxsaT5Nb3VzZSBk
b3duIGluc2lkZSB0aGUgYnV0dG9uLjwvbGk+CiAgICA8bGk+TW92ZSB0aGUgbW91c2Ugb3V0c2lk
ZSB0aGUgYnV0dG9uLjwvbGk+CiAgICA8bGk+TW91c2UgdXAuPC9saT4KPC9vbD4KPC9wPgo8aW5w
dXQgdHlwZT0iYnV0dG9uIiBpZD0iYnV0dG9uIiB2YWx1ZT0iYnV0dG9uISIgb25tb3VzZXVwPSJi
dXR0b25fbW91c2VVcCh0aGlzLCBldmVudCkiPjwvaW5wdXQ+Cjxocj4KPHByZSBpZD0ibG9nIj5G
QUlMOiBtb3VzZSB1cCBldmVudCBkaWQgbm90IGZpcmU8L3ByZT4KCjxzY3JpcHQ+CmZ1bmN0aW9u
IG1haW4oKQp7CiAgICBpZiAoIXdpbmRvdy5ldmVudFNlbmRlcikKICAgICAgICByZXR1cm47CiAg
ICBpZiAoIXdpbmRvdy5sYXlvdXRUZXN0Q29udHJvbGxlcikKICAgICAgICByZXR1cm47CgogICAg
bGF5b3V0VGVzdENvbnRyb2xsZXIuZHVtcEFzVGV4dCgpOwogICAgCiAgICBldmVudFNlbmRlci5t
b3VzZU1vdmVUbyg0MCwgMjE1KTsgLy8gYnV0dG9uIGNvb3JkaW5hdGVzCiAgICBldmVudFNlbmRl
ci5tb3VzZURvd24oKTsKICAgIGV2ZW50U2VuZGVyLm1vdXNlTW92ZVRvKDQwLCA0MTUpOyAvLyBi
ZWxvdyBidXR0b24gY29vcmRpbmF0ZXMKICAgIGV2ZW50U2VuZGVyLm1vdXNlVXAoKTsKfQoKZnVu
Y3Rpb24gYnV0dG9uX21vdXNlVXAoYnV0dG9uLCBldmVudCkKewogICAgZG9jdW1lbnQuZ2V0RWxl
bWVudEJ5SWQoJ2xvZycpLmlubmVySFRNTCA9ICJQQVNTOiBtb3VzZXVwIGV2ZW50IGZpcmVkXG4i
Owp9CgptYWluKCk7Cjwvc2NyaXB0Pgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11910</attachid>
            <date>2006-12-18 15:56:25 -0800</date>
            <delta_ts>2006-12-18 15:56:25 -0800</delta_ts>
            <desc>reduction</desc>
            <filename>mouseup-outside-document.html</filename>
            <type>text/html</type>
            <size>979</size>
            <attacher name="Geoffrey Garen">ggaren</attacher>
            
              <data encoding="base64">PHA+VGhpcyB0ZXN0IHZlcmlmaWVzIHRoYXQgYSBkb2N1bWVudCB0aGF0IHJlY2VpdmVzIGEgbW91
c2UgZG93biBldmVudCByZWNlaXZlcwphIGNvcnJlc3BvbmRpbmcgbW91c2UgdXAgZXZlbnQgd2hl
biB0aGUgbW91c2UgdXAgaGFwcGVucyBvdXRzaWRlIHRoZSB3aW5kb3cuCjwvcD4KPH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