Hi beavis,
First of all, let me start by saying that there is no such list
available on net which can give you all the events which causes the IE
to crash and their workarounds. I've tried to list many such cases by
searcing the net. As a suggestion, if you ask your users to upgrade
their browsers to IE 5, they can avoid most of the crashes.
Here are some of the cases:
1. If you create an "is" object on IE3 for the Mac, the first time the
page is loaded, the code will work fine, however any reloads of the
page will cause the browser to crash
Workaround :To get around this on IE3 for the Mac, we don't create an
"is" object; instead, we create bunch of boolean variables which have
similar names
Another possible workaround is to use the object oriented code on all
other browsers but wrap it in a check which avoids executing the
object oriented code on IE3 for the Mac. This preserves the object
oriented design of the code but requires an extra boolean check like
if (!isIE3Mac && is_nav4up) each time you reference the is object.
http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
2. Check out this page too. It has some HTML code which can crash your
IE. So the workaround is do not code as given on this page:
http://www.insecure.org/sploits/ie40.bugs.html
3. Microsoft Internet Explorer Can Be Crashed By Malicious
'location.replace' Javascript
Solution: No solution was available at the time of this entry. But I
think, in the latest version of IE, this has been fixed.
http://securitytracker.com/alerts/2002/Mar/1003856.html
4. IE4 has a layout bug. You'll need to load your menus before the
window's onLoad event handler is called, because IE4 will most often
crash when the Menu component tries to use the JScript innerHTML
property for CSS-P objects after the page is laid out, especially with
multiple menus.
Solution: Load your menus early and you should be fine.
5. Due to users installing IE4 final without uninstalling IE4 beta, an
error is caused when clicking a link to open a pop-up window.
Microsoft Internet Explorer 4 has errors with this line:
popupWin = window.open("file.html", "remote");
Another weird twist to this case is that it doesn't always happen.
Infact, many people report that the browser crashes after recieving
the error "No such interface supported".
Solution:The best solution is to uninstall the browser and reinstall
just IE4 final. This will solve the problem and solve other
undiscovered problems.
6. A page uses frames to host JavaScript code on the main page, and
uses a "main" subframe to display rendered contents calculated by the
JavaScript code. In addition, the displayed page has event handlers on
various actions that could be cause for the page to be redrawn, by
executing a function in the
parent frame. So, if we use an "onChange" event handler in a text
input box, and the user enters data and TABS out of the box, the
onChange event handler is invoked. If the event handler redraws the
page, IE will crash.
Solution: If you change the data and then CLICK on the page, the event
handler is also invoked, the page is redrawn, but the browser does not
crash.
http://security-archive.merton.ox.ac.uk/bugtraq-199909/0280.html
7. Various JavaScript bugs or events that can cause IE to crash can be
found here:
http://search.atomz.com/search/?sp-q=bugs+with+JS+to+crash+IE&sp-a=sp1001071c
Search Terms used:
tuning of javascript to avoid IE crashing
://www.google.com/search?q=tuning+of+javascript+to+avoid+IE+crashing&btnG=Google+Search&hl=en
javascript events that can crash IE browser
://www.google.com/search?hl=en&q=javascript+events+that+can+crash+IE+browser&btnG=Google+Search
how to avoid IE browser from crashing
http://search.dogpile.com/texis/search?q=how+to+avoid+IE+browser+from+crashing&geo=no&fs=web
I hope this will help you in making your code more robust and
Crash-Free.
Regards
netcrazy |