If apparent AddPropertyStub request for non-existent property, it should be NS_ERROR_XPC_CANT_CREATE_WN, or NS_ERROR_XPC_CANT_ADD_PROP_TO_WRAPPED_NATIVE, or one like NS_ERROR_XPC_CANT_CREATE_PROP_ON_WN.
If XPC_WN_OnlyIWrite_SetPropertyStub is called both when "setting of existent property" and "stting non-existent property" case, they should be separated to NS_ERROR_XPC_CANT_CREATE_WN(or NS_ERROR_XPC_CANT_ADD_PROP_TO_WRAPPED_NATIVE or one like NS_ERROR_XPC_CANT_CREATE_PROP_ON_WN) case and NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN case.
> http:// mxr.mozilla. org/comm- central/ source/ mozilla/ js/xpconnect/ src/XPCWrappedN ativeJSOps. cpp#481 OnlyIWrite_ SetPropertyStub (JSContext *cx, JSHandleObject obj, JSHandleId id, JSBool strict, OnlyIWrite_ AddPropertyStub (cx, obj, id, vp); mxr.mozilla. org/comm- central/ source/ mozilla/ js/xpconnect/ src/XPCWrappedN ativeJSOps. cpp#467 OnlyIWrite_ AddPropertyStub (JSContext *cx, JSHandleObject obj, JSHandleId id, JSMutableHandle Value vp) Name() == id) ERROR_XPC_ CANT_MODIFY_ PROP_ON_ WN, cx);
> 481 XPC_WN_
> 484 return XPC_WN_
> http://
> 467 XPC_WN_
> 473 // Allow only XPConnect to add/set the property
> 474 if (ccx.GetResolve
> 475 return true;
> 477 return Throw(NS_
If apparent AddPropertyStub request for non-existent property, it should be NS_ERROR_ XPC_CANT_ CREATE_ WN, or NS_ERROR_ XPC_CANT_ ADD_PROP_ TO_WRAPPED_ NATIVE, or one like NS_ERROR_ XPC_CANT_ CREATE_ PROP_ON_ WN. OnlyIWrite_ SetPropertyStub is called both when "setting of existent property" and "stting non-existent property" case, they should be separated to NS_ERROR_ XPC_CANT_ CREATE_ WN(or NS_ERROR_ XPC_CANT_ ADD_PROP_ TO_WRAPPED_ NATIVE or one like NS_ERROR_ XPC_CANT_ CREATE_ PROP_ON_ WN) case and NS_ERROR_ XPC_CANT_ MODIFY_ PROP_ON_ WN case.
If XPC_WN_
> http:// mxr.mozilla. org/comm- central/ source/ mozilla/ xpcom/base/ ErrorList. h#608 ERROR_XPC_ CANT_CREATE_ WN, FAILURE(25)), mxr.mozilla. org/comm- central/ source/ mozilla/ xpcom/base/ ErrorList. h#629 ERROR_XPC_ CANT_ADD_ PROP_TO_ WRAPPED_ NATIVE, FAILURE(46)), mxr.mozilla. org/comm- central/ source/ mozilla/ xpcom/base/ ErrorList. h#635 ERROR_XPC_ CANT_MODIFY_ PROP_ON_ WN, FAILURE(52)),
> 608 ERROR(NS_
> http://
> 629 ERROR(NS_
> http://
> 635 ERROR(NS_