Open Bug 1101296 Opened 6 years ago Updated 2 years ago

onbeforeunload and Back button


(Core :: DOM: Events, defect, P5)






(Reporter: nazar, Unassigned)


(Keywords: testcase)


(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20141115210037

Steps to reproduce:

Add small piece of JS on page:
window.onbeforeunload = function() {return true;}

Click Back button, page leaving confirmation appeared, click to stay on page.

Actual results:

I'm going to previous page.

Expected results:

I'm staying on current page. There is no such problem on tab closing or when click Esc when confirmation appeared.
WFM on Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0 ID:20141117030201 CSet: a52bf59965a0
Component: Untriaged → DOM: Events
Product: Firefox → Core
Is this a regression?
Also, this is WFM on linux.
I have no idea
Attached file onbeforeunload.html
Works for me.
* Firefox 36.0.4, Windows 7 x64
* Firefox 36.0.4, Linux Mint KDE 17.1 x64
Keywords: testcase

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.