Bug 489965, r+sr=bz

This commit is contained in:
Olli Pettay 2009-04-24 16:36:58 +03:00
parent dbaa4b4a99
commit 32dfaef124

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();