Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Selectively disable javascript function.

186 views
Skip to first unread message

John Smith

unread,
Jun 7, 2007, 7:16:45 PM6/7/07
to
Is it possible to disable a specific javacript function using Firefoxes
security policies (user.js, prefs.js)

For example is it possible to disable the javascript object function Date()
from being accessed .

ie:
user_pref("capability.policy.policynames", "killfunction");
user_pref("capability.policy.default.javascript.date", "noAccess");
user_pref("capability.policy.killfunction.sites", http://evilsite.org);


From what I read here it seems like this is possible, tho I'm not sure if
they are just referring to disabling certain elements of the DOM.
http://kb.mozillazine.org/Security_Policies#Prevent_any_JavaScript_function.2Fmember_from_being_run.2Fread.2Fset


Craig Arnet

unread,
Jun 8, 2007, 11:52:38 AM6/8/07
to
Do any of the developers have an answer to this? Is it possible to disable
the use of a specific Javascript function rather disabling Javascript
entirely.

"John Smith" <n...@na.com> wrote in message
news:h4WdncIGLZV9DPXb...@mozilla.org...

0 new messages