Device-Bugs icon indicating copy to clipboard operation
Device-Bugs copied to clipboard

problem when using window.close in iOS5

Open julienw opened this issue 13 years ago • 1 comments
trafficstars

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.

julienw avatar Apr 03 '12 10:04 julienw

Hack alert - set focus on the window before closing it :)

pronouncedJerry avatar Apr 10 '12 15:04 pronouncedJerry