<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>12982</bug_id>
          
          <creation_ts>2007-03-06 09:24:32 -0800</creation_ts>
          <short_desc>Microsoft Virtual Earth map does not display (dev.virtualearth.net)</short_desc>
          <delta_ts>2008-12-23 13:16:57 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Evangelism</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.apartmentfinder.com/results.aspx?CCountry=US&amp;CPostalCode=30014&amp;CMinPrice=-1&amp;CMaxPrice=-1&amp;CRadius=0&amp;CSearchType=2</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>6519</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Bobby Hays">bhays</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>gsherloc</cc>
    
    <cc>tom</cc>
    
    <cc>vicki</cc>
    
    <cc>webkit</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20408</commentid>
    <comment_count>0</comment_count>
    <who name="Bobby Hays">bhays</who>
    <bug_when>2007-03-06 09:24:32 -0800</bug_when>
    <thetext>From javascript console:
TypeError: Null value
http://maps.live.com/veapi.ashx?v=1.3.0908172755.52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20274</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-06 19:26:05 -0800</bug_when>
    <thetext>Confirmed with a local debug build of WebKit r19993 with Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8N1037).

This is NOT a regression as shipping Safari doesn&apos;t work either.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20276</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-06 19:41:23 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; TypeError: Null value
&gt; http://maps.live.com/veapi.ashx?v=1.3.0908172755.52

The JavaScript console reports the error is on &quot;Line 1&quot;.  This is not helpful as the JS source for the above URL is all on one line.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8946</commentid>
    <comment_count>3</comment_count>
    <who name="Roman Rudenko">rrudenko</who>
    <bug_when>2007-05-28 19:17:42 -0700</bug_when>
    <thetext>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(&quot;MSIE&quot;)!=-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(&quot;Gecko&quot;)!=-1){var c=new RegExp(&quot;; (.*); rv:&quot;),b=c.exec(a.UserAgent);
if(b[1])a.Locale=b[1].substring(b[1].lastIndexOf(&quot; &quot;),b[1].length+1)}else if(a.UserAgent.indexOf(&quot;Opera&quot;)!=-1){var c=new RegExp(&quot; (.*))&quot;),b=c.exec(a.UserAgent);
if(b[1])a.Locale=b[1].substring(b[1].lastIndexOf(&quot; &quot;),b[1].length+1)}else a.Locale=&quot;en-US&quot;}function k(){if(a.UserAgent.indexOf(&quot;Gecko&quot;)!=-1)a.Type=Msn.VE.BrowserType.Firefox;else if(a.UserAgent.indexOf(&quot;MSIE&quot;)!=-1)a.Type=Msn.VE.BrowserType.MSIE;else if(a.UserAgent.indexOf(&quot;Opera&quot;)!=-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 &quot;(KHTML, like Gecko)&quot; substring inside the user agent string, this detection goes into the wrong code path and dies in a fire.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71633</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-23 13:37:09 -0800</bug_when>
    <thetext>Works when spoofing as Firefox 2.0.0.2.  This is an evangelism issue.  See also Bug 6519.

Tested using a local debug build of WebKit r30353.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71635</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-23 13:37:41 -0800</bug_when>
    <thetext>*** Bug 16499 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71637</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-23 13:37:54 -0800</bug_when>
    <thetext>*** Bug 17049 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79245</commentid>
    <comment_count>7</comment_count>
    <who name="Tom Gilder">tom</who>
    <bug_when>2008-04-29 14:08:23 -0700</bug_when>
    <thetext>*** Bug 18800 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103286</commentid>
    <comment_count>8</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-12-23 05:22:12 -0800</bug_when>
    <thetext>The reported issue is already fixed. New version of script works fine in the latest WebKit: http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103321</commentid>
    <comment_count>9</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-12-23 13:16:57 -0800</bug_when>
    <thetext>The page does work now with ToT WebKit.

Note that clicking on the &quot;push pins&quot; gives an error when trying to load &lt;javascript://pushin%20hover&gt;, but changing the href attributes to &quot;#&quot; fixes the issue.  This doesn&apos;t seem to be a WebKit bug anymore.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>