<?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>51814</bug_id>
          
          <creation_ts>2011-01-03 03:25:14 -0800</creation_ts>
          <short_desc>GeolocationPositionCache should not start background thread until a Geolocation method is called</short_desc>
          <delta_ts>2011-07-29 06:08:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>51818</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Block">steveblock</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jorlow</cc>
    
    <cc>steveblock</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>328507</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2011-01-03 03:25:14 -0800</bug_when>
    <thetext>Currently, we start the DB thread as soon as navigator.geolocation is accessed. Then when a Geolocation method is called, we potentially use a cached position if one is available, but we don&apos;t wait for the cache.

We should change this to avoid starting up the background thread when navigator.geolocation is accessed, but its methods are not called.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330146</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2011-01-06 08:02:02 -0800</bug_when>
    <thetext>&gt;&gt; This
&gt;&gt; seems silly since people often fetch the geolocation object in feature
&gt;&gt; detection, even if they are not using it.
&gt;
&gt; Really, do you think it&apos;s likely that people feature detect for a feature they don&apos;t plan to use?

Yes, libraries do this all the time.  I should have caught this in the original review.  Please prioritize fixing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>443910</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2011-07-29 06:08:32 -0700</bug_when>
    <thetext>GeolocationPositionCache was removed in Bug 65289</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>