<?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>11346</bug_id>
          
          <creation_ts>2006-10-18 05:09:07 -0700</creation_ts>
          <short_desc>_blank is assigned to Window name</short_desc>
          <delta_ts>2007-09-30 03:30:28 -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>WebCore Misc.</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></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="Madhu M">madhu.mukund</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>madhu.mukund</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52010</commentid>
    <comment_count>0</comment_count>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2006-10-18 05:09:07 -0700</bug_when>
    <thetext>If there is no name given in window.open, then in WebKit &apos;_blank&apos; is assigned to the name of the window. In Firefox it will be empty string. In WebKit if id is given and there is no name then name of the window is assigned as the id.
In firefox if the name is given as &apos;_blank&apos; it will be changed to &quot;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52008</commentid>
    <comment_count>1</comment_count>
      <attachid>11132</attachid>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2006-10-18 05:18:17 -0700</bug_when>
    <thetext>Created attachment 11132
Patch for review

It is a sample fix for review for the issue to make the behavior similar to Mozilla  Firefox</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51962</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-10-18 09:24:02 -0700</bug_when>
    <thetext>To ask for a review, please select &apos;?&apos; from a popup on the screen that opens when you click &quot;Edit&quot; link. A proper patch must include an automated testcase, but you can ask for a review just to get some feedback on the approach.

FWIW, when I enter &quot;javascript:window.open()&quot; in the address bar of ToT, I get a window named &quot;about:/undefined&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49860</commentid>
    <comment_count>3</comment_count>
      <attachid>11132</attachid>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2006-10-25 04:13:38 -0700</bug_when>
    <thetext>Comment on attachment 11132
Patch for review

In window.open, if there is no name is given, as the second parameter, in Safari _blank is assigned to the name of the Window. But in Firefox it will be &quot;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49861</commentid>
    <comment_count>4</comment_count>
      <attachid>11200</attachid>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2006-10-25 04:18:14 -0700</bug_when>
    <thetext>Created attachment 11200
the zip contains the sample pages to show the bug

Open the main.htm in Safari and click on the link, it will give self.name=_blank.
Do the same in Firefox. It will be &apos;self.name= &apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49863</commentid>
    <comment_count>5</comment_count>
      <attachid>11202</attachid>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2006-10-25 04:27:37 -0700</bug_when>
    <thetext>Created attachment 11202
Patch for the issue

In this patch I have modified the code, to make the behaviour of Safari similar to Firefox. I have assigned &quot;&quot; to Window name if the name is undefined or null. If the name is given as _blank it will be changed to &quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49864</commentid>
    <comment_count>6</comment_count>
      <attachid>11202</attachid>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2006-10-25 04:31:30 -0700</bug_when>
    <thetext>Comment on attachment 11202
Patch for the issue

Please review and give suggestion</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48408</commentid>
    <comment_count>7</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-10-31 04:23:36 -0800</bug_when>
    <thetext>Reopened since this is not resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48374</commentid>
    <comment_count>8</comment_count>
      <attachid>11202</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-10-31 10:07:38 -0800</bug_when>
    <thetext>Comment on attachment 11202
Patch for the issue

My comments:

1) This patch appears to be in RTF format, it needs to be in plain text.

2) There is no ChangeLog entry.

3) There is no test case in the patch - this probably can&apos;t be tested automatically but it should include a test for the manual-tests directory.

4) This fix is at the wrong layer. There are ther constructs besides window.open that can open a new window, such as &lt;a href=&quot;http://somesite.com/&quot; target=&quot;_blank&quot;&gt;, these need to be covered as well. The right place to fix this is in the Frame code itself - a request to open a new window for _blank should make sure that the name ends up empt instead of &quot;_blank&quot;.

5) Comments in the code should not talk about making a specific fix, nor should they describe what the code is doing if that is obvious just from reading.

6) Coding style issue, there should be a space between the &quot;if&quot; and the open paren: if(frameName == &quot;_blank&quot;)

Please addresse these issues and resubmit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40594</commentid>
    <comment_count>9</comment_count>
      <attachid>11964</attachid>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2006-12-22 06:30:58 -0800</bug_when>
    <thetext>Created attachment 11964
The attachment is a fix for the issue

Reviewer, Please send me a sample change log. The attachment contains the fix as suggested by MJS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40591</commentid>
    <comment_count>10</comment_count>
      <attachid>11964</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-12-22 06:49:35 -0800</bug_when>
    <thetext>Comment on attachment 11964
The attachment is a fix for the issue

Thanks for the patch!  There are still some issues that need to be cleaned up, though.

1. Please use WebKitTools/Scripts/prepare-ChangeLog to generate your own ChangeLog entry, then use WebKitTools/Scripts/svn-create-patch to generate the patch.  More info here: http://webkit.org/coding/contributing.html

2. No tabs are allowed in the source code.  Please use spaces instead.  More info here:  http://webkit.org/coding/coding-style.html

3. A manual test in WebCore/manual-tests should be included with the patch per Maciej in Comment #8.

Almost there!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29119</commentid>
    <comment_count>11</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-02-01 13:05:45 -0800</bug_when>
    <thetext>This may be fixed now. Tested local debug build of WebKit r19341 with Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8N1037).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57434</commentid>
    <comment_count>12</comment_count>
    <who name="Andrew Wellington">andrew</who>
    <bug_when>2007-09-30 03:30:28 -0700</bug_when>
    <thetext>As ddkilzer mentioned this issue has been fixed (see FrameTree::uniqueChildName) in r13257</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11132</attachid>
            <date>2006-10-18 05:18:17 -0700</date>
            <delta_ts>2006-10-25 04:27:37 -0700</delta_ts>
            <desc>Patch for review</desc>
            <filename>_blank issue.txt</filename>
            <type>text/plain</type>
            <size>1093</size>
            <attacher name="Madhu M">madhu.mukund</attacher>
            
              <data encoding="base64">e1xydGYxXG1hY1xhbnNpY3BnMTAwMDBcY29jb2FydGY4MjRcY29jb2FzdWJydGY0MTAKe1xmb250
dGJsXGYwXGZzd2lzc1xmY2hhcnNldDc3IEhlbHZldGljYTt9CntcY29sb3J0Ymw7XHJlZDI1NVxn
cmVlbjI1NVxibHVlMjU1O30KXG1hcmdsMTQ0MFxtYXJncjE0NDBcdmlld3c5MDAwXHZpZXdoODQw
MFx2aWV3a2luZDAKXHBhcmRcdHg3MjBcdHgxNDQwXHR4MjE2MFx0eDI4ODBcdHgzNjA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KCkgY2FsbHMgd2l0aCBubyBuYW1lIHdpbGwgcGFzcyByaWdodCB0aHJvdWdoIHRoZSBwb3B1cCBi
bG9ja2VyLlwKfQ==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11200</attachid>
            <date>2006-10-25 04:18:14 -0700</date>
            <delta_ts>2006-10-25 04:18:14 -0700</delta_ts>
            <desc>the zip contains the sample pages to show the bug</desc>
            <filename>_blank issue.zip</filename>
            <type>application/x-zip-compressed</type>
            <size>1454</size>
            <attacher name="Madhu M">madhu.mukund</attacher>
            
              <data encoding="base64">UEsDBAoAAAAAAF2LEjUAAAAAAAAAAAAAAAANABAAX2JsYW5rIGlzc3VlL1VYDACTWuZE0VrmRPUB
9QFQSwMEFAAIAAgAB4kSNQAAAAAAAAAAAAAAABkAEABfYmxhbmsgaXNzdWUvY2hpbGR3aW4uaHRt
VVgMANda5kRuVuZE9QH1AbPxCPH1seOy8XB1dAFS+lDayd8l0o6LyybYOcgzIMSOqzwzLyW/XC8/
Lyc/McU2Jd8HSFlzpZXmJZdk5ucpQAQ0NLmquTgTc1KLSjSUilNz0vTyEnNTrayUtBXgPE1rrlqg
ufowg7mcMzJzUhTCweaDJCA2Ax0CchcAUEsHCAdJcUp6AAAAngAAAFBLAwQKAAAAAABiixI1AAAA
AAAAAAAAAAAACQAQAF9fTUFDT1NYL1VYDADXWuZE11rmRPUB9QFQSwMECgAAAAAAYosSNQAAAAAA
AAAAAAAAABYAEABfX01BQ09TWC9fYmxhbmsgaXNzdWUvVVgMANda5kTXWuZE9QH1AVBLAwQUAAgA
CAAHiRI1AAAAAAAAAAAAAAAAJAAQAF9fTUFDT1NYL19ibGFuayBpc3N1ZS8uX2NoaWxkd2luLmh0
bVVYDADXWuZEblbmRPUB9QFjYBVjZ2BiwAQgMU4gNgJiBSg/CCQR4hoREqSVnIFFDxgAAFBLBwgx
aw3NIwAAAFIAAABQSwMEFAAIAAgAI4kSNQAAAAAAAAAA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RFBLAQIVAxQACAAIACOJEjUxaw3NIwAAAFIA
AAAgAAwAAAAAAAAAAECkgeMCAABfX01BQ09TWC9fYmxhbmsgaXNzdWUvLl9tYWluLmh0bVVYCADX
WuZEoVbmRFBLBQYAAAAABwAHADQCAABkAwAAAAA=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11202</attachid>
            <date>2006-10-25 04:27:37 -0700</date>
            <delta_ts>2006-12-22 06:37:09 -0800</delta_ts>
            <desc>Patch for the issue</desc>
            <filename>Patch-_blank.txt</filename>
            <type>text/plain</type>
            <size>1439</size>
            <attacher name="Madhu M">madhu.mukund</attacher>
            
              <data encoding="base64">e1xydGYxXG1hY1xhbnNpY3BnMTAwMDBcY29jb2FydGY4MjRcY29jb2FzdWJydGY0MTAKe1xmb250
dGJsXGYwXGZzd2lzc1xmY2hhcnNldDc3IEhlbHZldGljYTt9CntcY29sb3J0Ymw7XHJlZDI1NVxn
cmVlbjI1NVxibHVlMjU1O30KXG1hcmdsMTQ0MFxtYXJncjE0NDBcdmlld3c5MDAwXHZpZXdoODQw
MFx2aWV3a2luZDAKXHBhcmRcdHg3MjBcdHgxNDQwXHR4MjE2MFx0eDI4ODBcdHgzNjAwXHR4NDMy
MFx0eDUwNDBcdHg1NzYwXHR4NjQ4MFx0eDcyMDBcdHg3OTIwXHR4ODY0MFxxbFxxbmF0dXJhbFxw
YXJkaXJuYXR1cmFsCgpcZjBcZnMyNCBcY2YwIEluZGV4OiBXZWJDb3JlL2JpbmRpbmdzL2pzL2tq
c193aW5kb3cuY3BwXAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09XAotLS0gV2ViQ29yZS9iaW5kaW5ncy9qcy9ranNfd2lu
ZG93LmNwcAkocmV2aXNpb24gMTU1MjYpXAorKysgV2ViQ29yZS9iaW5kaW5ncy9qcy9ranNfd2lu
ZG93LmNwcAkod29ya2luZ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cG9wdXAgYmxvY2tlci5cCiAgICAgICBpZiAoIWFsbG93UG9wVXAoZXhlYywg
d2luZG93KSAmJiAoZnJhbWVOYW1lLmlzRW1wdHkoKSB8fCAhZnJhbWUtPnRyZWUoKS0+ZmluZChm
cmFtZU5hbWUpKSlcCn0=
</data>
<flag name="review"
          id="3841"
          type_id="1"
          status="-"
          setter="mjs"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11964</attachid>
            <date>2006-12-22 06:30:58 -0800</date>
            <delta_ts>2006-12-22 06:49:35 -0800</delta_ts>
            <desc>The attachment is a fix for the issue</desc>
            <filename>_blankissue.txt</filename>
            <type>text/plain</type>
            <size>337</size>
            <attacher name="Madhu M">madhu.mukund</attacher>
            
              <data encoding="base64">IApJbmRleDogRnJhbWVUcmVlLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBGcmFtZVRyZWUuY3BwCShyZXZp
c2lvbiAxNTUyNikKKysrIEZyYW1lVHJlZS5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTUyLDYgKzUy
LDggQEAgdm9pZCBGcmFtZVRyZWU6OnNldE5hbWUoY29uc3QgQXRvbWljU3RyaQogewogICAgIGlm
ICghcGFyZW50KCkpIHsKICAgICAgICAgbV9uYW1lID0gbmFtZTsKKwlpZiAobV9uYW1lID09ICJf
YmxhbmsiKQorCSAgICBtX25hbWUgPSAiIjsKICAgICAgICAgcmV0dXJuOwogICAgIH0KIA==
</data>
<flag name="review"
          id="4389"
          type_id="1"
          status="-"
          setter="ddkilzer"
    />
          </attachment>
      

    </bug>

</bugzilla>