Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> IE6 Triumphs Over Firefox 1.5.0.3
vizskywalker
post May 30 2006, 11:05 PM
Post #1


Techno-Necromancer
Group Icon

Group: Members
Posts: 1,018
Joined: 13-January 05
From: The Net
Member No.: 2,127



Okay, so maybe triumphs isn't the proper verb. But there is a problem with Firefox's handling of javascript not found in IE6. Normally I hate IE's representation of javascript (such as it's failure to distinguish object types) but here the point goes to IE6.

The basic rundown:

When events occur on text boxes and some other input types, or certain functions like passing the focus occur on these DOM Elements, certain mishaps can occur. For example, when handling a keypress event from a textbox and calling an alert, an exception is thrown.

The message:
CODE
Error: [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: [url=http://localhost/developement/assume/shoutbox/scripts/addshout.js]http://localhost/developement/assume/shout...pts/addshout.js[/url] :: anonymous :: line 37"  data: no]


The line in question is the line containing the alert.
This is technically only a warning, but as this can stack up in the javascript console, it can cause a Firefox slowdown.

Analysis:
The key piece of the exception is "nsIAutoCompletePopup::selectedIndex". For some reason, when autocomplete is not turned off on a textbox, the alert for some unknown reason attempts to access it and fails.

The workaround is to use a tag like this:
<input type="text" autocomplete="off">
There are two problems with this. The first is that autocomplete is not a valid XHTML property, so it will invalidate your XHTML. The second is that like it seems, this turns off autocomplete, which you might want to leave on.

The final word:

IE6 does not have this problem, and theoretically neither should Firefox as it is not improper code in any way shape or form. I do not remember this in earlier versions of firefox, so hopefully it will be resolved in the next firefox, as it seems to be a common solution. I am still unsure of what exactly NS_ERROR_JS_THREW_STRING really means, but I will post if I found out.

The recommendation:
If you see this error in the javascript console, post here describing what caused the exception, and simply try to avoid those kinds of programming. If you must use that specific piece of programming, simply ignore the exception as it is a warning only and doesn't accurately represent a problem.

~Viz
Go to the top of the page
 
+Quote Post
ruben
post May 31 2006, 08:48 AM
Post #2


Wheeeeeeee!
Group Icon

Group: Members
Posts: 245
Joined: 19-October 05
From: DG, Belgium
Member No.: 9,200



Very misleading title, my dear friend, I was expecting some diatribe against Firefox now smile.gif.
I'm pretty sure, this little issue will be fixed in the next issue of Firefox if you send them a bug report. That's what I love about Firefox (and other open source software): If there is something wrong, it certainly won't be that way for long.
I'm still waiting for Apple to fix some bugs with correct code in my website. It's unbelievable: Safari does not know the attribute 'disabled="disabled"' for the element <button>. Plus there are some weird things happening if you put your computer to 'Sleep' with Safari running. Gets on my nerves, because it really screwed up my website at times. Still, Safari is just faster than Firefox on my Mac =).

edit: wrote excepting instead of expecting. happens every damn single time...

This post has been edited by ruben: May 31 2006, 08:49 AM
Go to the top of the page
 
+Quote Post
vizskywalker
post May 31 2006, 06:47 PM
Post #3


Techno-Necromancer
Group Icon

Group: Members
Posts: 1,018
Joined: 13-January 05
From: The Net
Member No.: 2,127



Actually, numerous bug notices have been sent, and this issue started at least back with 1.5.0.2 (according to some of the other sites asking about the problem). And this is a major issue in my opinion, this indicates that firefox's level of commitment is decreasing. If you remember back to the days of IE originally, Microsoft was very good about trying to stay on top of bugs. It took longer because of technological capabilities, and microsoft has never had the best programmers. But this new firefox problem seems to be the beginnin of decay, especially since Mozilla doesn't have the same problem and Firefox is based off of Mozilla.

~Viz
Go to the top of the page
 
+Quote Post
ruben
post Jun 1 2006, 11:36 AM
Post #4


Wheeeeeeee!
Group Icon

Group: Members
Posts: 245
Joined: 19-October 05
From: DG, Belgium
Member No.: 9,200



Well if you really feel like there isn't enough action in the firefox department, you can take part, or motivate someone with the right skills to do so. I do not think, that a popular project like Firefox will just decay, because well, maybe there is a low in engagement right now, but it is quite sure, that this will change again with all the developers working on it.
By the way, what is the thing with Mozilla Corp.? I read on their website, that Firefox and Thunderbird are there now and it is a wholly owned company with core employees, etc. Is that a good development? I know too little to judge.
Go to the top of the page
 
+Quote Post
sanj
post Jun 1 2006, 02:47 PM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 3
Joined: 1-June 06
Member No.: 13,760



IE6 may not Triumph over firefox but IE7 sure does, it also has tabbed browsing + increased interactivity on the tabs (e.g. click on the side to open a new tag) along with the Windows Vista look (developed for windows vista). I used to use Firefox, but now, after downloading the beta version of IE7 for XP at microsoft.com, I believe that Mozilla is going to lose a lot of users.

NOTE: Since this is the BETA version, it lacks some standard functionality that IE6 has, but this will be upgraded on the final version.

This post has been edited by sanj: Jun 1 2006, 02:49 PM
Go to the top of the page
 
+Quote Post
ruben
post Jun 4 2006, 02:08 PM
Post #6


Wheeeeeeee!
Group Icon

Group: Members
Posts: 245
Joined: 19-October 05
From: DG, Belgium
Member No.: 9,200



I don't think so. I think most users changed to firefox because of its customizability and security (and hatred on IE). Convenience users never looked at firefox. If there is a (good) feature that Firefox lacks and IE has, than it won't take long until it is taken over.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Firefox Tab Position(3)
  2. Mozilla Firefox And Runescape(10)
  3. How To Set-up A Proxy In Ie And Firefox(4)
  4. Disable /change The Find In Page Sound In Firefox(1)
  5. Firefox Update(7)
  6. Opera(52)
  7. Windows Internet Explorer 7 Vs. Mozilla Firefox 2(28)
  8. Firefox 2(5)
  9. Internet Explorer 7 Problem(8)
  10. Disable Crash Recovery Restore Session Option On Firefox 2(3)
  11. Firefox 2 Has A Spell Check!(40)
  12. Firefox Plugins For Web Developers(13)
  13. Settimeout() & Focus() Not Working With Firefox(1)
  14. Load Firefox Faster(1)
  15. Firefox Addon(9)
  1. Bookmarks (firefox)(2)
  2. Firefox Problems..(6)
  3. Firefox Performance Stats(3)
  4. Opera Vs. Firefox Vs. Internet Explorer(10)
  5. E-mail - Firefox(6)
  6. Recognizing Third-party Content In Firefox(2)
  7. Firefox Addon Check(2)
  8. Firefox 3(19)
  9. Safari, Firefox And Dns Client Service Behaviour(1)
  10. Css With Firefox(5)
  11. Css Background Not Showing Upin Ie(6)
  12. Make Firefox Look Like Google Chrome(2)
  13. Firefox Dream Packages - Condense(0)


 



- Lo-Fi Version Time is now: 20th November 2008 - 09:59 PM