Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 25636 by adrianob: Popup can't open a new window and close itself
http://code.google.com/p/chromium/issues/detail?id=25636
Chrome Version : 3.0.195.27
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 4:OK
Firefox 3.x:OK
IE 7:OK
IE 8:OK
What steps will reproduce the problem?
1. Open a popup using window.open();
2. In the popup, an anchor should have an onclick function which calls
window.open() and right
after window.close() to close itself;
What is the expected result?
A new window should be opened and the opener (the popup) should be closed.
What happens instead?
A new window is opened but the opener (the popup) is not closed.
Please provide any additional information below. Attach a screenshot if
possible.
I could workaround the problem on Chrome 4.0.223.8 for Mac, using the
following code:
function openClose() {
window.open(...);
setTimeout(function() { window.close(); }, 1);
}
Following attached three files that show the problem.
Attachments:
index.html 165 bytes
popup.html 250 bytes
index2.html 63 bytes
--
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
-~----------~----~----~----~------~----~------~--~---