Bug 797100: Replace internal usage of nsIPluginInstanceOwner with nsPluginInstanceOwner. r=jst
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "nsPluginInstanceOwner.h"
|
||||
|
||||
#include "nsPluginsDir.h"
|
||||
#include "nsPluginSafety.h"
|
||||
@@ -624,8 +625,7 @@ GetDocumentFromNPP(NPP npp)
|
||||
|
||||
PluginDestructionGuard guard(inst);
|
||||
|
||||
nsCOMPtr<nsIPluginInstanceOwner> owner;
|
||||
inst->GetOwner(getter_AddRefs(owner));
|
||||
nsRefPtr<nsPluginInstanceOwner> owner = inst->GetOwner();
|
||||
NS_ENSURE_TRUE(owner, nullptr);
|
||||
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
@@ -1941,8 +1941,7 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
|
||||
|
||||
nsNPAPIPluginInstance *inst = (nsNPAPIPluginInstance *) npp->ndata;
|
||||
|
||||
nsCOMPtr<nsIPluginInstanceOwner> owner;
|
||||
inst->GetOwner(getter_AddRefs(owner));
|
||||
nsRefPtr<nsPluginInstanceOwner> owner = inst->GetOwner();
|
||||
NS_ENSURE_TRUE(owner, NPERR_NO_ERROR);
|
||||
|
||||
if (NS_SUCCEEDED(owner->GetNetscapeWindow(result))) {
|
||||
|
||||
Reference in New Issue
Block a user