miscoded

the web is a hack

sniff and die

, , , ,

Well, I didn't quite get to the bottom of the Live.com problems last time but now I know: it's a bug in their browser sniffer. They say

Web.Browser._isIE=!Web.Browser.isMozilla()&&!Web.Browser._isOpera;


but mean

Web.Browser._isIE=!Web.Browser.isMozilla()&&!Web.Browser.isOpera();


.. so isIE is set to true even though we're Opera. That means the script gets into the wrong branches of the getElementsByTagName stuff in my previous post.

Yet another proof that all the world's evils come from browser sniffing. If sniffing wasn't necessary, we would have peace in the Middle East, no starvation in Africa .. OK, sorry, I'm getting carried away here but at the very least Live.com would be alive and kicking.

Google maps and event transparencyKreative Language Mangling - KLM goes large

Comments

Rafald.i.z. Thursday, May 4, 2006 1:12:30 PM

Can we set this property through userjs to fix it?

Daniel Goldmandanigoldman Thursday, May 4, 2006 1:30:45 PM

Nice find, Hallvord. Do you know whether Microsoft has been made aware of this?

FataL Thursday, May 4, 2006 4:19:56 PM

This browser sniffing just stupid. What if user use Safari or iCab... or anything else?...
But anyway, nice catch Hallvord! up

Hallvord R. M. Steenhallvors Thursday, May 4, 2006 8:57:26 PM

This can certainly be fixed with a user js, since it is deep inside som of the Atlas objects I think a BeforeScript event handler with a simple replace of the two strings in this post should do.

I have sent Microsoft's Atlas architect an E-mail so I expect a fix. We'll see how long it takes them..

Rafald.i.z. Thursday, May 4, 2006 10:25:23 PM

But this fix alone won't help, will it?
I have tried to correct it manually in this script ( http://stj.live.com/live/extern/atlas/bindings/2.060314.1/AtlasBindings.js ) and it still flooded my error console with errors.

Also some other problems from "last time" needs to be fixed?

Hallvord R. M. Steenhallvors Friday, May 5, 2006 8:17:06 AM

Make sure you
- ID as Opera
- use some Opera 9 build, not 8.5.
- re-load from cache (Tools > Advanced > Refresh display) rather than F5

I did get Live basically working with that change thought I have not tried to use it extensively later and I have not checked the JS console closely either.

By the way, my Live.com contact confirms that the fix is pending release, it should work fine again some time next week. 8-)

Robert Błautquiris Sunday, June 18, 2006 8:21:00 PM

Is this issue fixed?

João EirasxErath Wednesday, June 21, 2006 11:35:26 PM

João EirasxErath Friday, September 15, 2006 11:34:34 PM

yay, it's fixed.

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.