Bug 479943. Pass in the right owner for link clicks and form submissions and stop inheriting from the document. r=dveditz, sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257026 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -876,8 +876,8 @@ nsWebShell::OnLinkClickSync(nsIContent *aContent,
|
||||
|
||||
rv = InternalLoad(aURI, // New URI
|
||||
referer, // Referer URI
|
||||
nsnull, // No onwer
|
||||
INTERNAL_LOAD_FLAGS_INHERIT_OWNER, // Inherit owner from document
|
||||
aContent->NodePrincipal(), // Owner is our node's principal
|
||||
INTERNAL_LOAD_FLAGS_NONE,
|
||||
target.get(), // Window target
|
||||
NS_LossyConvertUTF16toASCII(typeHint).get(),
|
||||
aPostDataStream, // Post data stream
|
||||
|
||||
Reference in New Issue
Block a user