New issue
Advanced search Search tips

Issue 817009 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 812293
Owner: ----
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

onbeforeunload called when click on download links

Reported by marine.w...@gmail.com, Feb 27 2018

Issue description

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

Steps to reproduce the problem:
1. click on a link that have a download attribute
2. onbeforeunload function is called

What is the expected behavior?
With Chrome 64 onbeforeunload was not called

What went wrong?
If I don't set the target attribute, the defaut one is supposed to be "_self: Opens the linked document in the same frame as it was clicked (this is default)
So there is no reason to call onbeforeunload function

If I set the target to "_blank": Opens the linked document in a new window or tab; the onbeforeunload is not called

Did this work before? Yes Chrome 64

Does this work in other browsers? N/A

Chrome version: 65.0.3325.88  Channel: beta
OS Version: 10.0
Flash Version:
 
onbeforeunload_sample.html
507 bytes View Download

Comment 1 by woxxom@gmail.com, Feb 27 2018

Duplicate of  issue 812293  fixed in 66.0.3356.0
What about Chrome 65? Will it be fixed in this version too?

Comment 3 by ajha@chromium.org, Feb 28 2018

Labels: Needs-Triage-M65
Labels: Needs-Bisect
Labels: -Needs-Bisect Triaged-ET
Mergedinto: 812293
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment