<?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>108848</bug_id>
          
          <creation_ts>2013-02-04 12:26:55 -0800</creation_ts>
          <short_desc>Disable autoscrolling the main frame if main frame scrolling is disabled</short_desc>
          <delta_ts>2013-02-04 14:10:01 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Horton">thorton</reporter>
          <assigned_to name="Tim Horton">thorton</assigned_to>
          <cc>bdakin</cc>
    
    <cc>eric</cc>
    
    <cc>ojan.autocc</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>824645</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-02-04 12:26:55 -0800</bug_when>
    <thetext>If main frame scrolling is disabled, you can still cause the main frame to scroll via autoscrolling (drag selection, etc.). This seems wrong.

&lt;rdar://problem/13004059&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>824646</commentid>
    <comment_count>1</comment_count>
      <attachid>186435</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-02-04 12:28:19 -0800</bug_when>
    <thetext>Created attachment 186435
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>824652</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-02-04 12:32:17 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/141792</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>824684</commentid>
    <comment_count>3</comment_count>
      <attachid>186435</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-02-04 13:13:39 -0800</bug_when>
    <thetext>Comment on attachment 186435
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=186435&amp;action=review

&gt; Source/WebCore/rendering/RenderBox.cpp:755
&gt; +    return page &amp;&amp; page-&gt;mainFrame() == frame &amp;&amp; frame-&gt;view()-&gt;isScrollable();

Can frame-&gt;view() ever be null? Can frame-&gt;view() every be a view that is currently hosting a different frame?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>824749</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-02-04 14:10:01 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 186435 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=186435&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/rendering/RenderBox.cpp:755
&gt; &gt; +    return page &amp;&amp; page-&gt;mainFrame() == frame &amp;&amp; frame-&gt;view()-&gt;isScrollable();
&gt; 
&gt; Can frame-&gt;view() ever be null? Can frame-&gt;view() every be a view that is currently hosting a different frame?

I don&apos;t think either of those things can be true while we&apos;re also dispatching events to the page (I just followed all of the callers and that&apos;s the only way we get here), though I could be wrong. That seems scary for other reasons, though.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>186435</attachid>
            <date>2013-02-04 12:28:19 -0800</date>
            <delta_ts>2013-02-04 13:13:39 -0800</delta_ts>
            <desc>patch</desc>
            <filename>autoscroll.diff</filename>
            <type>text/plain</type>
            <size>1285</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA4MWJiZDQ1Li40Nzk1MGIyIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYg
QEAKKzIwMTMtMDItMDQgIFRpbSBIb3J0b24gIDx0aW1vdGh5X2hvcnRvbkBhcHBsZS5jb20+CisK
KyAgICAgICAgRGlzYWJsZSBhdXRvc2Nyb2xsaW5nIHRoZSBtYWluIGZyYW1lIGlmIG1haW4gZnJh
bWUgc2Nyb2xsaW5nIGlzIGRpc2FibGVkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3Jn
L3Nob3dfYnVnLmNnaT9pZD0xMDg4NDgKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzEzMDA0MDU5
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEVuc3Vy
ZSB0aGF0IHRoZSBtYWluIGZyYW1lIGNhbiBzY3JvbGwgYXQgYWxsIGJlZm9yZSBhbGxvd2luZyBh
biBhdXRvc2Nyb2xsLgorCisgICAgICAgICogcmVuZGVyaW5nL1JlbmRlckJveC5jcHA6CisgICAg
ICAgIChXZWJDb3JlOjpSZW5kZXJCb3g6OmNhbkF1dG9zY3JvbGwpOgorCiAyMDEzLTAyLTA0ICBK
dWxpZW4gQ2hhZmZyYWl4ICA8amNoYWZmcmFpeEB3ZWJraXQub3JnPgogCiAgICAgICAgIFtDU1Mg
R3JpZCBMYXlvdXRdIEFkZCBwYXJzaW5nIGZvciBncmlkLWF1dG8tZmxvdwpkaWZmIC0tZ2l0IGEv
U291cmNlL1dlYkNvcmUvcmVuZGVyaW5nL1JlbmRlckJveC5jcHAgYi9Tb3VyY2UvV2ViQ29yZS9y
ZW5kZXJpbmcvUmVuZGVyQm94LmNwcAppbmRleCBmZmJhOTE1Li41ZDI1ZTA4IDEwMDY0NAotLS0g
YS9Tb3VyY2UvV2ViQ29yZS9yZW5kZXJpbmcvUmVuZGVyQm94LmNwcAorKysgYi9Tb3VyY2UvV2Vi
Q29yZS9yZW5kZXJpbmcvUmVuZGVyQm94LmNwcApAQCAtNzUyLDcgKzc1Miw3IEBAIGJvb2wgUmVu
ZGVyQm94OjpjYW5BdXRvc2Nyb2xsKCkgY29uc3QKICAgICBpZiAoIWZyYW1lKQogICAgICAgICBy
ZXR1cm4gZmFsc2U7CiAgICAgUGFnZSogcGFnZSA9IGZyYW1lLT5wYWdlKCk7Ci0gICAgcmV0dXJu
IHBhZ2UgJiYgcGFnZS0+bWFpbkZyYW1lKCkgPT0gZnJhbWU7CisgICAgcmV0dXJuIHBhZ2UgJiYg
cGFnZS0+bWFpbkZyYW1lKCkgPT0gZnJhbWUgJiYgZnJhbWUtPnZpZXcoKS0+aXNTY3JvbGxhYmxl
KCk7CiB9CiAKIC8vIElmIHNwZWNpZmllZCBwb2ludCBpcyBpbiBib3JkZXIgYmVsdCwgcmV0dXJu
ZWQgb2Zmc2V0IGRlbm90ZXMgZGlyZWN0aW9uIG9mCg==
</data>
<flag name="review"
          id="205872"
          type_id="1"
          status="+"
          setter="simon.fraser"
    />
          </attachment>
      

    </bug>

</bugzilla>