[Qt] Request for permission before starting Geolocation service
authorCsaba Osztrogonac <ossy@webkit.org>
Wed, 18 Aug 2010 17:51:24 +0000 (17:51 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Wed, 25 Aug 2010 11:55:45 +0000 (13:55 +0200)
commit95feade1e6a52d431fb131ec63d0fc1f542bb6d5
tree56aa9ccbc52fd2a3d664be6021f6fd0039c6e130
parente6c6b3a488ceb699b460aa5cac560c1467fb6653
[Qt] Request for permission before starting Geolocation service
https://bugs.webkit.org/show_bug.cgi?id=42027

Patch by Mahesh Kulkarni <mahesh.kulkarni@nokia.com> on 2010-08-18
Reviewed by Steve Block.

Handles starting location acquisition when request is granted for ports using
"!CLIENT_BASED_GEOLOCATION and PREEMPT_GEOLOCATION_PERMISSION" policy
Only Qt port as of today uses the above combination. Enable
PREEMPT_GEOLOCATION_PERMISSION for qt port.

Below tests cover these changes on platform using PREEMPT_GEOLOCATION_PERMISSION
- fast/dom/Geolocation/delayed-permission-allowed.html
- fast/dom/Geolocation/delayed-permission-denied.html
- fast/dom/Geolocation/delayed-permission-allowed-for-multiple-requests.html
- fast/dom/Geolocation/delayed-permission-denied-for-multiple-requests.html

* WebCore.pro:
* page/Geolocation.cpp:
(WebCore::Geolocation::handlePendingPermissionNotifiers):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/WebCore.pro
WebCore/page/Geolocation.cpp