New issue
Advanced search Search tips

Issue 624729 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 587940
Owner: ----
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Can not show custom message on the confirm navigation popup

Reported by lewisw...@gmail.com, Jun 30 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36

Steps to reproduce the problem:
window.onbeforeunload = () => 'Are you sure want to leave this page';
// or
window.addEventListener('beforeunload', e => {
  e.returnValue = 'Are you sure want to leave this page';
})

What is the expected behavior?
The confirm navigation popup show "Are you sure want to leave this page".

What went wrong?
The confirm navigation popup show the default message "Changes you made may not be saved".

Did this work before? Yes 

Chrome version: 51.0.2704.106  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0
 
Mergedinto: 587940
Status: Duplicate (was: Unconfirmed)
This is an intended change, see the linked bug for more context.

Sign in to add a comment