Backing out a small security related part of the last fix for bug 118933 that wasn't needed.

This commit is contained in:
jst%netscape.com 2002-05-02 21:21:58 +00:00
parent 122f8247c5
commit 486e5906db

View File

@ -2775,13 +2775,10 @@ nsWindowSH::doCheckPropertyAccess(JSContext *cx, JSObject *obj, jsval id,
return NS_OK;
}
// Don't check when getting the document, window, or Components
// property, since we check its properties anyway. This will help
// performance.
// Don't check when getting the Components property, since we check
// its properties anyway. This will help performance.
if (accessMode == nsIXPCSecurityManager::ACCESS_GET_PROPERTY &&
(id == STRING_TO_JSVAL(sDocument_id) ||
id == STRING_TO_JSVAL(sWindow_id) ||
id == STRING_TO_JSVAL(sComponents_id))) {
id == STRING_TO_JSVAL(sComponents_id)) {
return NS_OK;
}