Closed Bug 1065885 (no-jschar) Opened 10 years ago Closed 10 years ago

Remove jschar from mail and mailnews

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 35.0

People

(Reporter: rkent, Assigned: mkmelin)

Details

Attachments

(1 file)

jschar is used in mailTestUtils.js and aboutSupportWin32.js

From m.d.platform 2014-08-14 "JSAPI PSA: RIP jschar. Hello char16_t.":

Since Firefox 27 (bug 8950470), SpiderMonkey's jschar has been a typedef for char16_t, a new C++11 type distinct from uint16_t.

With bug 1063962, SpiderMonkey's jschar typedef is gone. SpiderMonkey, its JSAPI, and Gecko now use char16_t directly.

C++ code (outside mozilla-central) compiling against mozilla-central's JSAPI will need to replace `jschar` with `char16_t` in their code. Because jschar was just a typedef for char16_t, code using char16_t should still be API and ABI compatible with the JSAPI of SpiderMonkey's current stable release (31). The next SpiderMonkey release will be 38.

This change also affects js-ctypes and the Add-on SDK. JS code (outside mozilla-central) using `ctypes.jschar` will need to be replaced with `ctypes.char16_t`. If this is too much of a compatibility problem for add-ons, we could keep ctypes.jschar as an alias for ctypes.char16_t.


chris
Alias: no-jschar
Blocks: cc-backlog
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Comment on attachment 8488000 [details] [diff] [review]
bug1065885_jschar.patch

Review of attachment 8488000 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good. Thanks!

We still need the mailnews part.
Attachment #8488000 - Flags: review?(kent) → review+
(In reply to Kent James (:rkent) from comment #2)
> We still need the mailnews part.

This already included the mailnews part. What part did you have in mind?
https://hg.mozilla.org/comm-central/rev/c4935789ba20 -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
OS: Windows 8.1 → All
Hardware: x86_64 → All
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 35.0
(In reply to Magnus Melin from comment #3)
> (In reply to Kent James (:rkent) from comment #2)
> > We still need the mailnews part.
> 
> This already included the mailnews part. What part did you have in mind?

Yes you are correct, sorry.
No longer blocks: cc-backlog
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: