#10509 closed bug (cantfix)
JQUERY UNLOAD DOESN'T WORK IN GOOGLE CHROME 14 AND ABOVE!
Reported by: | bistra | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
JQUERY UNLOAD DOESN'T WORK IN GOOGLE CHROME 14 AND ABOVE! For example this: $(window).unload(function(){
alert("Goodbye!");
});
doesn't produces anything! It crashes totally my project! Help me, please!
Change History (4)
comment:1 Changed 11 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 11 years ago by
Resolution: | → cantfix |
---|---|
Status: | open → closed |
Not our bug, and something we can't patch.
http://code.google.com/p/chromium/issues/detail?id=91854
Several dups in their bug database, search for "onunload" to see them.
Could be related to this security fix since it arose at Chrome 14:
comment:3 Changed 11 years ago by
It has a solution:
window.onbeforeunload = function() { return "text"; }
It's not a jQuery code, but it works.
comment:4 Changed 10 years ago by
The solution mentioned above:
window.onbeforeunload = function() { return "text"; }
does not work either for me if I close the respective window. It works if I reload the page.
Note: See
TracTickets for help on using
tickets.
Confirmed that this works in FF.latest but not in Chrome 14+: http://jsfiddle.net/BT3SS/1/. Pretty sure this is a dupe of another ticket, but will chase down and confirm. I do know there are known issues with onbeforeunload in Chrome.stable onwards, but need to find out if there are related ones with this.