Because we don't know how to keep the C++ object alive. Right now we just try to use an nsRefPtr or OwningNonNull, which fails to compile if the object has no AddRef/Release. But better to not depend on that.
Created attachment 824904 [details] [diff] [review] Don't try to codegen code that keeps alive objects with 'owned' nativeOwnership, since we have no way to do that.
Attachment #824904 - Flags: review?(bugs)
5 years ago
Attachment #824904 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in before you can comment on or make changes to this bug.