<?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>36584</bug_id>
          
          <creation_ts>2010-03-25 00:49:34 -0700</creation_ts>
          <short_desc>Frameset body &quot;rows&quot; and &quot;cols&quot; attribute does not reflect current frame size</short_desc>
          <delta_ts>2023-05-30 09:50:15 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Marc Bonnier">chrome</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>iafanasov</cc>
    
    <cc>mrgrechkinn</cc>
    
    <cc>rniwa</cc>
    
    <cc>tim.green</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>203878</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Bonnier">chrome</who>
    <bug_when>2010-03-25 00:49:34 -0700</bug_when>
    <thetext>When a frameset&apos;s frame is resized by the user, the value of the &quot;rows&quot; or &quot;cols&quot; attribute are not set with the new current value but, rather stays at the original static document value. This is not critical since these values can be deduced using frame size.

Yet, if a user resize a frame and we want to reset it to the original value using JavaScript then, this won&apos;t work since the attribute value being still at the original value, setting it to the same &apos;original&apos; value will not trigger a DOM update.

The ideal fix would be to always reflect the current size in &quot;rows&quot; and &quot;cols&quot; attributes. A workaround would be to force a DOM update even if we set the attribute with the same value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203881</commentid>
    <comment_count>1</comment_count>
      <attachid>51603</attachid>
    <who name="Marc Bonnier">chrome</who>
    <bug_when>2010-03-25 00:51:23 -0700</bug_when>
    <thetext>Created attachment 51603
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248190</commentid>
    <comment_count>2</comment_count>
      <attachid>60877</attachid>
    <who name="Tim Green">tim.green</who>
    <bug_when>2010-07-08 07:46:58 -0700</bug_when>
    <thetext>Created attachment 60877
Demonstrates the bug with retrieving and setting frameset cols attribute with JS

Demonstrates that the bug effects both retrieving and setting frameset attributes, and that it makes it impossible to set frameset dimensions correctly with JS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248192</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Green">tim.green</who>
    <bug_when>2010-07-08 07:50:19 -0700</bug_when>
    <thetext>See my attached demo case. Current versions of Safari and Chrome on both Mac OS X and Windows are all affected. This bug is actually critical as it makes it impossible to set frameset dimensions with JS. In addition to failing to retrieve the dimensions after the frame border has been moved by the user, Webkit browsers also set the cols and rows dimensions incorrectly if the frame border has been moved. The amount of the move by the user is added as a positive or negative offset, producing broken results. 

There appears to be no workaround for this because the browsers are both reporting the current values incorrectly and applying an offset to any values set with JS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248197</commentid>
    <comment_count>4</comment_count>
      <attachid>60880</attachid>
    <who name="Tim Green">tim.green</who>
    <bug_when>2010-07-08 07:59:57 -0700</bug_when>
    <thetext>Created attachment 60880
Test Case

Direct link to test case demonstrating and explaining the bug and showing its negative consequences.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463901</commentid>
    <comment_count>5</comment_count>
    <who name="Eugene">mrgrechkinn</who>
    <bug_when>2011-09-07 23:30:13 -0700</bug_when>
    <thetext>Chrome version 13.0.782.220 m Windows
Safari version 5.1 (6534.50) Mac

This bug is very critical and reproduced on both browsers.

Steps to reproduced:
    1) Please open this page: http://www.w3schools.com/jsref/tryit.asp?   
        filename=tryjsref_frameset_rows  
    2) Resize frame 
    3) Click on buttons &quot;Restore&quot; (set value to rows &apos;50%, 50%&apos;) or &quot;Change&quot; (set  
        value to rows &apos;30%, 70%&apos;)

Actual Behavior:
   When setting values to rows after resizing, frames must match the exact size specified in frameset rows
Expected Behavior:
   When setting values to rows after resizing, frames must match the exact size specified in frameset rows</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463903</commentid>
    <comment_count>6</comment_count>
    <who name="Eugene">mrgrechkinn</who>
    <bug_when>2011-09-07 23:31:52 -0700</bug_when>
    <thetext>Mistake in Actual Behavior:
    When setting values to rows after resizing, frames no match the exact size 
     specified in frameset rows</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463904</commentid>
    <comment_count>7</comment_count>
    <who name="Eugene">mrgrechkinn</who>
    <bug_when>2011-09-07 23:33:47 -0700</bug_when>
    <thetext>Page for test http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_frameset_rows</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058082</commentid>
    <comment_count>8</comment_count>
    <who name="Igor">iafanasov</who>
    <bug_when>2014-12-29 02:38:38 -0800</bug_when>
    <thetext>Several years past and this bug haven&apos;t been fixed yet. Still works in chrome 39.0.2171.95 m. Can be tested on page http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_frameset_rows</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958789</commentid>
    <comment_count>9</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-30 09:49:57 -0700</bug_when>
    <thetext>Taking: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_frameset_rows

*** Chrome Canary 116 &amp; Safari 16.5 ***

1) Resize &apos;Frame A&apos; to bottom
2) Click &apos;Change row size&apos; and then restore.

Result: user resize remains and &apos;restore&apos; to user resize

*** Firefox Nightly 115 ***

Disregard user resize

_________________

Just wanted to share my testing result, if I did incorrect testing, please share updated (would be good for learning).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>51603</attachid>
            <date>2010-03-25 00:51:23 -0700</date>
            <delta_ts>2010-03-25 00:51:23 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>frameset-sizeatt.html</filename>
            <type>text/html</type>
            <size>679</size>
            <attacher name="Marc Bonnier">chrome</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8dGl0bGU+QlVnIFdlYktpdDogRnJhbWVzZXQgcm93cy9jb2xzIGF0dHJp
YnV0ZSBkb2VzIG5vdCByZWZsZWN0IGN1cnJlbnQgc2l6ZTwvdGl0bGU+CjxzY3JpcHQgdHlwZT0i
dGV4dC9qYXZhc2NyaXB0Ij4KZnVuY3Rpb24gaW5zdGFsbCgpIHsKCWZyYW1lc1swXS5hZGRFdmVu
dExpc3RlbmVyKCJyZXNpemUiLCBkaXNwbGF5RGF0YSwgdHJ1ZSkKCWRpc3BsYXlEYXRhKCkKCX0K
dmFyIHRpbWVyOwpmdW5jdGlvbiBkaXNwbGF5RGF0YSgpIHsKCWNsZWFyVGltZW91dCh0aW1lcikK
CXRpbWVyID0gc2V0VGltZW91dChmdW5jdGlvbigpIHsKCQlhbGVydCh3aW5kb3cuZG9jdW1lbnQu
Ym9keS5nZXRBdHRyaWJ1dGUoInJvd3MiKSkKCQl9LAoJNTAwCgkpCgl9CmZ1bmN0aW9uIGluZm8o
KSB7CglyZXR1cm4gIlJlc2l6ZSB0aGUgZnJhbWVzZXQ6IHRoZSBkaXNwbGF5IFwncm93c1wnIGF0
dHJpYnV0ZSBkb2VzIG5vdCByZWZsZWN0IHRoZSBuZXcgc2l6ZSAtIHN0aWxsIHNldCBhdCB0aGUg
aW5pdGlhbCB2YWx1ZSIKCX0KPC9zY3JpcHQ+CjwvaGVhZD4KPGZyYW1lc2V0IHJvd3M9IiosMjAw
IiBvbmxvYWQ9Imluc3RhbGwoKSI+Cgk8ZnJhbWUgc3JjPSJqYXZhc2NyaXB0OnBhcmVudC5pbmZv
KCkiPgoJPGZyYW1lIHNyYz0iYWJvdXQ6YmxhbmsiPgo8L2ZyYW1lc2V0Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>60877</attachid>
            <date>2010-07-08 07:46:58 -0700</date>
            <delta_ts>2010-07-08 07:59:57 -0700</delta_ts>
            <desc>Demonstrates the bug with retrieving and setting frameset cols attribute with JS</desc>
            <filename>url.txt</filename>
            <type>text/plain</type>
            <size>44</size>
            <attacher name="Tim Green">tim.green</attacher>
            
              <data encoding="base64">aHR0cDovL3d3dy5pZ25pdGVieXRlLm5ldC9pbmZvL0ZyYW1lc0J1Zy56aXA=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>60880</attachid>
            <date>2010-07-08 07:59:57 -0700</date>
            <delta_ts>2010-07-08 07:59:57 -0700</delta_ts>
            <desc>Test Case</desc>
            <filename>url.txt</filename>
            <type>text/plain</type>
            <size>41</size>
            <attacher name="Tim Green">tim.green</attacher>
            
              <data encoding="base64">aHR0cDovL3d3dy5pZ25pdGVieXRlLm5ldC9pbmZvL3dlYmtpdGJ1Zy8=
</data>

          </attachment>
      

    </bug>

</bugzilla>