<?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>144626</bug_id>
          
          <creation_ts>2015-05-05 06:18:32 -0700</creation_ts>
          <short_desc>Determining current location takes too long</short_desc>
          <delta_ts>2025-11-04 22:18:10 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien Quint">julienq</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>marcosc</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1091741</commentid>
    <comment_count>0</comment_count>
      <attachid>252378</attachid>
    <who name="Julien Quint">julienq</who>
    <bug_when>2015-05-05 06:18:32 -0700</bug_when>
    <thetext>Created attachment 252378
A test that shows the current location and how long it took to acquire in the console

Using the Geolocation API to determine user location (either using getCurrentLocation or watchPosition) takes too long in WebKit (around 5 to 10 seconds, sometimes more than that) compared to other browsers (e.g. Chrome takes either around 200ms or around 2s) on the same OS, Wifi network, location, &amp;c. Strangely, when launching WebKit or Safari, user location can be extremely quick (just a few dozen milliseconds at most) and then after several uses it becomes slow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1091742</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-05-05 06:18:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/20816885&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156510</commentid>
    <comment_count>2</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2025-11-04 22:18:10 -0800</bug_when>
    <thetext>Closing as works for me, as I&apos;m seeing 400ms response times.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>252378</attachid>
            <date>2015-05-05 06:18:32 -0700</date>
            <delta_ts>2015-05-05 06:18:32 -0700</delta_ts>
            <desc>A test that shows the current location and how long it took to acquire in the console</desc>
            <filename>geolocation.html</filename>
            <type>text/html</type>
            <size>262</size>
            <attacher name="Julien Quint">julienq</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KdmFyIHQgPSBEYXRlLm5vdygpOwp3aW5kb3cubmF2aWdhdG9yLmdlb2xvY2F0aW9u
LmdldEN1cnJlbnRQb3NpdGlvbihmdW5jdGlvbihwb3NpdGlvbikgewogICAgY29uc29sZS5sb2co
IkdvdCBwb3NpdGlvbjoiLCBwb3NpdGlvbiwgRGF0ZS5ub3coKSAtIHQpOwp9LCBmdW5jdGlvbihl
cnJvcikgewogICAgY29uc29sZS5lcnJvcigiRXJyb3IgZ2V0dGluZyBwb3NpdGlvbjoiLCBlcnJv
ciwgRGF0ZS5ub3coKSAtIHQpOwp9KTsKPC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>