Fix for title bar not updating for full page plugins bug 59749 r=av sr=attinasi a=choffman

git-svn-id: svn://10.0.0.236/trunk@97645 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2001-06-21 01:04:29 +00:00
parent 0a11a99eef
commit 84fe2b64c1
11 changed files with 131 additions and 60 deletions

View File

@@ -52,7 +52,8 @@
#include "nsISecurityEventSink.h"
#include "nsScriptSecurityManager.h"
#include "nsDocumentCharsetInfoCID.h"
#include "nsICanvasFrame.h"
#include "nsICanvasFrame.h"
#include "nsIPluginViewer.h"
// Local Includes
#include "nsDocShell.h"
@@ -3812,8 +3813,12 @@ nsDocShell::NewContentViewerObj(const char *aContentType,
aContentHandler,
aViewer),
NS_ERROR_FAILURE);
(*aViewer)->SetContainer(NS_STATIC_CAST(nsIContentViewerContainer *, this));
nsCOMPtr<nsIPluginViewer> pv(do_QueryInterface(*aViewer));
if (pv)
SetTitle(nsnull); // clear title bar for full-page plugins
return NS_OK;
}