Changeset 51133 in webkit


Ignore:
Timestamp:
Nov 18, 2009 2:04:29 PM (14 years ago)
Author:
weinig@apple.com
Message:

Fix two Geolocation assertions.

Reviewed by Anders Carlsson.

  • page/Chrome.cpp:

(WebCore::Chrome::requestGeolocationPermissionForFrame): No need to use PageGroupLoadDeferrer since this
is not called from JS.

  • page/Geolocation.cpp:

(WebCore::Geolocation::Watchers::set): The PassRefPtr was getting nulled out, so we need to put it in
a RefPtr first.

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51132 r51133  
     12009-11-18  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        Fix two Geolocation assertions.
     6
     7        * page/Chrome.cpp:
     8        (WebCore::Chrome::requestGeolocationPermissionForFrame): No need to use PageGroupLoadDeferrer since this
     9        is not called from JS.
     10        * page/Geolocation.cpp:
     11        (WebCore::Geolocation::Watchers::set): The PassRefPtr was getting nulled out, so we need to put it in
     12        a RefPtr first.
     13
    1142009-11-18  Alexey Proskuryakov  <ap@apple.com>
    215
  • trunk/WebCore/page/Chrome.cpp

    r50477 r51133  
    408408void Chrome::requestGeolocationPermissionForFrame(Frame* frame, Geolocation* geolocation)
    409409{
    410     // Defer loads in case the client method runs a new event loop that would
    411     // otherwise cause the load to continue while we're in the middle of executing JavaScript.
    412     PageGroupLoadDeferrer deferrer(m_page, true);
    413 
    414     ASSERT(frame);
    415410    m_client->requestGeolocationPermissionForFrame(frame, geolocation);
    416411}
  • trunk/WebCore/page/Geolocation.cpp

    r50605 r51133  
    8989}
    9090
    91 void Geolocation::Watchers::set(int id, PassRefPtr<GeoNotifier> notifier)
    92 {
    93     m_idToNotifierMap.set(id, notifier);
    94     m_notifierToIdMap.set(notifier, id);
     91void Geolocation::Watchers::set(int id, PassRefPtr<GeoNotifier> prpNotifier)
     92{
     93    RefPtr<GeoNotifier> notifier = prpNotifier;
     94
     95    m_idToNotifierMap.set(id, notifier.get());
     96    m_notifierToIdMap.set(notifier.release(), id);
    9597}
    9698
Note: See TracChangeset for help on using the changeset viewer.