Remove non-inlined version of nsIPresShell::GetDocument(). Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160208 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -577,10 +577,7 @@ nsWebShell::OnLinkClickSync(nsIContent *aContent,
|
||||
GetPresShell(getter_AddRefs(presShell));
|
||||
NS_ENSURE_TRUE(presShell, NS_ERROR_FAILURE);
|
||||
|
||||
nsCOMPtr<nsIDocument> currentDoc;
|
||||
presShell->GetDocument(getter_AddRefs(currentDoc));
|
||||
|
||||
if (currentDoc != sourceDoc) {
|
||||
if (presShell->GetDocument() != sourceDoc) {
|
||||
// The source is not in the current document, don't let it
|
||||
// execute any javascript in the current document.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user