Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 19331 by amitnitt305: self.close() is not working
http://code.google.com/p/chromium/issues/detail?id=19331

Chrome Version       : <Copy from: '2.0.172'>
URLs (if applicable) :
Other browsers tested:YES
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 4:
   Firefox 3.x:OK
          IE 7:OK
          IE 8:OK

What steps will reproduce the problem?
1.Call a javascript function on <a href e.g. <a
href="javascript:OpenHelpWindow(newurl)"> in XSL
2.javascript function is like this
<script language="JavaScript" type="text/javascript">
<xsl:text disable-output-escaping="yes">
&lt;!--
function OpenHelpWindow(newurl)
{
newWindow = window.open(newurl);
newWindow.focus();
self.close();
}
//--&gt;
</xsl:text>
</script>
3.So here pop-up contains link which should open in new window and then
close the parent window(means pop-up window)

What is the expected result?
Here pop-up contains link which should open in new window and then close
the parent window(means pop-up window)

What happens instead?
Here pop-up contains link IS opening in new window and but not closing the
parent window(means pop-up window)




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to