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
Showing posts with label class. Show all posts
Showing posts with label class. Show all posts
Sunday, January 21, 2007
Weird bug crashes Firefox totally without warning
Subscribe to:
Posts (Atom)