Backed out changeset 5125fc26166b

This commit is contained in:
Robert O'Callahan 2010-03-05 20:20:15 +13:00
Родитель 8a3f4671f6
Коммит 75fcc8afbc
1 изменённых файлов: 3 добавлений и 10 удалений

Просмотреть файл

@ -584,8 +584,7 @@ static nsDOMClassInfoData sClassInfoData[] = {
WINDOW_SCRIPTABLE_FLAGS) WINDOW_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(Location, nsLocationSH, NS_DEFINE_CLASSINFO_DATA(Location, nsLocationSH,
(DOM_DEFAULT_SCRIPTABLE_FLAGS & DOM_DEFAULT_SCRIPTABLE_FLAGS)
~nsIXPCScriptable::ALLOW_PROP_MODS_TO_PROTOTYPE))
NS_DEFINE_CLASSINFO_DATA(Navigator, nsNavigatorSH, NS_DEFINE_CLASSINFO_DATA(Navigator, nsNavigatorSH,
DOM_DEFAULT_SCRIPTABLE_FLAGS | DOM_DEFAULT_SCRIPTABLE_FLAGS |
@ -6539,10 +6538,7 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSBool ok = ::JS_DefineUCProperty(cx, obj, ::JS_GetStringChars(str), JSBool ok = ::JS_DefineUCProperty(cx, obj, ::JS_GetStringChars(str),
::JS_GetStringLength(str), v, nsnull, ::JS_GetStringLength(str), v, nsnull,
nsnull, nsnull, JSPROP_ENUMERATE);
JSPROP_PERMANENT |
JSPROP_READONLY |
JSPROP_ENUMERATE);
if (!ok) { if (!ok) {
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
@ -8159,10 +8155,7 @@ nsDocumentSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSString *str = JSVAL_TO_STRING(id); JSString *str = JSVAL_TO_STRING(id);
JSBool ok = ::JS_DefineUCProperty(cx, obj, ::JS_GetStringChars(str), JSBool ok = ::JS_DefineUCProperty(cx, obj, ::JS_GetStringChars(str),
::JS_GetStringLength(str), v, nsnull, ::JS_GetStringLength(str), v, nsnull,
nsnull, nsnull, JSPROP_ENUMERATE);
JSPROP_PERMANENT |
JSPROP_READONLY |
JSPROP_ENUMERATE);
if (!ok) { if (!ok) {
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;