Bug 1682030 - Remove more dead NPAPI code from dom/plugins and related spots. r=jmathies,mconley,emilio
This is the second of two patches in this series that removes a large amount of now dead code from dom/plugins as part of removing all NPAPI plugin support. Differential Revision: https://phabricator.services.mozilla.com/D107150
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsError.h"
|
||||
#include "mozilla/dom/Document.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "nsContentUtils.h"
|
||||
#ifdef XP_MACOSX
|
||||
@@ -300,13 +299,7 @@ nsresult HTMLObjectElement::CopyInnerTo(Element* aDest) {
|
||||
|
||||
JSObject* HTMLObjectElement::WrapNode(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto) {
|
||||
JS::Rooted<JSObject*> obj(
|
||||
aCx, HTMLObjectElement_Binding::Wrap(aCx, this, aGivenProto));
|
||||
if (!obj) {
|
||||
return nullptr;
|
||||
}
|
||||
SetupProtoChain(aCx, obj);
|
||||
return obj;
|
||||
return HTMLObjectElement_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom
|
||||
|
||||
Reference in New Issue
Block a user