webcal:// URLs do not open calendar application

Bug #1960421 reported by Christian Weiske
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Invalid
Undecided
Unassigned
thunderbird (Ubuntu)
Fix Released
Undecided
Olivier Tilloy

Bug Description

I have Thunderbird 91.5.0 (64-Bit) installed on Ubuntu 20.04 and use it for calendaring.

When clicking on a webcal:// or webcals:// URL in Firefox 96.0 (64-Bit) on Ubuntu 20.04, nothing happens.

I expect that Thunderbird opens and asks to subscribe to the calendar.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Have you tried registering a custom protocol handler, as described here: https://askubuntu.com/questions/514125/url-protocol-handlers-in-basic-ubuntu-desktop/1023143#1023143 ?

I did try to pass e.g. "webcal://calendar.google.com/calendar/ical/mozilla.com_dbq84anr9i8tcnmhabatstv5co%40group.calendar.google.com/public/basic.ics" to thunderbird on the command line, and it didn't like it (failed to even start). So I doubt there is support for it, at least as a protocol handler. It does seem to know how to import them from within the application though (see https://bugzilla.mozilla.org/show_bug.cgi?id=1427588).

If you want better integration as a protocol handler, I suggest filing a bug at https://bugzilla.mozilla.org/enter_bug.cgi#h=dupes|Thunderbird

Changed in firefox (Ubuntu):
status: New → Incomplete
Revision history for this message
Christian Weiske (cweiske) wrote :

I've opened a feature request for thunderbird: https://bugzilla.mozilla.org/show_bug.cgi?id=1754682

Changed in firefox:
importance: Unknown → Undecided
status: Unknown → New
Revision history for this message
Christian Weiske (cweiske) wrote :

The Thunderbird bug has been fixed. It already supported webcal urls, but had a problem when a webcal url ended with .ics as it did in your case. That problem is gone now.

Back to the problem: Firefox should open those URLs with thunderbird.
I think that Firefox on Ubuntu should provide the defaults that it does, and not require me to register something.

Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in thunderbird (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
status: New → Fix Committed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Well, it does allow xdg-open to open thunderbird when passed a webcal:// URL, but it's not enough to instruct firefox to do the same, apparently.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I have tested adding a custom protocol handler in Firefox by creating the following entries in about:config :

  network.protocol-handler.expose.webcal
  network.protocol-handler.external.webcal
  network.protocol-handler.warn-external.webcal

and I did manage to get a new entry for the webcal protocol, but associating it with an external application (either thunderbird or xdg-open) doesn't work in the firefox snap, because the file dialog that is presented to the user to select an application uses the xdg desktop portal which remaps the path to e.g. /run/user/1000/doc/9a5d9a5e/xdg-open.

This needs testing in the firefox deb, with snap confinement out of the way.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Interestingly, in the firefox deb opening webcal:// hyperlinks works OOTB, without any change (after thunderbird has been registered as a handler for them).

no longer affects: firefox
Revision history for this message
Olivier Tilloy (osomon) wrote :

I'm going to close the bug task for Firefox, please file an upstream bug at https://bugzilla.mozilla.org/enter_bug.cgi if you care about the snap use case, because that's where we track snap-related issues. Thanks!

Changed in firefox (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package thunderbird - 1:91.6.1+build1-0ubuntu1

---------------
thunderbird (1:91.6.1+build1-0ubuntu1) jammy; urgency=medium

  * New upstream stable release (91.6.1build1)

 -- Olivier Tilloy <email address hidden> Mon, 14 Feb 2022 20:35:29 +0100

Changed in thunderbird (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.