mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 477848 - FF 3.1b2 crashes when executing some JS code [@ nsGeolocation::nsGeolocation(nsIDOMWindow*) ]. r/sr=jst
This commit is contained in:
parent
a315c70816
commit
c12ec02cab
@ -9500,7 +9500,7 @@ NS_IMETHODIMP nsNavigator::GetGeolocation(nsIDOMGeoGeolocation **_retval)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(_retval);
|
||||
|
||||
if (!mGeolocation) {
|
||||
if (!mGeolocation && mDocShell) {
|
||||
nsCOMPtr<nsIDOMWindow> contentDOMWindow(do_GetInterface(mDocShell));
|
||||
mGeolocation = new nsGeolocation(contentDOMWindow);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user