fix crash when opening a new window

unfortunately this required a rather ugly hack (an invisible web view
that only exists to receive URLs when a new window is requested.)