Changeset 139925 in webkit


Ignore:
Timestamp:
Jan 16, 2013 2:31:18 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Remove bogus assert in GeolocationClientBlackBerry
https://bugs.webkit.org/show_bug.cgi?id=105651

Patch by Joe Mason <jmason@rim.com> on 2013-01-16
Reviewed by Darin Adler.

GeolocationClientBlackBerry::cancelPermissionRequest contains an ASSERT that the origin is
in m_geolocationRequestMap. But it's perfectly valid for the origin to not be in the map -
for instance, if GeolocationClientBlackBerry::requestPermission returned immediately,
without putting it in the map, because geolocation was disabled. In this case the correct
thing to do is just return - there is nothing to be done to cancel the permission.

  • WebCoreSupport/GeolocationClientBlackBerry.cpp:

(GeolocationClientBlackBerry::cancelPermissionRequest):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/ChangeLog

    r139787 r139925  
     12013-01-16  Joe Mason  <jmason@rim.com>
     2
     3        [BlackBerry] Remove bogus assert in GeolocationClientBlackBerry
     4        https://bugs.webkit.org/show_bug.cgi?id=105651
     5
     6        Reviewed by Darin Adler.
     7
     8        GeolocationClientBlackBerry::cancelPermissionRequest contains an ASSERT that the origin is
     9        in m_geolocationRequestMap. But it's perfectly valid for the origin to not be in the map -
     10        for instance, if GeolocationClientBlackBerry::requestPermission returned immediately,
     11        without putting it in the map, because geolocation was disabled. In this case the correct
     12        thing to do is just return - there is nothing to be done to cancel the permission.
     13
     14        * WebCoreSupport/GeolocationClientBlackBerry.cpp:
     15        (GeolocationClientBlackBerry::cancelPermissionRequest):
     16
    1172013-01-15  Mike Fenton  <mifenton@rim.com>
    218
  • trunk/Source/WebKit/blackberry/WebCoreSupport/GeolocationClientBlackBerry.cpp

    r136969 r139925  
    131131    // Remove the geolocation from the pending permission map.
    132132    HashMap<String, Vector<RefPtr<Geolocation> > >::iterator it = m_geolocationRequestMap.find(origin);
    133 
    134     ASSERT(it != m_geolocationRequestMap.end());
    135133    if (it == m_geolocationRequestMap.end())
    136134        return;
Note: See TracChangeset for help on using the changeset viewer.