From 36536a65e346edbaf5e26aaa07bf46b9fc1fbfaf Mon Sep 17 00:00:00 2001 From: "jag%tty.nl" Date: Mon, 15 May 2006 10:28:26 +0000 Subject: [PATCH] Attempt to fix btek bustage, or at least get some more information. --- docshell/base/nsWebShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index 1c4c477d2e5..b011fb44a98 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -664,7 +664,7 @@ nsWebShell::OnLinkClickSync(nsIContent *aContent, PRBool inherit; nsresult rv = URIInheritsSecurityContext(aURI, &inherit); if (NS_FAILED(rv) || inherit) { - nsCOMPtr sourceDoc = aContent->GetDocument(); + nsCOMPtr sourceDoc = aContent->GetCurrentDoc(); if (!sourceDoc) { // The source is in a 'zombie' document, or not part of a