setting otherRandomHeaders throws Cannot modify properties of a WrapperNative

RESOLVED INVALID

Status

Thunderbird
Message Compose Window
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: b.ralphs, Unassigned)

Tracking

({regression})

38 Branch
regression

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36

Steps to reproduce:

I just updated to v38.0.1 & now when my extension calls:
fields.otherRandomHeaders = HdrType;
I get the error:
NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN: Cannot modify properties of a WrappedNative

This extension has been running fine for years up until this latest build.


Actual results:

Code crashes & doesn't run any further.


Expected results:

String value should be set in Other Header field.

Comment 1

3 years ago
Yes, otherRandomHeaders has been removed in bug 998191.

Instead, use gMsgCompose.compFields.setHeader("Foo", "bar").
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Keywords: regression
Resolution: --- → INVALID
(Reporter)

Comment 2

3 years ago
Thank you for the reply.
I was using:
fields.otherRandomHeaders = HdrType;
params2.composeFields = fields;
msgComposeService.OpenComposeWindowWithParams(null, params2);

As part of my code to construct a new Compose Window, so gMsgCompose doens't exist yet. Is there another option?
You need to log in before you can comment on or make changes to this bug.