Closed Bug 1481777 Opened 6 years ago Closed 6 years ago

Remove "Thunderbird now contains calendaring functionality…" message at startup

Categories

(Calendar :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(2 files, 2 obsolete files)

MakeMyDay, you said to keep the code for this. What bits do actually want?
I reconsidered since it would require to make that thing more generally usable first, so feel free to remove what was implemented with bug 1130852 including the prefs for mail and SM. I will re-implement it when i need it.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #8999481 - Flags: review?(philipp)
(In reply to Geoff Lankow (:darktrojan) from comment #2)
> Created attachment 8999481 [details] [diff] [review]
> 1481777-startup-notification-1.diff

Should the preference "mail.calendar-integration.opt-out" also be removed from mail/app/profile/all-thunderbird.js and suite/browser/browser-prefs.js?
(In reply to Martin Schröder [:martinschroeder] from comment #3)
> Should the preference "mail.calendar-integration.opt-out" also be removed
> from mail/app/profile/all-thunderbird.js and suite/browser/browser-prefs.js?

Probably, yes.
Attachment #8999536 - Flags: review?(philipp)
Attachment #8999481 - Flags: review?(philipp) → review?(makemyday)
Attachment #8999536 - Flags: review?(philipp) → review?(makemyday)
We're about to remove the notification bar about the Lightning integration in this bug. That was primarily intended to allow the users with existing profiles to decide about to keep Lightning when the bundeled Lightning was rolled out for the first time (for TB, this was 38), so we can consider it's job to be done.

When doing this we need to decide how to deal with the persisted user decission for TB and SM.

I would suggest to use the information from mail.calendar-integration.opt-out - currently not used otherwiese - to migrate those users in beta/esr channels, who have opted out but currently only disabled Lightning, and uninstall the addon while making sure extensions.installedDistroAddon.{e2fda1a4-762b-4020-b5ad-a41df1933103} is enabled (that pref would survive an addon uninstall) to respect the user's decision also in future.

That way we would also get rid of the complaints that Lightning got re-enabled, which we regularly receive after TB updates.

In turn, one could think about adding a UI control to the main products to give the user an easy way to get back a once uninstalled bundled addon if he changed his mind.

Most of the above wouldn't apply to Daily channel users since Lightning is bundled there as a system addon, which just can be disabled but not uninstalled.
Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(frgrahl)
I'm all for removing the startup message. 

> Most of the above wouldn't apply to Daily channel users since Lightning is bundled there as a 
> system addon, which just can be disabled but not uninstalled.

Since this bug is about trunk, does the uninstall discussion above apply?
In general I think just leaving it disabled and not uninstalling is ok.
Flags: needinfo?(mkmelin+mozilla)
It does when 65 (or whenever this lands) goes to beta - next merge day is at beginning of September, so it's near-term.

The problem is it _does not_ keep disabled across updates, which is an issue in the toolkit code.
So you mean we bundle differently specifically for daily? (Not that bundling changed.) 
If so is there a reason for this?
SeaMonkey in comm-central is badly broken right now. We just keep it building for later. So I am fine either way. 

Personally I think Lightning should be fully integrated and no longer being build as an add-on which could be disabled. With the destruction of the classic add-on code this will probably be impossible soon anyway and I don't see that it would be possible as a web extension. For users who do not want it a disable pref for at least the menu items might do the job.
Flags: needinfo?(frgrahl)
Please(In reply to Magnus Melin from comment #8)
> So you mean we bundle differently specifically for daily? (Not that bundling
> changed.) 
> If so is there a reason for this?

We collected all the pro and cons in an etherpad in the 38 days, but this got lost in the etherpad migration. So from my memory, those days the way we do it for Daily was considered to go way in a foreseeable time, so we decided to go the from that pov more stable way for beta and esr.

But I would appreciate to not tranform this bug into a discussion about whether and how to change the way we bundle Lightning. Let's keep it with the remaining deciding about how to deal with te collected opt-out decisions.

I am not thrilled if we finally don't respect the users opt-out decision although we technically could do. We can add such a migration code to Lightning, but that would just mean the user would have to live with the current situation for one additional update cycle, which we could save when putting it into /common.
If the opt-out pref is true, set the installed pref to true. This is a little bit difficult to test, but AFAICT it works.
Attachment #8999536 - Attachment is obsolete: true
Attachment #8999536 - Flags: review?(makemyday)
Attachment #9005938 - Flags: review?(makemyday)
Attachment #8999481 - Flags: review?(makemyday) → review+
Comment on attachment 9005938 [details] [diff] [review]
1481777-startup-notification-prefs-2.diff

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

::: mail/components/mailGlue.js
@@ +58,5 @@
> +    // If the user has opted out of Lightning, make sure it doesn't get reinstalled.
> +    if (Services.prefs.getPrefType("mail.calendar-integration.opt-out") == Services.prefs.PREF_BOOL &&
> +        Services.prefs.getBoolPref("mail.calendar-integration.opt-out")) {
> +      Services.prefs.setBoolPref("extensions.installedDistroAddon.{e2fda1a4-762b-4020-b5ad-a41df1933103}", true);
> +    }

You additionally need to check the current status of Lightning here.

If a user opted out out once and later reinstalled Lightning, the opt-out pref isn't reset, so for those users you would trigger to uninstall an active Lightning on restart.

Also, you should reset mail.calendar-integration.opt-out once the migration is done to get rid of the custom pref value, since we only need to run this once per profile.
Attachment #9005938 - Flags: review?(makemyday) → feedback-
(In reply to [:MakeMyDay] from comment #12)
> Also, you should reset mail.calendar-integration.opt-out once the migration
> is done to get rid of the custom pref value, since we only need to run this
> once per profile.

I think I must've read the code wrong before. I was under the impression that something reset the installedDistroAddon pref at upgrade, hence why I left the other pref behind, but now I can't find it.
Attachment #9005938 - Attachment is obsolete: true
Attachment #9007442 - Flags: review?(makemyday)
Comment on attachment 9007442 [details] [diff] [review]
1481777-startup-notification-prefs-3.diff

Hang on, let's address ALL the review comments first. :-/
Attachment #9007442 - Flags: review?(makemyday)
My recent patches don't achieve anything.

extensions.installedDistroAddon.{e2fda1a4-762b-4020-b5ad-a41df1933103} is true if Lightning was ever installed from the distribution. Nothing sets it to false.

If the user has *removed* Lightning, it won't be reinstalled if the above pref is true. If the pref is set to false then Lightning will be installed.

If the user has *disabled* Lightning, it will be upgraded on the next app update, but doesn't remain disabled. I've filed bug 1490957 because I think that's wrong. If the bug is not fixed we could check the opt-out pref and disable Lightning ourselves, *but* it would need to happen after the upgrade and before the Add-On Manager startup completes and that will be very tricky.

My suggestion is to go back to the first version of the prefs patch, and just remove the default values.
Depends on: 1490957
Attachment #9007442 - Attachment is obsolete: true
Attachment #8999536 - Attachment is obsolete: false
Attachment #8999536 - Flags: review?(makemyday)
Comment on attachment 8999536 [details] [diff] [review]
1481777-startup-notification-prefs-1.diff

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

All right, let's go with that, since a custom values of mail.calendar-integration.opt-out is kept even if we remove the deafult value, so we could pick it up if we're doing a fix for the re-enabling bug in comm-central. I'm defering the review to the mail and suite peers, though, since it changes their code.
Attachment #8999536 - Flags: review?(mkmelin+mozilla)
Attachment #8999536 - Flags: review?(makemyday)
Attachment #8999536 - Flags: review?(frgrahl)
Attachment #8999536 - Flags: feedback+
Re the bug 1490957: that has been an issue since we started bundling. It's related to the soft-disabling that is used while updating, iirc, but we never manage to pin that enough to propose a patch. And now it's probably too late to do so, since that could be an issue for non-restartless legacy addons, which isn't supported by FF anymore.

If we could find a way to prevent that in comm code, it would be nice, otherwise we stick with our recommendation to uninstall instead [1].

[1] https://support.mozilla.org/en-US/kb/calendar-updates-issues-thunderbird#w_lightning-reappears-after-a-thunderbird-update-although-i-opted-out-release-and-beta-versions
Attachment #8999536 - Flags: review?(mkmelin+mozilla) → review+
Comment on attachment 8999536 [details] [diff] [review]
1481777-startup-notification-prefs-1.diff

Thanks++
Attachment #8999536 - Flags: review?(frgrahl) → review+
Keywords: checkin-needed
I can see this general direction resulting in more issues, and perhaps this is tb-planning material and other bugs. For starters:

* What product adjustments and publicity/messaging is needed for users who have disabled or removed lightning, and future new users who might have opted to do the same?  (we know a stink will be made by some users who "don't want lightning")

* How do we provide for situations where we want to test thunderbird without lighting, without resorting to a different profile, either for performance issues or reliability issues?
(In reply to Wayne Mery (:wsmwk) from comment #21)
>   (we know a stink will be made by some users who "don't want lightning")

Not sure I ever heard from such users. 

> * How do we provide for situations where we want to test thunderbird without
> lighting, without resorting to a different profile, either for performance
> issues or reliability issues?

There is always -safe-mode
What's removed here is just the lower notificationbar. This will only impact users with a new profile and those who haven't decided yet whether to keep Lightning (and who hasn't yet decided, probably doesn't care), so I don't see an issue here.

And those users can still opt-out by uninstalling (on beta or esr) or disabling (Daily). Only the place to take action just moves from the main window to the addons manager.

I don't understand the concerns of the last point, but I think the notification bar would provide much help here.
I've made a Try run, as MakeMyDay said there were mozmill issues when the feature went in, so there might be when it comes out.
(In reply to Magnus Melin [:mkmelin] from comment #22)
> (In reply to Wayne Mery (:wsmwk) from comment #21)
> >   (we know a stink will be made by some users who "don't want lightning")
> 
> Not sure I ever heard from such users. 

Regardless, there have been bug reports, support and newsgroup reports, etc. (and hinted at in comment 7)


> > * How do we provide for situations where we want to test thunderbird without
> > lighting, without resorting to a different profile, either for performance
> > issues or reliability issues?
> 
> There is always -safe-mode

I am referring to comment 9 where it has been suggested to change to not be an add-on.  Are you saying there is no likelihood of going in that direction?
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/8c63ea2dd667
Remove "Thunderbird now contains calendaring functionality..." message at startup. r=MakeMyDay
https://hg.mozilla.org/comm-central/rev/eaea65290635
Remove startup notification default pref from Thunderbird and SeaMonkey. r=mkmelin,frg,MakeMyDay
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 6.6
(In reply to Wayne Mery (:wsmwk) from comment #26)
> Regardless, there have been bug reports, support and newsgroup reports, etc.
> (and hinted at in comment 7)

There will always be reports when things aren't working as intended. 
But that's a different thing compared to having "forced integrated lightning". Look at chat - went in pretty unnoticed, is far less used, and still there was no outcry.

> I am referring to comment 9 where it has been suggested to change to not be
> an add-on.  Are you saying there is no likelihood of going in that direction?

Well, it's not the current plan.
(In reply to Magnus Melin [:mkmelin] from comment #28)

> But that's a different thing compared to having "forced integrated
> lightning". Look at chat - went in pretty unnoticed, is far less used, and
> still there was no outcry.

> > an add-on.  Are you saying there is no likelihood of going in that direction?
> 
> Well, it's not the current plan.
Listen, a calendar is a LOT more useful to most people than "chat". Chat rooms, and newsgroups are more 80's/90's tech, wouldn't you agree?  Time to add this to the current plan. I'd say there is an outcry for the poorly integrated and currently nonfunctional calendar we have now.
(In reply to Frank-Rainer Grahl (:frg) from comment #9)
> Personally I think Lightning should be fully integrated and no longer being
> build as an add-on which could be disabled. With the destruction of the
> classic add-on code this will probably be impossible soon anyway and I don't
> see that it would be possible as a web extension. For users who do not want
> it a disable pref for at least the menu items might do the job.


(In reply to Wayne Mery (:wsmwk) from comment #26)
> I am referring to comment 9 where it has been suggested to change to not be
> an add-on.  Are you saying there is no likelihood of going in that direction?


I just opened this bug to address this very thing:
https://bugzilla.mozilla.org/show_bug.cgi?id=1493008
Attachment #8999481 - Flags: approval-calendar-beta?(philipp)
To be clear I'm not really opposed to integrating lightning if the calendar people would like to go that route (but they don't). On the other hand there are some benefits with having it be an add-on as well. For instance, that way we are more likely to dogfood add-on support so other add-ons are also possible. 

As for integration level, I don't think there's anything user-facing that would change by integrating it lower level. It could do whatever integrations needed already.
Geoff, why do we need to uplift this? It's not urgent, it has string changes and even if it just removes strings, it could be considered a late string change from l10n perspective.
Well that's true, I hadn't considered the L10n point of view. I was coming from a "let's get rid of this for the first beta in a new cycle" angle.
Comment on attachment 8999481 [details] [diff] [review]
1481777-startup-notification-1.diff

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

Hmm I am not quite sure what happens with string changes on beta since the unified l10n thing. It should be ok since they are removals? Maybe you can check with Pike before you push.
Attachment #8999481 - Flags: approval-calendar-beta?(philipp) → approval-calendar-beta+
Axel, any comment in late string removals on beta? I removed two strings on ESR the other day, so I'm the even worse offender.
Flags: needinfo?(l10n)
Yeah, removals are OK, thanks for asking.

Side note, we'll start tracking ESR in cross-channel with the next ESR branch. So the current one isn't in scope of x-channel.
Flags: needinfo?(l10n)
I'm on 60 right now, and things are broken. What is the first pairing of Thunderbird/Lightning post 60 that works?
(In reply to Worcester12345 from comment #38)
> I'm on 60 right now, and things are broken. What is the first pairing of
> Thunderbird/Lightning post 60 that works?

Lightning is not working is an exception - it works in every beta and every release.  If you have trouble, consult the release notes https://www.thunderbird.net/en-US/thunderbird/60.0/releasenotes/
TB 60 ESR works great with Lightning. Troubleshooting suggestions here:
https://support.mozilla.org/en-US/kb/calendar-updates-issues-thunderbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: