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)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: mozilla, Assigned: serhunt)
References
Details
Attachments
(2 files)
1.12 KB,
patch
|
serhunt
:
review+
beard
:
superreview+
|
Details | Diff | Splinter Review |
786.08 KB,
application/x-zip-compressed
|
Details |
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.
Reporter | ||
Comment 1•23 years ago
|
||
This works for me, our NS4.x windowless plugin now renders in Mozilla.
Reporter | ||
Comment 2•23 years ago
|
||
Adding cc.
Jeff, I think this is the same problem that you are seeing.
![]() |
||
Updated•23 years ago
|
Comment on attachment 57010 [details] [diff] [review]
Initial patch
This makes sense. r=av
Attachment #57010 -
Flags: review+
Comment 4•23 years ago
|
||
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?
Reporter | ||
Comment 6•23 years ago
|
||
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.
Reporter | ||
Comment 7•23 years ago
|
||
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
Comment 8•23 years ago
|
||
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
Comment 9•23 years ago
|
||
please checkin to the 0.9.4 branch, and put "fixed0.9.4" in the keyword field
once it's in there; thanks!
Keywords: fixed0.9.4
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•