my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes question about leak Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "question about leak" Watch "question about leak" New topic
Author

question about leak

simon tiberius
Greenhorn

Joined: Oct 30, 2012
Posts: 29


will this snippet leak? I have some assumptions:
1. in old browsers, there can only be one page in each browser window. so in old browsers, closing the browser window will clear the leak. but in newer browsers where one browser window can accommodate multiple tabs which means that one browser window can accommodate multiple pages at once, closing the one tab containing the snippet above is enough to solve the leak. so in newer browsers, no need to close other tabs that don't contain the snippet right? just the one containing the snippet is enough to "plug" the leak.
2. if I change the code to this:

will this plug the leak altogether?
thanks
 
 
subject: question about leak
 
Similar Threads
Using onclick in input tag
How to capture close[X] function in javascript?
Title sometimes wrong until JavaScript finishes
IE: window.opener is null
Recursive call to a JavaScript method with AJAX call