Bug 1352576 - Added nullptr to GetAuthenticationInfo implementation for backwards compatibility draft
authorraouldc <raoul_dcunha@hotmail.com>
Thu, 13 Apr 2017 23:57:08 +1200
changeset 562039 63cc6076027f6f41e535d83d8f14af58f8638219
parent 559685 00a3f0b10c69e3de9a4338675bbdf27c9b6e5d9d
child 624157 6cbe191ee12e948ad2975afba4c7ffbc4ed2270c
push id53940
push userbmo:raoul_dcunha@hotmail.com
push dateThu, 13 Apr 2017 11:57:27 +0000
bugs1352576
milestone55.0a1
Bug 1352576 - Added nullptr to GetAuthenticationInfo implementation for backwards compatibility MozReview-Commit-ID: 1t5hgy29Qgo
dom/plugins/base/npfunctions.h
dom/plugins/base/nsNPAPIPlugin.cpp
dom/plugins/ipc/PluginModuleChild.cpp
--- a/dom/plugins/base/npfunctions.h
+++ b/dom/plugins/base/npfunctions.h
@@ -168,16 +168,17 @@ typedef struct _NPNetscapeFuncs {
   NPN_SetExceptionProcPtr setexception;
   NPN_PushPopupsEnabledStateProcPtr pushpopupsenabledstate;
   NPN_PopPopupsEnabledStateProcPtr poppopupsenabledstate;
   NPN_EnumerateProcPtr enumerate;
   NPN_PluginThreadAsyncCallProcPtr pluginthreadasynccall;
   NPN_ConstructProcPtr construct;
   NPN_GetValueForURLPtr getvalueforurl;
   NPN_SetValueForURLPtr setvalueforurl;
+  NPN_GetAuthenticationInfoPtr getauthenticationinfo;
   NPN_ScheduleTimerPtr scheduletimer;
   NPN_UnscheduleTimerPtr unscheduletimer;
   NPN_PopUpContextMenuPtr popupcontextmenu;
   NPN_ConvertPointPtr convertpoint;
   NPN_HandleEventPtr handleevent;
   NPN_UnfocusInstancePtr unfocusinstance;
   NPN_URLRedirectResponsePtr urlredirectresponse;
   NPN_InitAsyncSurfacePtr initasyncsurface;
--- a/dom/plugins/base/nsNPAPIPlugin.cpp
+++ b/dom/plugins/base/nsNPAPIPlugin.cpp
@@ -158,16 +158,17 @@ static NPNetscapeFuncs sBrowserFuncs = {
   _setexception,
   _pushpopupsenabledstate,
   _poppopupsenabledstate,
   _enumerate,
   _pluginthreadasynccall,
   _construct,
   _getvalueforurl,
   _setvalueforurl,
+  nullptr, //NPN GetAuthenticationInfo, not supported
   _scheduletimer,
   _unscheduletimer,
   _popupcontextmenu,
   _convertpoint,
   nullptr, // handleevent, unimplemented
   nullptr, // unfocusinstance, unimplemented
   _urlredirectresponse,
   _initasyncsurface,
--- a/dom/plugins/ipc/PluginModuleChild.cpp
+++ b/dom/plugins/ipc/PluginModuleChild.cpp
@@ -1001,16 +1001,17 @@ const NPNetscapeFuncs PluginModuleChild:
     mozilla::plugins::child::_setexception,
     mozilla::plugins::child::_pushpopupsenabledstate,
     mozilla::plugins::child::_poppopupsenabledstate,
     mozilla::plugins::child::_enumerate,
     mozilla::plugins::child::_pluginthreadasynccall,
     mozilla::plugins::child::_construct,
     mozilla::plugins::child::_getvalueforurl,
     mozilla::plugins::child::_setvalueforurl,
+    nullptr, //NPN GetAuthenticationInfo, not supported
     mozilla::plugins::child::_scheduletimer,
     mozilla::plugins::child::_unscheduletimer,
     mozilla::plugins::child::_popupcontextmenu,
     mozilla::plugins::child::_convertpoint,
     nullptr, // handleevent, unimplemented
     nullptr, // unfocusinstance, unimplemented
     mozilla::plugins::child::_urlredirectresponse,
     mozilla::plugins::child::_initasyncsurface,