diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-06 06:54:14 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-06 06:54:14 -0700 |
commit | 5dc9bf5d7903962f238872ea7081d954528c8061 (patch) | |
tree | 4c93c7bb5f1ae04f3af41ab4279fc198c1345ed1 /WebKit | |
parent | 243869ecee2d4b5ab0f796fcc6692ece5b03c15e (diff) | |
parent | 6ec35b5193c8823619ca625038d0455fa1426ece (diff) | |
download | external_webkit-5dc9bf5d7903962f238872ea7081d954528c8061.zip external_webkit-5dc9bf5d7903962f238872ea7081d954528c8061.tar.gz external_webkit-5dc9bf5d7903962f238872ea7081d954528c8061.tar.bz2 |
Merge change 20266
* changes:
Fixes a couple of bugs in the Geolocation permissions manager.
Diffstat (limited to 'WebKit')
-rwxr-xr-x | WebKit/android/WebCoreSupport/GeolocationPermissions.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp b/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp index 452990e..ca84f17 100755 --- a/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp +++ b/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp @@ -99,7 +99,7 @@ void GeolocationPermissions::queryPermissionState(Frame* frame) // If the request in progress is not for this origin, queue this request. if ((m_originInProgress != originString) - && (m_queuedOrigins.find(originString) != WTF::notFound)) + && (m_queuedOrigins.find(originString) == WTF::notFound)) m_queuedOrigins.append(originString); } @@ -128,14 +128,15 @@ void GeolocationPermissions::providePermissionState(String origin, bool allow, b if (remember) cancelPendingRequestsInOtherTabs(m_originInProgress); + // Clear the origin in progress to signal that this request is done. + m_originInProgress = ""; + // If there are other requests queued, start the next one. if (!m_queuedOrigins.isEmpty()) { m_originInProgress = m_queuedOrigins.first(); m_queuedOrigins.remove(0); m_webViewCore->geolocationPermissionsShowPrompt(m_originInProgress); } - - m_originInProgress = ""; } void GeolocationPermissions::recordPermissionState(String origin, bool allow, bool remember) |