Improve window open/close handling

We should not suspend window that opened a child window as
it may want to close child window. Currently manual test case of
testwindowopen.html that tries to close the child window from the
tesstwindowopen.html fails because it got suspended.

Requires:
https://github.com/tmeshkova/qtmozembed/pull/68