summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2009-09-29 09:43:03 -0400
committerPatrick Scott <phanna@android.com>2009-09-29 11:26:24 -0400
commit06f1ecff0f609438be162b71b50a3be08983df23 (patch)
tree5a4a98c24c024f95585e248030164a12ca0bfb34 /WebKit/android/WebCoreSupport
parent1e67e45d20ead40b0407618abbc5e20840dc3c80 (diff)
downloadexternal_webkit-06f1ecff0f609438be162b71b50a3be08983df23.zip
external_webkit-06f1ecff0f609438be162b71b50a3be08983df23.tar.gz
external_webkit-06f1ecff0f609438be162b71b50a3be08983df23.tar.bz2
Fix a few crashes with assertions enabled.
KURL::protocolIs no longer likes "javascript" and has a different method called protocolIsJavaScript.
Diffstat (limited to 'WebKit/android/WebCoreSupport')
-rwxr-xr-xWebKit/android/WebCoreSupport/GeolocationPermissions.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp b/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp
index a0b234b..b77edd3 100755
--- a/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp
+++ b/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp
@@ -181,7 +181,10 @@ void GeolocationPermissions::cancelPendingRequests(String origin)
if (index != WTF::notFound) {
// Get the permission from the permanent list.
PermissionsMap::const_iterator iter = s_permanentPermissions.find(origin);
- ASSERT(iter != (PermissionsMap::const_iterator end = s_permanentPermissions.end()));
+#ifndef NDEBUG
+ PermissionsMap::const_iterator end = s_permanentPermissions.end();
+ ASSERT(iter != end);
+#endif
bool allow = iter->second;
maybeCallbackFrames(origin, allow);