Device-Bugs
Device-Bugs copied to clipboard
problem when using window.close in iOS5
Hi,
we created 2 testcases available there : http://chatillon.everlong.org/~flash/tests/ios-window-close/
First testcase test-close-with-ref.html contains 2 buttons: the first opens a new window, the second closes the window that was opened. On iOS, the current window is closed.
Then, test-close-with-postmessage.html contains also 2 buttons: the first opens a new window test-close-with-postmessage-secondpage.html, which reacts when it receives a postmessage "close". The second button of the first window send this message and the second page should close. Instead, on IOS5, the currently active window is closed.
So it seems this is the same bug: when calling the "close" method on any Window object, the window which is currently active is closed instead of the window pointed by the reference.
Hack alert - set focus on the window before closing it :)