[Webkit-unassigned] [Bug 12982] Microsoft Virtual Earth map does not display

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 28 19:17:43 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=12982





------- Comment #3 from rrudenko at toppro.net  2007-05-28 19:17 PDT -------
If you try using v5 of API instead, you will get a JS file that is not all one
huge line. There, one can figure out the details:

http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5 around line 799
...
if(a.UserAgent.indexOf("MSIE")!=-1){if(navigator.browserLanguage)a.Locale=navigator.browserLanguage;
if(navigator.userLanguage)a.Locale=navigator.userLanguage;
if(navigator.systemLanguage)a.Locale=navigator.systemLanguage}else
if(a.UserAgent.indexOf("Gecko")!=-1){var c=new RegExp("; (.*);
rv:"),b=c.exec(a.UserAgent);
if(b[1])a.Locale=b[1].substring(b[1].lastIndexOf(" "),b[1].length+1)}else
if(a.UserAgent.indexOf("Opera")!=-1){var c=new RegExp("
(.*))"),b=c.exec(a.UserAgent);
if(b[1])a.Locale=b[1].substring(b[1].lastIndexOf(" "),b[1].length+1)}else
a.Locale="en-US"}function
k(){if(a.UserAgent.indexOf("Gecko")!=-1)a.Type=Msn.VE.BrowserType.Firefox;else
if(a.UserAgent.indexOf("MSIE")!=-1)a.Type=Msn.VE.BrowserType.MSIE;else
if(a.UserAgent.indexOf("Opera")!=-1)a.Type=Msn.VE.BrowserType.Opera;else
a.Type=Msn.VE.BrowserType.Unknown;
...

As you can see, there is a misguided sniff for Gecko in the code. Since Webkit
has a "(KHTML, like Gecko)" substring inside the user agent string, this
detection goes into the wrong code path and dies in a fire.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list