Closed Bug 359722 Opened 19 years ago Closed 16 years ago

NPNetscapeFuncs size change handled non-backwards compatibly in npunix.c

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wbardwel, Unassigned)

Details

(Whiteboard: [closeme 2010-05-05])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060211 Fedora/1.0.7-1.3.fc3.legacy Firefox/1.0.7 Build Identifier: The npunix.c file in ./modules/plugin/samples/default/unix/npunix.c has code which just fails if run under an older browser. It refuses to initialize the function table if the size of the table passed in is smaller than the size of the NPNetscapeFuncs. And the code unconditionally copies pushpopupsenabledstate and poppopupsenabledstate. This means that compiling a plugin with that makes a plugin that won't work under older browser Reproducible: Always Steps to Reproduce: 1. build a plugin against npunix.c 2. run under older browser (like FireFox 1.0) 3. have plugin fail to initialize. Expected Results: It should instead see if those functions are available, and if so copy them, if not don't.
This is a result of Bug 301052.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100413 Firefox/3.6.4 Please update if you are able to still reproduce with the latest nightly build ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
Whiteboard: [closeme 2010-05-05]
It looks like the fix for Bug 301052 fixes this bug as well. (It looks Firefox 3.0 and newer have a npunix.c that is fixed.)
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: