Closed Bug 109041 Opened 23 years ago Closed 23 years ago

SetWindow for windowless works differently between NS4.x and Mozilla

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mozilla, Assigned: serhunt)

References

Details

Attachments

(2 files)

For windowless plugins, in NS4.x, NPP_SetWindow(NPP instance, NPWindow* window) is called with the window->window member containing the hdc for drawing. This does not happen in Mozilla it is passed using PlatformHandleEvent (nsPluginEvent* event) instead, so: HDC hDC = reinterpret_cast<HDC>(event->wParam); gets you the hdc. Attached is a patch that fixes this problem.
Attached patch Initial patchSplinter Review
This works for me, our NS4.x windowless plugin now renders in Mozilla.
Adding cc. Jeff, I think this is the same problem that you are seeing.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: patch, review
Blocks: 106435
Comment on attachment 57010 [details] [diff] [review] Initial patch This makes sense. r=av
Attachment #57010 - Flags: review+
Comment on attachment 57010 [details] [diff] [review] Initial patch sr=beard
Attachment #57010 - Flags: superreview+
Checked in to the trunk. Do we want it in the branch as well?
Status: NEW → RESOLVED
Closed: 23 years ago
Keywords: patch, review
Resolution: --- → FIXED
Extract the zip file to a directory and copy the NS4.x windowless plugin (NPSev22.dll) into the plugins directory. Open the html file simplemozrobot.htm. This should also work on NS4.x although all the divs get put in the wrong place. However, it shows that the plugin is rendering as windowless in both NS4.x and Mozilla. The test also highlights a bug, I'll open a new bug and post the number here.
Just entered bug 110094 for another problem with NS4.x windowless plugins. I have verified that this bug is fixed with build 2001111303 on windows 2000.
Status: RESOLVED → VERIFIED
Nominating for edt0.9.4 since this bug is part of the fix for bug 106435 which is edt0.9.4+'ed.
Keywords: edt0.9.4
please checkin to the 0.9.4 branch, and put "fixed0.9.4" in the keyword field once it's in there; thanks!
Keywords: edt0.9.4edt0.9.4+
Patch is now in the 0.9.4 branch.
Keywords: fixed0.9.4
added keywd 'verified0.9.4'
Keywords: verified0.9.4
Keywords: fixed0.9.4
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: