description: fix cve-2010-3120 author: Michael Gilbert origin: http://trac.webkit.org/changeset/65329 Index: webkit-1.2.4/WebCore/page/Geolocation.cpp =================================================================== --- webkit-1.2.4.orig/WebCore/page/Geolocation.cpp 2010-09-03 15:18:06.000000000 -0400 +++ webkit-1.2.4/WebCore/page/Geolocation.cpp 2010-09-06 22:14:03.000000000 -0400 @@ -252,6 +252,9 @@ void Geolocation::getCurrentPosition(PassRefPtr successCallback, PassRefPtr errorCallback, PassRefPtr options) { + if (!m_frame) + return; + RefPtr notifier = startRequest(successCallback, errorCallback, options); ASSERT(notifier); @@ -260,6 +263,9 @@ int Geolocation::watchPosition(PassRefPtr successCallback, PassRefPtr errorCallback, PassRefPtr options) { + if (!m_frame) + return 0; + RefPtr notifier = startRequest(successCallback, errorCallback, options); ASSERT(notifier);