diff options
author | Steve Block <steveblock@google.com> | 2010-09-09 11:52:21 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-09 12:20:26 +0100 |
commit | 0a05678e32a04623b93aa4d3990d14877ee80386 (patch) | |
tree | c8562d1ad63da730e12419ae992f1857ad981aad /WebCore | |
parent | 6dba6e09f232d333432972b64d0074cbee59ca7a (diff) | |
download | external_webkit-0a05678e32a04623b93aa4d3990d14877ee80386.zip external_webkit-0a05678e32a04623b93aa4d3990d14877ee80386.tar.gz external_webkit-0a05678e32a04623b93aa4d3990d14877ee80386.tar.bz2 |
Cherry-pick security fix in WebKit change 65329
See http://trac.webkit.org/changeset/65329
Bug: 2986936
Change-Id: I664cc00bba4cdd68cc5e23d2566279de614f5f64
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/page/Geolocation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/page/Geolocation.cpp b/WebCore/page/Geolocation.cpp index a885062..eddbc36 100644 --- a/WebCore/page/Geolocation.cpp +++ b/WebCore/page/Geolocation.cpp @@ -271,6 +271,9 @@ Geoposition* Geolocation::lastPosition() void Geolocation::getCurrentPosition(PassRefPtr<PositionCallback> successCallback, PassRefPtr<PositionErrorCallback> errorCallback, PassRefPtr<PositionOptions> options) { + if (!m_frame) + return; + RefPtr<GeoNotifier> notifier = startRequest(successCallback, errorCallback, options); ASSERT(notifier); @@ -279,6 +282,9 @@ void Geolocation::getCurrentPosition(PassRefPtr<PositionCallback> successCallbac int Geolocation::watchPosition(PassRefPtr<PositionCallback> successCallback, PassRefPtr<PositionErrorCallback> errorCallback, PassRefPtr<PositionOptions> options) { + if (!m_frame) + return 0; + RefPtr<GeoNotifier> notifier = startRequest(successCallback, errorCallback, options); ASSERT(notifier); |