зеркало из https://github.com/mozilla/gecko-dev.git
Hold a strong ref to the URI while we're using it. Bug 387968, r+sr=jst
This commit is contained in:
Родитель
ce91ad91c1
Коммит
d936fb370d
|
@ -865,7 +865,7 @@ nsWebShell::OnLinkClickSync(nsIContent *aContent,
|
|||
nsCOMPtr<nsIDocument> refererDoc(do_QueryInterface(refererOwnerDoc));
|
||||
NS_ENSURE_TRUE(refererDoc, NS_ERROR_UNEXPECTED);
|
||||
|
||||
nsIURI *referer = refererDoc->GetDocumentURI();
|
||||
nsCOMPtr<nsIURI> referer = refererDoc->GetDocumentURI();
|
||||
|
||||
// referer could be null here in some odd cases, but that's ok,
|
||||
// we'll just load the link w/o sending a referer in those cases.
|
||||
|
|
Загрузка…
Ссылка в новой задаче