Closed Bug 517500 Opened 15 years ago Closed 15 years ago

Cannot modify properties of a WrappedNative

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: zpao, Unassigned)

References

Details

Attachments

(2 files)

Attached file backtrace
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".
Attached patch testcaseSplinter Review
This is my patch in progress for bug 492197.

Apply, rebuild password manager, and run xpcshell-tests SOLO_FILE=test_storage_mozStorage_3.js
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.

Attachment

General

Created:
Updated:
Size: