<?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>14607</bug_id>
          
          <creation_ts>2007-07-13 10:44:07 -0700</creation_ts>
          <short_desc>Javascript-Link &quot;Dump Script&quot; (from Apple-Dev-Website) - wrong or no reaction</short_desc>
          <delta_ts>2007-12-08 13:50:10 -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>JavaScriptCore</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://developer.apple.com/internet/safari/faq.html#anchor13</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Luck">xmenclassic</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alice.barraclough</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>dev+webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4883</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Luck">xmenclassic</who>
    <bug_when>2007-07-13 10:44:07 -0700</bug_when>
    <thetext>[actual release r24238]

in url http://developer.apple.com/internet/safari/faq.html#anchor13 is in the
part &quot;JavaScript Related&quot; the link &quot;Dump Scripts&quot; (with JS function).

But at use this link &quot;Dump Script&quot; is open a new
window. But the window has no content. 
And if i drag this link to Bookmark Bar und i use
this link of the bar then no open a window. No reaction!

The link &quot;Dump Script&quot;:

javascript:var%20jsArray%20=%20document.getElementsByTagName(%22script%22);%20var%20theWinref;%20var%20theHTML;%20var%20scriptObj;%20var%20frameURL;%20var%20frameObj;if(jsArray.length%20%3E%200)%20%7B%20theWinref%20=%20window.open(&apos;&apos;,&apos;_blank&apos;,&apos;width=320,height=255,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizeable=yes&apos;);%20theWinref.document.write(&apos;%3Chtml%3E%3Chead%3E%3Ctitle%3E&apos;%20+%20window.location.href%20+%20&apos;%3C/title%3E%3C/head%3E%3Cbody%3E&apos;+%20jsArray.length+&apos;%20Script(s)%20Found:&apos;);%20theWinref.resizeTo(600,200);theWinref.moveTo(0,0);%20%7D%20for%20(var%20i%20=%200;%20i%20%3C%20jsArray.length;%20i++)%20%7B%20scriptObj%20=%20jsArray%5Bi%5D;%20if(scriptObj.hasAttribute(%22src%22))%7B%20frameURL%20=%20scriptObj.getAttribute(%22src%22);%20theWinref.document.write(%22%3Cp%20style=&apos;background-color:%23999933;&apos;%3EScript%20%22+eval(i+1)+%22%20via%20%22%20+%20frameURL%20+%20%22%3Cbr%3E%3Ciframe%20height=&apos;100%25&apos;%20width=&apos;100%25&apos;%20id=&apos;url%22+%20i%20+%20%22&apos;%20src=&apos;%22%20+%20frameURL%20+%20%22&apos;%3E%3C/iframe%3E%3C/p%3E%22);%20frameObj%20=%20theWinref.document.getElementById(%22url%22%20+%20i);%20%7D%20else%20%7B%20theHTML%20=%20scriptObj.innerHTML;%20theWinref.document.write(%22%3Cp%20style=&apos;background-color:%23999933;&apos;%3EScript%20%22+eval(i+1)+%22:%3Cbr%3E%3Cpre%3E%22%20+%20theHTML%20+%20%22%3C/pre%3E%3C/p%3E%22);%20%7D%20%7D%20if(jsArray.length%20%3E%200)%20%7B%20theWinref.document.write(&apos;%3C/body%3E%3C/html%3E&apos;);%20%7D</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4751</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-14 15:37:35 -0700</bug_when>
    <thetext>The &quot;Dump Scripts&quot; link at the bottom of the page works for me with a local debug build of WebKit r24285 with Safari 3.0 (522.12) on Mac OS X 10.4.10 (8R218).  This appears to be a Windows-only bug.  Note that I have pop-up blocking enabled on Safari 3.0.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4746</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-14 15:37:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/5335847&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4702</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Luck">xmenclassic</who>
    <bug_when>2007-07-14 16:03:52 -0700</bug_when>
    <thetext>David, do you have tested with disabled pop-up blocking?!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4703</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-14 16:10:56 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; David, do you have tested with disabled pop-up blocking?!

I saw the pop-up with pop-up blocking enabled (e.g., so that Safari blocks pop-ups that it thinks are &quot;bad&quot;), so I doubt that disabling pop-up blocking would change that.

I also don&apos;t have a Windows box to test this on Windows, and I believe it&apos;s a platform-only bug.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4727</commentid>
    <comment_count>5</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-07-14 17:13:21 -0700</bug_when>
    <thetext>Confirmed with r24293 on Windows XP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3230</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Luck">xmenclassic</who>
    <bug_when>2007-07-31 11:55:52 -0700</bug_when>
    <thetext>r24749: 
Safari in this nightly is show a popup window with content! But i can not change the popup size.

&gt;And if i drag this link to Bookmark Bar und i use
&gt;this link of the bar then no open a window. No reaction!
But in this nightly Not change. No reaction with link in Bookmark Bar!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>738</commentid>
    <comment_count>7</comment_count>
    <who name="Alexander Luck">xmenclassic</who>
    <bug_when>2007-09-09 06:47:44 -0700</bug_when>
    <thetext>actual in r25455:
the bookmark &quot;Dump Script&quot; show now in Javascript Console:

SyntaxError: Parse error
undefined                 Line: 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58916</commentid>
    <comment_count>8</comment_count>
    <who name="Alexander Luck">xmenclassic</who>
    <bug_when>2007-10-20 10:38:52 -0700</bug_when>
    <thetext>With which release is fixed this error?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58925</commentid>
    <comment_count>9</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-10-20 13:12:53 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; With which release is fixed this error?

This works with the Safari for Windows 310a18 seed.  Note that if you have an Apple Developer Connection (ADC) account, you may download new seeds of Safari for Windows for free by logging in to &lt;http://developer.apple.com/&gt;.  If you don&apos;t have account, create a free &quot;online&quot; account using &lt;https://connect.apple.com/&gt;.  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59692</commentid>
    <comment_count>10</comment_count>
    <who name="Alexander Luck">xmenclassic</who>
    <bug_when>2007-10-28 04:24:57 -0700</bug_when>
    <thetext>Hello David,
i have install the seed. It is open a new window, but the window have no content. The window ought to show the javascripts!

I think the bug reopen or i open a new bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59710</commentid>
    <comment_count>11</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-10-28 13:00:12 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; Hello David,
&gt; i have install the seed. It is open a new window, but the window have no
&gt; content. The window ought to show the javascripts!
&gt; 
&gt; I think the bug reopen or i open a new bug?

Please open an internal Apple bug report using &lt;https://bugreport.apple.com/&gt; and report the Radar bug number here.  Thanks!

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59810</commentid>
    <comment_count>12</comment_count>
    <who name="Alexander Luck">xmenclassic</who>
    <bug_when>2007-10-29 15:37:08 -0700</bug_when>
    <thetext>I have report the Apple Bug. Apple Bug ID# 5566435</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63663</commentid>
    <comment_count>13</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-08 06:01:18 -0800</bug_when>
    <thetext>Steps to reproduce:
1. Launch Safari/WebKit.
2. Go to URL:  http://developer.apple.com/internet/safari/faq.html#anchor13
3. Click &quot;Dump Scripts&quot; link.

With Safari 3.0.4 (523.12) with original WebKit on Mac OS X 10.4.11 (8S165):
- The content in the pop-up window shows.
- The pop-up window is not resizable.
- No resizer thumb is drawn in the lower right-hand corner of the window.
- The height of the scrollable area is too tall to fit in the window (so that it is possible to &quot;lose&quot; the scroll thumb).

With Safari 3.0.4 (523.12.9) with original WebKit on Windows XP SP2:
- The content in the pop-up window shows.
- The pop-up window is not resizable.
- A resizer thumb is drawn in the lower right-hand corner of the window (incorrectly?).
- The height of the scrollable area is too tall to fit in the window (so that it is possible to &quot;lose&quot; the scroll thumb).

With Safari 3.0.4 (523.12) with WebKit nightly r28505 on Mac OS X 10.4.11 (8S165):
- The content in the pop-up window shows.
- The pop-up window is resizable (Bug 16128; r28300).
- A resizer thumb is drawn in the lower right-hand corner of the window, but it&apos;s white instead of gray like the rest of the chrome.  (Looks ugly.)
- The height of the scrollable area is the correct height to fit in the window.

With Safari 3.0.4 (523.12.9) with WebKit nightly r28503 on Windows XP SP2:
- The content in the pop-up window shows.
- The pop-up window is resizable (Bug 16128; r28300).
- A resizer thumb is drawn in the lower right-hand corner of the window,and it&apos;s gray (correct).
- The height of the scrollable area is too tall to fit in the window (so that it is possible to &quot;lose&quot; the scroll thumb), even after resizing the window.

So it looks like there are two outstanding issues:
- Resizer thumb on Safari 3.0.4 for Tiger is drawn as the wrong color (white instead of gray).
- The height of the scrollable area in the pop-up window in Windows is not correct.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63688</commentid>
    <comment_count>14</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-08 13:48:11 -0800</bug_when>
    <thetext>(In reply to comment #13)
&gt; So it looks like there are two outstanding issues:
&gt; - Resizer thumb on Safari 3.0.4 for Tiger is drawn as the wrong color (white
&gt; instead of gray).

I filed this radar to cover this issue (which affects both Tiger and Leopard):
&lt;rdar://problem/5637190&gt;

&gt; - The height of the scrollable area in the pop-up window in Windows is not
&gt; correct.

The actual problem here is that there are no window-level scrollbars drawn (as there are 6 scripts that should be printed in the pop-up menu).  This is covered by:
&lt;rdar://problem/5566435&gt;

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63689</commentid>
    <comment_count>15</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-08 13:50:10 -0800</bug_when>
    <thetext>(In reply to comment #14)
&gt; (In reply to comment #13)
&gt; &gt; So it looks like there are two outstanding issues:
&gt; &gt; - Resizer thumb on Safari 3.0.4 for Tiger is drawn as the wrong color (white
&gt; &gt; instead of gray).
&gt; 
&gt; I filed this radar to cover this issue (which affects both Tiger and Leopard):
&gt; &lt;rdar://problem/5637190&gt;

This issue does not affect Windows.

&gt; &gt; - The height of the scrollable area in the pop-up window in Windows is not
&gt; &gt; correct.
&gt; 
&gt; The actual problem here is that there are no window-level scrollbars drawn (as
&gt; there are 6 scripts that should be printed in the pop-up menu).  This is
&gt; covered by:
&gt; &lt;rdar://problem/5566435&gt;

This issue affects both Mac and Windows.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>