Closed
Bug 517500
Opened 15 years ago
Closed 15 years ago
Cannot modify properties of a WrappedNative
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: zpao, Unassigned)
References
Details
Attachments
(2 files)
3.32 KB,
text/plain
|
Details | |
5.73 KB,
patch
|
Details | Diff | Splinter Review |
I hit this working on bug 492197. I'm making the same call that's made a number of times throughout the file, but I always hit the NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN error. Specifically I try to modify a property of a database statement. I've never encountered this before doing the exact same thing. I haven't been able to reduce to a simple test case, but I can hit it consistently & will post STR with my "test case".
Reporter | ||
Comment 1•15 years ago
|
||
This is my patch in progress for bug 492197. Apply, rebuild password manager, and run xpcshell-tests SOLO_FILE=test_storage_mozStorage_3.js
Reporter | ||
Comment 2•15 years ago
|
||
Turns out that I was missing a + in my string concat. So .guid never gets added to the stmt because it's not actually part of the query being passed. So in fact wrapped natives are working exactly like they are supposed to. Maybe if the error was that the property doesn't exist as opposed to not being able to modify it?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•