Bug 489965, r+sr=bz

This commit is contained in:
Olli Pettay 2009-04-24 16:36:58 +03:00
parent 1f1ccaea82
commit 9307ea0958

View File

@ -126,7 +126,7 @@ nsPluginStreamListener::SetupPlugin()
nsCOMPtr<nsIContent> embed = mPluginDoc->GetPluginContent();
// Now we have a frame for our <embed>, start the load
nsIPresShell* shell = mDocument->GetPrimaryShell();
nsCOMPtr<nsIPresShell> shell = mDocument->GetPrimaryShell();
if (!shell) {
// Can't instantiate w/o a shell
mPluginDoc->AllowNormalInstantiation();