[Webkit-unassigned] [Bug 42068] Need to be able to configure Geolocation policy regarding user permissions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 19 13:53:17 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42068


Steve Block <steveblock at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #61985|review?                     |review-
               Flag|                            |




--- Comment #3 from Steve Block <steveblock at google.com>  2010-07-19 13:53:17 PST ---
(From update of attachment 61985)
Thanks for the patch Mahesh.

WebCore/ChangeLog:9
 +          acquires user permission first before starting instantiating location
extra 'instantiating'

WebCore/page/Geolocation.cpp:403
 +  
extra blank line

WebCore/WebCore.pro:2704
 +  # if geolocation is enabled, enable pre-request for permission policy
Should probably be indented

JavaScriptCore/wtf/Platform.h:1121
 +  #define WTF_USE_PREEMPT_GEOLOCATION_PERMISSION
Add a comment that currently, client-based geolocation supports only the preemptive permission policy and that non-client-based Geolocation supports only the non-preemptive policy.

WebCore/page/Geolocation.cpp:626
 +      // FIXME: Pass options to client.
Could you move this to the addObserver() line?

WebCore/page/Geolocation.cpp:623
 +      }
I think we should close the #if USE(PREEMPT_GEOLOCATION_PERMISSION) here

WebCore/page/Geolocation.cpp:640
 +  #endif // USE(PREEMPT_GEOLOCATION_PERMISSION)
This block should just be ifdef'ed on CLIENT_BASED_GEOLOCATION

WebCore/page/Geolocation.cpp:417
 +  #endif
I assume that when you add support for the preemptive policy to the non-client based impl, you'll add an 'else' here? If so, you could add the else and a TODO now to make it clear.

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



More information about the webkit-unassigned mailing list