Support Request: Opening a new browser window does not alert for onbeforeunload event

Reproduction

We open a new browser window (tab) (via target="_blank") with a Skype session running inside the new window so the user can move the window around without interfering with the main browser experience. We have an "onbeforeunload" event handler on the new page to warn the user if they exit the window (close the browser tab) their skype session will be terminated. The pop-up from the IE Metro never shows when SiteKiosk is running.

It DOES show if SiteKiosk is NOT running, but logged on as user SiteKiosk, AND when the page is NOT opened in a new tab (i.e without the target="_blank") when SiteKiosk IS running.

We require the page to be in a new browser window, which will be movable, and for the onbeforeunload event to be process correctly.

Code to launch a new browser window (tab) inside page1.html file:

<a href="page2.html" target="_blank" class="text-white"><em>Would you like to connect to a live technician?</em></a>


Code the cause onbeforeunload event to be handled inside page2.html file:

<body onload="window.onbeforeunload = function() { return 'Are you sure you want to exit?  If you leave this page you will end your video conference.'; };">

Description

You can use
 
for code samples

Answer: (1)

Re: Opening a new browser window does not alert for onbeforeunload event 10/2/2019 7:57 PM
Hello,

Thank you for submitting this report. This is not a bug. This behavior can be found in Chrome as well. The feature you are referring is not available in the public part of the IE WebBrowser Control SiteKiosk uses. You can test your application in these Browser engines to confirm that it would work in SiteKiosk.

Microsoft WebBrowser Control
https://www.provisio.com/download/Webbrowser%20Control%20Test%20Applikation%20EN.pdf

Current Chrome engine used in SiteKiosk 9.7 5026
http://opensource.spotify.com/cefbuilds/cef_binary_3.3683.1920.g9f41a27_windows32_client.tar.bz2

Best regards.
My Account
Login
Language (Tickets):