New issue
Advanced search Search tips

Issue 618611 link

Starred by 0 users

Issue metadata

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



Sign in to add a comment

Text returned from window.onBeforeUnload event does not display in the message box

Reported by mihir.vi...@gmail.com, Jun 9 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

Steps to reproduce the problem:
1. Create a html page with following content in it
<html><body><script>
    window.onbeforeunload = function() { return "Sure?"; };
</script></body></html>
2. Open the page in Chrome
3. Close the browser window
It does not display "Sure?" in the message box

What is the expected behavior?
It should should show user messages in the message box as it was showing in the previous versions

What went wrong?
Does not display message returned from the event handler

Did this work before? Yes In version 50.x

Chrome version: 51.0.2704.84  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 21.0 r0

https://jsfiddle.net/5k6rr6sk/
 
Before.png
7.9 KB View Download
Now.png
8.7 KB View Download
Components: -Blink Blink>WindowDialog
Mergedinto: 587940
Status: Duplicate (was: Unconfirmed)
This was an intentional change for security reasons. Please see https://www.chromestatus.com/feature/5349061406228480

Sign in to add a comment