Closed Bug 1460754 Opened 6 years ago Closed 6 years ago

in c-c, use constants from interfaces instead of hardcoding them in JS where possible

Categories

(MailNews Core :: Backend, enhancement)

enhancement
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 62.0

People

(Reporter: aceman, Assigned: aceman)

Details

Attachments

(1 file)

There are some hard-coded constants throughout c-c for which named constants exist, which could be used instead.
Summary: use constants from interfaces instead of hardcoding them where possible → in c-c, use constants from interfaces instead of hardcoding them in JS where possible
Attached patch 1460754.patchSplinter Review
I have found some of these.

Try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&
revision=8dd741b06783f4b3e9ebf438e29cbd1b6126a561
Comment on attachment 8974857 [details] [diff] [review]
1460754.patch

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

I'm not sure why I didn't request review at the submit of the patch...
Attachment #8974857 - Flags: review?(jorgk)
Comment on attachment 8974857 [details] [diff] [review]
1460754.patch

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

Thanks, something to land ;-)

::: mailnews/extensions/mdn/test/unit/test_askuser.js
@@ -1,2 @@
> -var gMessenger = Cc["@mozilla.org/messenger;1"].
> -                   createInstance(Ci.nsIMessenger);

Not used? I can't see it from the context.
Attachment #8974857 - Flags: review?(jorgk) → review+
Yes it seems not used anywhere in the file.
Looks like the "form History Control" add-on played a trick on me and pasted that comment :-(
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/c56baabedc99
use constants from interfaces instead of hardcoding them where possible. r=jorgk
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 62.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: