window.close() does not work in Safari on iOS 8

Originator:chris
Number:rdar://18724381 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
window.close() does not work correctly in iOS 8.  This has been widely reported and is negatively effecting our users of the dropbox chooser/saver.  (details on that here: https://www.dropbox.com/developers/dropins/chooser/js)

Facebook has also dealt with this issue: https://developers.facebook.com/bugs/295178237341368/

Please fix this in the next update to iOS.

Steps to Reproduce:
1. Create a new html file (test.html) viewable from an iOS device running iOS 8
2. Set HTML data for the file:
<html>
<head>
</head>
<body>
	<button onclick="window.open('./test-close.html'); return false;">Open B</button>
</body>
3. Create a second new html file (test-close.html) viewable from an iOS device running iOS 8
4. Set HTML data for the file:
<html>
<head>
</head>
<body>
	<button onclick="window.close();">Close</button>
</body>
3. Open test.html in Safari
4. Click the "Open" button
5. Second window opens with a "Close" button
6. Click the "Close" button


Expected Results:
The second window should close


Actual Results:
The second window does not close


Version:
Safari, iOS 8

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!