When closing the browser tab that contains a Vaadin UI that uses @Push, an error notification with the text "Push connection using long-polling failed!" is momentarily shown in the upper right corner. It seems like this only happens in Chrome but not in Firefox or Safari.
To reproduce:
Download and extract a plain java project from https://vaadin.com/start. When this was written, the provided Vaadin version was 14.2.1
Add @Push to MainView
mvn jetty:run
Open in Chrome
Look at the upper right corner when closing the browser tab.
You can make the browser freeze after the notification has been shown but before the window actually closes by running this oneliner in the JS console: window.addEventListener("unload", () => { debugger; });.
When closing the browser tab that contains a Vaadin UI that uses
@Push
, an error notification with the text "Push connection using long-polling failed!" is momentarily shown in the upper right corner. It seems like this only happens in Chrome but not in Firefox or Safari.To reproduce:
@Push
toMainView
mvn jetty:run
You can make the browser freeze after the notification has been shown but before the window actually closes by running this oneliner in the JS console:
window.addEventListener("unload", () => { debugger; });
.