зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 338834 (plugins are broken (PDF, WPM, MPG, AVI etc files won't load)). r/sr=sicking.
This commit is contained in:
Родитель
93c91e9f56
Коммит
73709cee4f
|
@ -43,6 +43,7 @@
|
|||
#include "nsIPluginInstance.h"
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsNodeInfoManager.h"
|
||||
#include "nsContentCreatorFunctions.h"
|
||||
|
||||
class nsPluginDocument : public nsMediaDocument,
|
||||
public nsIPluginDocument
|
||||
|
@ -240,10 +241,8 @@ nsPluginDocument::CreateSyntheticPluginDocument()
|
|||
kNameSpaceID_None,
|
||||
getter_AddRefs(nodeInfo));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
mPluginContent = NS_NewHTMLSharedElement(nodeInfo);
|
||||
if (!mPluginContent) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
rv = NS_NewHTMLElement(getter_AddRefs(mPluginContent), nodeInfo);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// make it a named element
|
||||
mPluginContent->SetAttr(kNameSpaceID_None, nsHTMLAtoms::name,
|
||||
|
|
Загрузка…
Ссылка в новой задаче