This commit is contained in:
bzbarsky%mit.edu 2007-10-27 01:30:24 +00:00
Родитель f9a0159f8d
Коммит a004563562
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -7503,9 +7503,10 @@ nsDocumentSH::SetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
}
if (id == sDocumentURIObject_id && IsPrivilegedScript()) {
// Is there a better error we could use here? We don't want privileged
// script that can read this property to set it, but _do_ want to allow
// everyone else to.
// We don't want privileged script that can read this property to set it,
// but _do_ want to allow everyone else to set a value they can then read.
//
// XXXbz Is there a better error we could use here?
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
}