<?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>4888</bug_id>
          
          <creation_ts>2005-09-08 11:38:05 -0700</creation_ts>
          <short_desc>Missing support for many window.frameElement properties (Frame size calculation at SoftwarePlanner broken)</short_desc>
          <delta_ts>2007-12-29 11:09:11 -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>Frames</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.pragmaticsw.com/SoftwarePlanner.asp</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>6402</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Maciej Stachowiak">mjs</assigned_to>
          <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19100</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-08 11:38:05 -0700</bug_when>
    <thetext>A project management suite called Software Planner is not correctly rendered by current versions of 
Safari. It used to work correctly with WebKit up to 312, but doesn&apos;t work (in different ways) with 412.2 
or ToT. Steps to reproduce:

1. Go to &lt;http://www.pragmaticsw.com/SoftwarePlanner.asp&gt;
2. Click on &quot;Try Sample Database&quot;
3. Click &quot;Logon&quot;

Results: 
- (stock 1.3 and earlier): works correctly
- (stock 2.0, 2.0.1 or 1.3.1): the contents briefly renders correctly, then the left frame expands, 
completely covering the right one
- (ToT): the contents briefly renders correctly, then the left frame expands, taking half 
of the page.

Firefox works with this site OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19242</commentid>
    <comment_count>1</comment_count>
      <attachid>3831</attachid>
    <who name="Patrick Geiller">pg</who>
    <bug_when>2005-09-09 14:52:12 -0700</bug_when>
    <thetext>Created attachment 3831
Test case

Wait 2 seconds to see the right pane disappear. 

Software Planner miscomputes frameset.cols, replacing a correct &apos;230, *&apos; with
&apos;NaN,  *&apos;. Firefox ignores it, so should Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19255</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-10 00:58:27 -0700</bug_when>
    <thetext>(In reply to comment #1)

Thank you!

There&apos;s still a slight weirdness - Safari 1.2.4 fails on this test case, but not on the actual SoftwarePlanner 
page. Could there be a second problem, which makes frameset.cols get miscomputed on newer versions 
of WebKit? I&apos;ll leave the NeedsReduction keyword there for now...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19270</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Geiller">pg</who>
    <bug_when>2005-09-10 01:34:01 -0700</bug_when>
    <thetext>I don&apos;t have Safari 1.2.4 so I can&apos;t test. But you can :) Save the page with firefox, then open psDALeft.htm 
and comment out line 486

window.frameElement.parentElement.cols = (window.frameElement.width + 10) + &apos;, *&apos;;

This removes the bug. Both Safari &amp; Firefox show window.frameElement.width as undefined. Maybe Safari 
1.2.4 has a correct value ?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19275</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-10 04:43:42 -0700</bug_when>
    <thetext>(In reply to comment #3)
Safari 1.2.4 simply did&apos;t get to execute this code at all (I have replaced it with a plain alert(&quot;test&quot;), and got 
nothing). I don&apos;t understand why, but it seems totally unrelated.

Another mistery: on ToT, the test case works OK (I have checked, window.frameElement.width is still 
undefined) - but the actual page resizes the frame to 50%...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19278</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick Geiller">pg</who>
    <bug_when>2005-09-10 07:38:38 -0700</bug_when>
    <thetext>&gt; Safari 1.2.4 simply did&apos;t get to execute this code at all

Maybe some Javascript fails before it. Does the JS console show anything ? 

&gt; Another mistery: on ToT, the test case works OK (I have checked, window.frameElement.width is still 
&gt; undefined) - but the actual page resizes the frame to 50%...

I just tried the test case in ToT and at first glance it does work. However, the JS in the test case is NOT 
executed. Add an alert() and nothing pops up ! So, copy

javascript:alert(document.getElementsByTagName(&apos;FRAMESET&apos;)[0].cols = &apos;NaN, *&apos;)

in the address bar and launch it to see the frames resized like in the actual page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19288</commentid>
    <comment_count>6</comment_count>
      <attachid>3845</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-10 11:23:03 -0700</bug_when>
    <thetext>Created attachment 3845
Incomplete Test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19289</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-10 11:23:47 -0700</bug_when>
    <thetext>(In reply to comment #5)

I see... To work in ToT, the test needs to be modified a bit.

However, it looks like Firefox also doesn&apos;t ignore NaN! After 2 seconds, the right frame expands to 100%. 
There must be something else in the actual page that makes it work in Firefox...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19451</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-12 02:48:54 -0700</bug_when>
    <thetext>There are probably at least two issues here: window.frameElement.width is not undefined in WinIE - it&apos;s 
230, so the +10 part does work as intended.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20579</commentid>
    <comment_count>9</comment_count>
      <attachid>4032</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-24 12:51:53 -0700</bug_when>
    <thetext>Created attachment 4032
frameElement tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20581</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-24 12:57:26 -0700</bug_when>
    <thetext>Ok, so Firefox renders the page fine because it doesn&apos;t handle 
window.frameElement.parentElement.cols at all: 

try {
    window.frameElement.parentElement.cols;
} catch (e) {
    alert(&apos;Exception: &apos; + e.description);
}

prints &apos;Exception: undefined&apos;. This leaves us with a single WebKit issue - lack of support for 
window.frameElement.width (and some other frame properties supported by WinIE, see the attached 
test case for details).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65612</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-12-29 11:09:11 -0800</bug_when>
    <thetext>frameElement.width was implemented in bug 6402, so the actual problem is fixed. It doesn&apos;t look like keeping this bug is doing us any good, closing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3831</attachid>
            <date>2005-09-09 14:52:12 -0700</date>
            <delta_ts>2005-09-10 11:23:03 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>frame.html</filename>
            <type>text/html</type>
            <size>261</size>
            <attacher name="Patrick Geiller">pg</attacher>
            
              <data encoding="base64">PGh0bWw+Cgk8ZnJhbWVzZXQgY29scz0iMjMwLCoiIHN0eWxlPSdib3JkZXI6IHNvbGlkIDFweCBs
aW1lOyc+CgkJPGZyYW1lIHNyYz0iYWJvdXQ6IGJsYW5rIj4KCQk8ZnJhbWUgc3JjPSJhYm91dDog
YmxhbmsiPgoJPC9mcmFtZXNldD4KCgk8c2NyaXB0PgoJCXNldFRpbWVvdXQoZnVuY3Rpb24gKCkg
eyBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnRlJBTUVTRVQnKVswXS5jb2xzID0gJ05h
TiwgKicgfSwgMjAwMCkKCTwvc2NyaXB0Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3845</attachid>
            <date>2005-09-10 11:23:03 -0700</date>
            <delta_ts>2005-09-24 12:51:53 -0700</delta_ts>
            <desc>Incomplete Test</desc>
            <filename>SP-test.html</filename>
            <type>text/html</type>
            <size>258</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGh0bWw+Cgk8c2NyaXB0PgoJCXNldFRpbWVvdXQoZnVuY3Rpb24gKCkgeyBkb2N1bWVudC5nZXRF
bGVtZW50c0J5VGFnTmFtZSgnRlJBTUVTRVQnKVswXS5jb2xzID0gJ05hTiwgKicgfSwgMjAwMCkK
CTwvc2NyaXB0PgoJPGZyYW1lc2V0IGNvbHM9IjIzMCwqIiBzdHlsZT0nYm9yZGVyOiBzb2xpZCAx
cHggbGltZTsnPgoJCTxmcmFtZSBzcmM9ImFib3V0OmJsYW5rIj4KCQk8ZnJhbWUgc3JjPSJhYm91
dDpibGFuayI+Cgk8L2ZyYW1lc2V0Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4032</attachid>
            <date>2005-09-24 12:51:53 -0700</date>
            <delta_ts>2005-09-24 12:51:53 -0700</delta_ts>
            <desc>frameElement tests</desc>
            <filename>frameElement.zip</filename>
            <type>application/octet-stream</type>
            <size>2387</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">UEsDBAoAAAAAALexODMAAAAAAAAAAAAAAAANABAAZnJhbWVFbGVtZW50L1VYDAB/qzVDWZc1Q/UB
9QFQSwMEFAAIAAgAUb44MwAAAAAAAAAAAAAAABYAEABmcmFtZUVsZW1lbnQvbGVmdC5odG1sVVgM
ABGuNUMKrjVD9QH1AZWVQU/CMBSAz+xX9DaN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