Changeset 57335 in webkit


Ignore:
Timestamp:
Apr 9, 2010 6:13:45 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-09 Marcus Bulach <bulach@chromium.org>

Reviewed by Jeremy Orlow.

Crash on WebKit::WebGeolocationServiceBridgeImpl::stopUpdating() during frame disconnection
Should not try to access WebViewClient if the frame has already been disconnected.
https://bugs.webkit.org/show_bug.cgi?id=37318

  • src/WebGeolocationServiceBridgeImpl.cpp: (WebKit::WebGeolocationServiceBridgeImpl::stopUpdating):
Location:
trunk/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r57325 r57335  
     12010-04-09  Marcus Bulach  <bulach@chromium.org>
     2
     3        Reviewed by Jeremy Orlow.
     4
     5        Crash on WebKit::WebGeolocationServiceBridgeImpl::stopUpdating() during frame disconnection
     6        Should not try to access WebViewClient if the frame has already been disconnected.
     7        https://bugs.webkit.org/show_bug.cgi?id=37318
     8
     9        * src/WebGeolocationServiceBridgeImpl.cpp:
     10        (WebKit::WebGeolocationServiceBridgeImpl::stopUpdating):
     11
    1122010-04-09  Jochen Eisinger  <jochen@chromium.org>
    213
  • trunk/WebKit/chromium/src/WebGeolocationServiceBridgeImpl.cpp

    r56803 r57335  
    125125void WebGeolocationServiceBridgeImpl::stopUpdating()
    126126{
    127     if (m_bridgeId) {
    128         WebGeolocationService* geolocationService = getWebViewClient()->geolocationService();
     127    WebViewClient* webViewClient = getWebViewClient();
     128    if (m_bridgeId && webViewClient) {
     129        WebGeolocationService* geolocationService = webViewClient->geolocationService();
    129130        geolocationService->stopUpdating(m_bridgeId);
    130131        geolocationService->detachBridge(m_bridgeId);
    131         m_bridgeId = 0;
    132132    }
     133    m_bridgeId = 0;
    133134}
    134135
Note: See TracChangeset for help on using the changeset viewer.