зеркало из https://github.com/mozilla/pjs.git
Fixing bug 395897. Crash when setting location on frame that no longer exists. r+sr=peterv@propagandism.org
This commit is contained in:
Родитель
f4c87264a8
Коммит
f1f4fa6278
|
@ -4550,7 +4550,7 @@ nsWindowSH::SetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
|
|||
|
||||
nsCOMPtr<nsIDOMLocation> location;
|
||||
nsresult rv = window->GetLocation(getter_AddRefs(location));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_TRUE(NS_SUCCEEDED(rv) && location, rv);
|
||||
|
||||
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
|
||||
rv = WrapNative(cx, obj, location, NS_GET_IID(nsIDOMLocation), vp,
|
||||
|
|
Загрузка…
Ссылка в новой задаче