When going back or forward to wyciwyg pages, make sure to correctly restore

their principal from session history.  Bug 172261 and bug 301510, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@218955 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2007-01-26 04:37:16 +00:00
parent 05a7c81642
commit c1c504e712
5 changed files with 92 additions and 20 deletions

View File

@@ -3596,6 +3596,9 @@ nsHTMLDocument::CreateAndAddWyciwygChannel(void)
mWyciwygChannel->SetSecurityInfo(mSecurityInfo);
// Use our new principal
channel->SetOwner(NodePrincipal());
// Inherit load flags from the original document's channel
channel->SetLoadFlags(mLoadFlags);