Closed
Bug 339853
Opened 19 years ago
Closed 19 years ago
[1.8branch] nsIJMVManager method returns non-scriptable nsIPrincipal
Categories
(Core :: Security: CAPS, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jhpedemonte, Assigned: jhpedemonte)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file)
1.04 KB,
patch
|
bzbarsky
:
superreview+
bzbarsky
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
One of the methods for the scriptable interface nsIJVMManager uses the interface nsIPrincipal. This is not a problem on the trunk, since nsIPrincipal is also scriptable. However, on the 1.8 branch it is not, and that is causing problems with my JavaXPCOM work (see bug 337723).
There are several solutions/workarounds to this problem:
(1) Backport the changes to nsIPrincipal.idl from bug 327242 (but not the changes to nsIScriptSecurityManager.idl). This patch made nsIPrincipal scriptable, but kept most of its methods [noscript].
(2) Add [noscript] to the relevant method (isAppletTrusted) in the nsIJVMManager interface.
(3) Hack the Java side of xpidl to ignore the nsIJVMManager interface and not write anything out. It doesn't look like this interface would be very useful to a Java embedder; except maybe for showJavaConsole().
(4) Hack xpidl write out a 'dummy' nsIPrincipal.java file, which would only have the IID, but no methods/attributes. This would be enough to allow javac to compile nsIJVMManager.java properly.
As has been argued on bug 337723, I prefer solution (1). But bz says there may be security implications to this change. So given that, I think solution (2) is best. What do you guys think?
Assignee | ||
Comment 1•19 years ago
|
||
Solution (2).
![]() |
||
Comment 2•19 years ago
|
||
> But bz says there may be security implications to this change.
s/may be/are/ ;)
I think solution 2 is the way to go.
Assignee | ||
Updated•19 years ago
|
Attachment #223966 -
Flags: superreview?(bzbarsky)
Attachment #223966 -
Flags: review?(benjamin)
Attachment #223966 -
Flags: approval-branch-1.8.1?(bzbarsky)
![]() |
||
Updated•19 years ago
|
Attachment #223966 -
Flags: superreview?(bzbarsky)
Attachment #223966 -
Flags: superreview+
Attachment #223966 -
Flags: approval-branch-1.8.1?(bzbarsky)
Attachment #223966 -
Flags: approval-branch-1.8.1+
Assignee | ||
Comment 3•19 years ago
|
||
Crap, just checked this in to the 1.8 branch, and noticed that I was still waiting for bsmedberg's review. Well, bz's review should hopefully be enough. ->FIXED
Assignee | ||
Updated•19 years ago
|
Attachment #223966 -
Flags: review?(benjamin)
You need to log in
before you can comment on or make changes to this bug.
Description
•