Closed Bug 64297 Opened 24 years ago Closed 23 years ago

nsIPluginManager not defined in xpidl

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: dougt, Assigned: joe.chou)

References

Details

Attachments

(6 files)

http://lxr.mozilla.org/seamonkey/source/modules/plugin/public/nsIPluginManager.h
#69

There is some need for this interface to be defined in xpidl so that it can make 
use of the thread proxying stuff I wrote.  Steve.Katz@east.Sun.COM can fill in 
the requirement details.
All interfaces that might be used by a plugin or OJI plugin to request a service
of the browser asyncronously should be defined in such a way that the proxying
stuff can be used.  
reassign.
Assignee: edburns → joe.chou
Steve, please fill in the requirements for this request. Thanks.
Status: NEW → ASSIGNED
The requierments are that plugins and OJI plugins be provided with some way to
cause the main browser thread to execute code on its [the plugins] behalf (since
the browser (at least the UI) is not thread safe.

It would appear that extending the nsISupports proxy system to include those
interfaces that a plugin or OJI plugin might call is the "correct" way.

Beyond that, I have no idea what you are asking me for.
The reason I asked you to fill in the requirements is two-fold:
1) At the beginning of the comments above, there is a line saying,
"Steve.Katz@east.Sun.COM can fill in the requirement details". I suppose the
lines above are "the requirement details".
2) Just want to touch base with you to be clear what you want to avoid supprises
later.
When do you need this fix, Steve?
Joe,

Since it means that there is no way a plugin can request a service of the
browser (without implementing some kind of hack), this should be considered a
very high priority.  Note also that it is not just the Jave Plugin that will
have this problem, but all plugins.
nsIPluginManager.idl already exists. I'll just add it to the make files (Unix
and Windows).
Comments on this diff

* RCS file: /cvsroot/mozilla/modules/plugin/public/makefile.win,v

Why is there an h file in the XPIDLSRCS macro?  It should be
nsIPluginManager.idl.

 XPIDLSRCS = 				      \
 	.\nsIScriptablePlugin.idl             \
-	.\nsIHTTPHeaderListener.idl     \
+	.\nsIHTTPHeaderListener.idl           \
+	.\nsIPluginManager.h                  \
 	$(NULL)
	

* RCS file: /cvsroot/mozilla/modules/plugin/public/nsIPluginManager.idl,v

gpatch -i \Projects\chaff\64297\nsIPluginManager.idl.patch nsIPluginManager.idl
patching file `nsIPluginManager.idl'
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 97.
Hunk #3 FAILED at 122.
Hunk #4 FAILED at 158.
4 out of 4 hunks FAILED -- saving rejects to nsIPluginManager.idl.rej

Please post the modified IDL file as an attachment so I can test it out.
For some reason, the patch wouldn't apply.

Follow the above suggestions, and I'll give review appoval.
Attached file patch_64297.tar.gz
Comments on second iteration:

* RCS file: /cvsroot/mozilla/modules/plugin/public/makefile.win,v

You need to remove nsIPluginManager.h from this file.

Other than that looks good.  Make that change and you have r=edburns.

looks good.  r=edburns.

Get sr=waterson and I'll check it in (if you don't have your ID yet, but you
should by now, right?)
Chris, would you check to see if you can sr= this patch? Thanks.
Please submit patches as `cvs diff -u'. If you are adding new files, `cvs diff 
-uN'.
Same questions as for bug 64296:

1. Will you be `cvs remove'-ing nsIPluginManager.h?

2. Do you have a Mac buddy?

Same questions as for bug 64296:

1. Will you be `cvs remove'-ing nsIPluginManager.h?

Yes, I will remove the old header files.

2. Do you have a Mac buddy?

Yes, Terry (a new member in our OJI team who supports Mac) will update the Mac
files.

Blocks: 39907
OS: Windows 2000 → All
Hardware: PC → All
See my attachment and notes in bug #64296.  Couldn't get Mac's MRJPlugin.cpp to
compile in MRJPlugin::CreateInstance.
Are these files generating the *EXACT* same interface? Are there Mac project 
changes that will create the header file? I haven't seen anything about that.
I believe that the bug Terry found in 64296 stopped the compilation before it
came to 64297. With the fix attached to 64296, Terry is going to compile again.
About the interface, as I checked, they looked identical to me. But as you know
I've missed one in 64296 already, there goes my credit. 
Chris, Mac seems compiled OK now. About removing the original header files, Ed
suggested wait till after Java plugin give it a try with the nightly build
containing the new idls. Would that be OK? Would you sr=? Thanks.
Why do you want to leave the original headers in?
I think we want to wait till Java plugin get a chance to give it (the new idl) a
try, and then remove it. Anything to add, Ed?
Moving to m1.0.
Target Milestone: --- → mozilla1.0
The fix was checked in on March 29th, and the original header file,
modules/plugin/public/nsIPluginManager.h, has been removed. Mark fixed.
This appears fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
MArking Verified...(stamp)
Status: RESOLVED → VERIFIED
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: