Closed Bug 266952 Opened 20 years ago Closed 19 years ago

Sunbird should register the webcal: protocol

Categories

(Calendar :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 295896

People

(Reporter: rg, Assigned: mostafah)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

I'm not sure if this is standard, but Apple is publishing iCal calendars with
urls of the form webcal://xxxxxxx.ics.  It would be cool if Sunbird were
registered to do something when i click links like that in Firefox.

Reproducible: Always
Steps to Reproduce:
1. Navigate to a page with a webcal:// link.  
2. Click webcal:// link
3.

Actual Results:  
Browser complains that webcal is not a registered protocol.

Expected Results:  
Launched/activated Sunbird and let me do something with the .ics file at the
link target.
If the calendar extension is installed in firefox, it will handle webcal://
links. Otherwise, there should be a way in firefox to redirect the url to
external applications ( in this case, sunbird ) which makes this a browser bug.
To let people know Firefox has "hidden" all external protocols using a
whitelist, in the past it was a blacklist, I am sure webcal is not in that
protocol, seems we may need a "helper" xpi for Firefox (at least) if using
Sunbird/TB/Suite for calendar.

(Confirming new, someone needs to do a dupe search, I dont have time right now,
though I will later if no-one comments)
Status: UNCONFIRMED → NEW
Ever confirmed: true
How is this any different to http:// with a helper application registered for
the calendar MIME types?
Sunbird properly relaces "webcal:" with "http:" (already).
Sample test cases: http://www.icalshare.com/

Proper registration in Windows with this registry file (sunbird.reg):
--------------------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\WEBCAL]
@="URL:WEBCAL (Web Calender Subscription Protokoll)"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\WEBCAL\DefaultIcon]
@="C:\\Programme\\Mozilla Sunbird\\sunbird.exe,1"

[HKEY_CLASSES_ROOT\WEBCAL\shell]

[HKEY_CLASSES_ROOT\WEBCAL\shell\open]

[HKEY_CLASSES_ROOT\WEBCAL\shell\open\command]
@="C:\\Programme\\Mozilla Sunbird\\sunbird.exe -url \"%1\""

[HKEY_CLASSES_ROOT\WEBCAL\shell\open\ddeexec]
@="\"%1\",,0,0,,,,"

[HKEY_CLASSES_ROOT\WEBCAL\shell\open\ddeexec\Application]
@="Sunbird"

[HKEY_CLASSES_ROOT\WEBCAL\shell\open\ddeexec\Topic]
@="WWW_OpenURL"
--------------------------

This works: firefox sends it to SunBird... now all Sunbird needs to do is:
  a) include above registraion (see how firefox / moz does it) and 
  b) do something with the URL, like opening the "Subscribe to remote
calendar..." Dialog

Cheers, Duncan
So is there any way to get Firefox to behave properly with webcal: links when
Sunbird is being used instead of the calendar plugin?  

On OSX, you *must* link to "webcal:" URLs, or iCal doesn't pop up the subscribe
dialog (http: URLs to .ics files have non-useful behavior.)  

But that doesn't work at all with Firefox+Sunbird on Linux, so now I don't know
what kind of complicated instructions to put on my web page advertising my calendar.
OS: Windows XP → All
Hardware: PC → All

*** This bug has been marked as a duplicate of 295896 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: gurganbl → general
You need to log in before you can comment on or make changes to this bug.