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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user