Issue 1994: Properties in window.navigator do not survive GC
http://code.google.com/p/chromium/issues/detail?id=1994
Comment #5 by [EMAIL PROTECTED]:
You are right, there is widespread craziness in other browsers regarding
this.
However, there is agreement on behavior of window.navigator and and
window.location.
Attached is a test case which tests those main properties behavior across
GC.
Here is the output from the various browsers:
Chrome (everything was GCed)
[window.screen.myCustomProperty] : value=undefined
[window.history.myCustomProperty] : value=undefined
[window.locationbar.myCustomProperty] : value=undefined
[window.menubar.myCustomProperty] : value=undefined
[window.personalbar.myCustomProperty] : value=undefined
[window.scrollbars.myCustomProperty] : value=undefined
[window.statusbar.myCustomProperty] : value=undefined
[window.toolbar.myCustomProperty] : value=undefined
[window.navigator.myCustomProperty] : value=undefined
[window.location.myCustomProperty] : value=undefined
Safari 3.1 (navigator and location survived)
[window.screen.myCustomProperty] : value=undefined
[window.history.myCustomProperty] : value=undefined
[window.locationbar.myCustomProperty] : value=undefined
[window.menubar.myCustomProperty] : value=undefined
[window.personalbar.myCustomProperty] : value=undefined
[window.scrollbars.myCustomProperty] : value=undefined
[window.statusbar.myCustomProperty] : value=undefined
[window.toolbar.myCustomProperty] : value=undefined
[window.navigator.myCustomProperty] : survived GC
[window.location.myCustomProperty] : survived GC
Firefox 2 (navigator and location survived)
[window.screen.myCustomProperty] : value=undefined
[window.history.myCustomProperty] : value=undefined
[window.locationbar.myCustomProperty] : value=undefined
[window.menubar.myCustomProperty] : value=undefined
[window.personalbar.myCustomProperty] : value=undefined
[window.scrollbars.myCustomProperty] : value=undefined
[window.statusbar.myCustomProperty] : value=undefined
[window.toolbar.myCustomProperty] : value=undefined
[window.navigator.myCustomProperty] : survived GC
[window.location.myCustomProperty] : survived GC
IE7 (most of those props aren't valid in IE):
[window.screen.myCustomProperty] : threw exception setting value --
[object
Error]
[window.history.myCustomProperty] : survived GC
[window.locationbar] : does not exist.
[window.menubar] : does not exist.
[window.personalbar] : does not exist.
[window.scrollbars] : does not exist.
[window.statusbar] : does not exist.
[window.toolbar] : does not exist.
[window.navigator.myCustomProperty] : survived GC
[window.location.myCustomProperty] : survived GC
Attachments:
gc-prop.html 3.2 KB
Issue attribute updates:
Cc: [EMAIL PROTECTED]
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---