Closed
Bug 1518108
Opened 6 years ago
Closed 6 years ago
Add a preference to enable/disable OTR
Categories
(Chat Core :: Security: OTR, enhancement)
Chat Core
Security: OTR
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1518172
People
(Reporter: KaiE, Assigned: KaiE)
References
Details
Attachments
(2 obsolete files)
It would be good to add a new prefrence to Thunderbird chat, to control whether OTR for chat is enabled or disabled. We can start by having it disabled by default. This preference can help us to add portions from bug 954310 in stages, and allow us to enable it easily in test environments. Once stable, the preference can be used to disable it, if users have any issues with it. So, having the pref should be useful in general.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee: nobody → kaie
Attachment #9034720 -
Flags: review?(clokep)
Comment 2•6 years ago
|
||
Comment on attachment 9034720 [details] [diff] [review]
chatpref.patch
Review of attachment 9034720 [details] [diff] [review]:
-----------------------------------------------------------------
Perhaps make it true for
#if defined(NIGHTLY_BUILD)
Comment 3•6 years ago
|
||
Is this really just a boolean?
From what I remember there were 3 states of OTR enabledness:
1. Disabled.
2. Opportunistically enabled (which is a sane default. It adds some whitespace to the first message to detect the presence of OTR on the other side, and then turn on encryption without user action)
3. Require encryption.
Or is this pref about hiding the UI rather than about enabling encryption?
Assignee | ||
Comment 4•6 years ago
|
||
This pref is for "enable the code".
This pref would allow us to check in JS code (soon), that enables the UI, and hooks up the library processing (route messages through the OTR library for encrypt/decrypt, if compatible with the peer).
However, that code won't work on most systems. Because initially, most users wouldn't have the required external libraries yet. That would be separate steps of work.
I don't want to set this pref to true in nightly yet, because it wouldn't work without having the libraries.
All other behavior choices could get separate prefs, after agreed on.
So, this pref is really just something to get us started. It could allow users, who manually prepare their system (download required libraries) to turn on the feature for testing. The "enable for nightly" is a good idea for a later time, until we're sure that nightly builds should work out of the box.
So, I thought, having this pref is a simple thing to do. If you're worried that the pref isn't the right thing to do, I'd have to restrict everying to local work, until after thing work in an initial state, on all platforms.
Comment 5•6 years ago
|
||
Sure, landing pref'ed off is fine :-).
Assignee | ||
Comment 6•6 years ago
|
||
If you prefer that we have more options for the future, I'm OK to make it an integer pref, 0 = off, 1+ = on, with values >= 2 reserverd for future use.
Assignee | ||
Comment 7•6 years ago
|
||
Please r+ the patch you prefer.
Attachment #9034743 -
Flags: review?(clokep)
Comment 8•6 years ago
|
||
I don't see an issue with this, but it is a little odd to add a pref that doesn't do anything.
Did you see Magnus' question in comment 2?
Assignee | ||
Comment 9•6 years ago
|
||
The pref will be used once I check in code for OTR. I want to agree on the name and style of the pref, so I can use it in the new code acoordingly.
Assignee | ||
Comment 10•6 years ago
|
||
I'm marking both attachments as obsolete, because modifying that file didn't work as expected.
I had to modify file mail/app/profile/all-thunderbird.js
Assignee | ||
Updated•6 years ago
|
Attachment #9034720 -
Attachment is obsolete: true
Attachment #9034720 -
Flags: review?(clokep)
Assignee | ||
Updated•6 years ago
|
Attachment #9034743 -
Attachment is obsolete: true
Attachment #9034743 -
Flags: review?(clokep)
Assignee | ||
Comment 11•6 years ago
|
||
I suggest to use two different prefs,
- a pref to potentially disable OTR altogether
- a pref to control if OTR is always required or not
I think we don't need this separate bug, let's discuss this detail and implement it as part of bug 1518172.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Component: General → Security: OTR
You need to log in
before you can comment on or make changes to this bug.
Description
•