beforeunload() does not works



  • In some web applications when user has mis-clicked the close button, a dialog will pop up in Chrome asking user whether he really want to close the window.

    Vivaldi did not implement this in earlier versions. In version 1.14.1077.50 I'm happy to see that a dialog is shown. However, the tab is closed even when user clicks "Stay", which does not make any sense.

    Please fix this issue, and then vivaldi-browser will be ready for my production use.


  • Moderator

    @feng32 Please Submit a Bug Report.

    This is not a feature request.

    Is this what you mean? I get this message when I try to close a page where I have started to type a forum reply.

    Leave cancels the reply and closes the tab; Stay leaves the tab open.

    0_1520231842566_Leave or Stay.png



  • @pesala Yes. In my environment, clicking the close tab button caused the tab closed immediately, and a dialog shows up in the mean time.

    I'm running Vivaldi on Linux Mint 17.3 and I will submit a bug report later


  • Moderator

    This bug was known and is already fixed in 1.15.1111.3.



  • @gwen-dragon said in beforeunload() does not works:

    This bug was known and is already fixed in 1.15.1111.3.

    Is there a way to view the bug report?

    I am still seeing weird behavior on Windows 10, with 1.15.1111.3 (Official Build) (64-bit), Revision 653970a68c45187d552abebe5305dc749360f566-

    The tab closes and disappears from the tab bar, then the dialog pops up, and when I choose Stay the tab re-appears, including shifting following tab bar entries to the right again.
    The form fields that had been filled in by me on the page are still correctly filled - but the way the whole process is handled feels ghastly ...

    Would be glad if someone could look into that. Should this go into a new bug report?

    Cheers,
    Chris



  • @cbroe I agree. The other web browsers keep the tabs open, and its very jarring to have it close and disappear before prompting you.

    That being said, as long as it works I can live with it not being pretty. There are other bugs to focus on.


  • Moderator

    @cbroe said in beforeunload() does not works:

    Is there a way to view the bug report?

    No.

    May be this issue with beforeunload() is a regressed/new bug.

    Please read How to report a bug for Vivaldi carefully and then report the bug to Vivaldi.


 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.