diff options
author | Adam Domurad <[email protected]> | 2013-01-15 14:34:47 -0500 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-01-15 14:34:47 -0500 |
commit | 37f676efc43b73f5a46c5f4fada4cf1f42da56a8 (patch) | |
tree | 51a9acb9410e1b0356a7a54b6c33ec45eb55059a /plugin/icedteanp/java/netscape/javascript/JSObject.java | |
parent | 05fbe64d15224e9e651231f86694e33799d5d39f (diff) |
Fix for PR1198: JSObject passed incorrectly to Javascript
Diffstat (limited to 'plugin/icedteanp/java/netscape/javascript/JSObject.java')
-rw-r--r-- | plugin/icedteanp/java/netscape/javascript/JSObject.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/icedteanp/java/netscape/javascript/JSObject.java b/plugin/icedteanp/java/netscape/javascript/JSObject.java index 0de500f..489efa6 100644 --- a/plugin/icedteanp/java/netscape/javascript/JSObject.java +++ b/plugin/icedteanp/java/netscape/javascript/JSObject.java @@ -100,6 +100,16 @@ public final class JSObject { } /** + * Package-private method used through JSUtil#getJSObjectInternalReference. + * We make this package-private to avoid polluting the public interface. + * @return the internal identifier + */ + long getInternalReference() { + AccessController.getContext().checkPermission(new JSObjectUnboxPermission()); + return internal; + } + + /** * it is illegal to construct a JSObject manually */ public JSObject(int jsobj_addr) { |