ExitConfirmation doesn't work on firefox and chrome [message #1774502] |
Mon, 16 October 2017 14:38  |
Eclipse User |
|
|
|
Hello, using rap 3.3 or 3.2, the ExitConfirmation service message doesn't work with Firefox 56 or Chrome 61.
Closing session, the exit message compares only few times
It works with Internet explorer.
Simple snippet:
public class Test1 implements EntryPoint {
@Override
public int createUI() {
RWT.getClient().getService(ExitConfirmation.class).setMessage("hello");
Shell s = new Shell();
s.setText("Hello");
s.setBounds(0, 0, 300, 300);
s.open();
return 0;
}
}
|
|
|
Re: ExitConfirmation doesn't work on firefox and chrome [message #1774649 is a reply to message #1774502] |
Wed, 18 October 2017 10:27   |
Eclipse User |
|
|
|
Hi,
it seems there are some ongoing changes in Firefox and Chrome related to "beforeunload" event. Just tested on recent (Chrome 61 and Firefox 56) browsers and "beforeunload" event is not fired at all. Custom message is no longer supported in most browsers and we will remove the ExitConfirmation client service soon.
Regards,
Ivan
|
|
|
|
Re: ExitConfirmation doesn't work on firefox and chrome [message #1774711 is a reply to message #1774651] |
Thu, 19 October 2017 00:43   |
Eclipse User |
|
|
|
It still works for me on Chrome 61, providing the page has been interacted with. It's still a useful feature. I use it to warn a user has unsaved changed before navigating away. They only have unsaved changed if they have interacted with the page.
The custom message doesn't display in Chrome any more but please don't remove the service.
IE11 still display the supplied message.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04096 seconds