Showing posts with label firefox. Show all posts
Showing posts with label firefox. Show all posts

Monday, January 22, 2007

Does Firefox crash for you?

About ten days ago I discovered a really evil and nasty bug that totally crashed the Mozilla Firefox webbrowser and after some hard work I managed to remove the crashing symptom of my site.

On popular demand I have restored an old backup where the Firefox-crashing bug still is present and set up a little test site for you all to test if your Firefox (combined with your Windows-version) crashes. It seems that the only variable is not what Firefox version you are running, but also there seems to depend on something else, it may be a windows driver or something like that. Maybe it depends on what Add-ons are installed in Firefox.

If you are running Firefox go to http://ffcrash.agent55.com and test it, and please post a comment about the results here. Dont forget to mention what version of Firefox you have and what operating system version you are running.

Sunday, January 21, 2007

Weird bug crashes Firefox totally without warning

This site uses a lot of DHTML-objects and the purpose was to make this work for IE 6/7, Firefox and Opera with the priority in that order. After months of coding and testing, I felt that this site was pretty stable, and so I asked my friends to help me test this site out.

After 2 hours I got a text message at my MSN messenger where a friend claims that my site makes his Firefox (2.01) to totaly Crash! No error message, no nothing, it just crashes and closes all Firefox windows opened. I ask what he did to make this crash and he says "I just clicked on the Find!-button twice". OMG! I immediately start trying to reproduce this bug, and find out that my Firefox also crashes, sometimes. Not every time I click the Find!-button, but every other time approximately.

Now I was forced to start dividing up my code in pieces and start commenting out code, to narrow down the bug, and as you can imagine my Firefox crashed many many many times that day and the day after.

Eventually I narrowed the bug down and found out that it was something in my main .css-file that caused Firefox to unexpectedly crash! At the end I finaly found what was causing Firefox to crash. It was a CSS-class that had "position: absolute" as an attribute and this class was used by the many DHTML objects used in my code.

I guess this error is some kind of buffer-overflow bug thats causing FF to die. So to solve this problem I had to change the actual CSS-class from absolute to static, and then later on in javascript-code, I could change the position to be absolute. And FINALY, Firefox did not crash so horribly that it had done before. So bevare developers if you experience this Firefox crash bug, try commenting out your (extensive) style-sheet.

If you have Firefox and want to test if your Firefox crashes, go here