diff --git a/js/rhino/org/mozilla/javascript/SecuritySupport.java b/js/rhino/org/mozilla/javascript/SecuritySupport.java index b007b9bc82e1..bc7e422b3148 100644 --- a/js/rhino/org/mozilla/javascript/SecuritySupport.java +++ b/js/rhino/org/mozilla/javascript/SecuritySupport.java @@ -54,6 +54,10 @@ package org.mozilla.javascript; *
* These three pieces of functionality are encapsulated in the * SecuritySupport class. + *
+ * Additionally, an embedding may provide filtering on the
+ * Java classes that are visible to scripts through the
+ * visibleToScripts
method.
*
* @see org.mozilla.javascript.Context
* @see java.lang.ClassLoader
@@ -67,7 +71,7 @@ public interface SecuritySupport {
*
* In embeddings that care about security, the securityDomain
* must be associated with the defined class such that a call to
- * getsecurityDomain with that class will return this security
+ * getSecurityDomain
with that class will return this security
* context.
*
* @param name the name of the class diff --git a/js/rhino/src/org/mozilla/javascript/SecuritySupport.java b/js/rhino/src/org/mozilla/javascript/SecuritySupport.java index b007b9bc82e1..bc7e422b3148 100644 --- a/js/rhino/src/org/mozilla/javascript/SecuritySupport.java +++ b/js/rhino/src/org/mozilla/javascript/SecuritySupport.java @@ -54,6 +54,10 @@ package org.mozilla.javascript; *
* These three pieces of functionality are encapsulated in the * SecuritySupport class. + *
+ * Additionally, an embedding may provide filtering on the
+ * Java classes that are visible to scripts through the
+ * visibleToScripts
method.
*
* @see org.mozilla.javascript.Context
* @see java.lang.ClassLoader
@@ -67,7 +71,7 @@ public interface SecuritySupport {
*
* In embeddings that care about security, the securityDomain
* must be associated with the defined class such that a call to
- * getsecurityDomain with that class will return this security
+ * getSecurityDomain
with that class will return this security
* context.
*
* @param name the name of the class