NP_Initialize failed in npruntime sample plugin in Firefox 3.0.8 Redhat 5.4

RESOLVED INVALID

Status

()

Firefox
Extension Compatibility
RESOLVED INVALID
8 years ago
6 months ago

People

(Reporter: Longda, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

My plugin is one npruntime plugin.
It is fine in windows, and under Linux, it works fine under 3.5.x and 3.6.x, but fails under 3.0.x

After debugging, I found this issue as below under Linux Firefox 3.0.8


NPError OSCALL
NP_Initialize(NPNetscapeFuncs* pFuncs
#ifdef XP_UNIX
              , NPPluginFuncs* pluginFuncs
#endif
              )
{
  if(pFuncs == NULL)
    return NPERR_INVALID_FUNCTABLE_ERROR;

  if(HIBYTE(pFuncs->version) > NP_VERSION_MAJOR)
    return NPERR_INCOMPATIBLE_VERSION_ERROR;

  if(pFuncs->size < sizeof(NPNetscapeFuncs)) -------------> under Linux 3.0.8 firefox, pFuncs->size is smaller than sizeof(NPNetscapeFuncs)
    return NPERR_INVALID_FUNCTABLE_ERROR;

Can anyone help to explain why?
is this bug one of bugs of old version Firefox? 

Reproducible: Always

Comment 1

6 months ago
Legacy extensions are no longer valid in Firefox 57, closing.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.