The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

Plugins

The only platform-specific code on the mozilla side of the plugin API is the code to load plugins. This is found in mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp (the OS/2 code isn't yet checked in to mozilla.org cvs).

The code is straight-forward; it scans the plugins directory off of the mozilla executable for files matching np*.dll and tries to read off plugin information.

Eventually this code will be written in an XP fashion using a class derived from nsFileSpec. See nsObjectFrame.cpp.
There's a potential problem here: when mozilla is running as an embedded control, the plugins directory will not be found. This isn't the only place in the code that suffers from this problem. Either need an environment variable setting or an entry in OS2.INI. This is a more general problem which should be addressed via nsSpecialSystemDirectories in base.

The spec. for nsPluginWindow in nsPluginDefs.h says that the position values are in the OS/2 coordinate system. This doesn't happen at the moment. The solution lies in changing nsPluginViewer.cpp and nsObjectFrame.cpp.


Back to Raptor widget On to network library
Copyright © 1998-2000 The Mozilla Organization.
Last modified May 3, 1999.