Closed Bug 1043837 Opened 11 years ago Closed 10 years ago

closing the browser from tab and not window will not get the positions of the divs using (window.onunload = window.onbeforeunload)

Categories

(Firefox :: Untriaged, defect)

31 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: hanielyassir, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 Steps to reproduce: I have number of divs where each one have a certain position, and they are draggable, I used window.onunload = window.onbeforeunload = function{this function will get the position of each of the divs and store them in the local storage once the window / tab is closed} then when re-opening the application it will get the positions from the local storage and append them Actual results: when closing the whole window, everything works fine and the positions are saved when closing the tab while it is the only tab available, everything works fine and the positions are saved when more than one tab is available, closing the tab and not the window will not get the positions Expected results: when closing the tab while there is more than one tab opened, it should get the positions and save them in the localstorage
I cannot reproduce the issue on latest release(43.0.4) nor the latest Nightly(46.0a1), using only the function that you mentioned above. Providing more info regarding the code that you used, would be helpful. Please create a simplified test case in https://jsfiddle.net/ and paste the link or attach a doc to the bug, if you can. Can you please try to reproduce this on the latest release(43.0.4) and latest Nightly(46.0a1) and provide the results? When doing this, you could create a new clean Firefox profile, or maybe test in safe mode, as some of this issues may be caused by third party installed addons or custom settings (https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems). User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 Build ID: 20160105164030 User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0 Build ID: 20160106030225 Thank you, Vlad
Flags: needinfo?(hanielyassir)
Hi, Considering the fact that the reporter did not provide more information on my request and the issue can't be reproduced, I will mark this issue as Resolved - Incomplete. If you can still reproduce this, feel free to reopen it and provide the requested information. Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(hanielyassir)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: