Closed Bug 350287 Opened 18 years ago Closed 18 years ago

Need a webcal:// protocol handler (for sunbird and lightning)

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mvl, Assigned: mvl)

References

Details

Attachments

(1 file)

We need a webcal:// protocol handler, and have it registered in the OS.
Status: NEW → ASSIGNED
Attached patch add it — — Splinter Review
this patch add the handler. It doesn't register it with the OS yet.
Attachment #235569 - Flags: second-review?(dmose)
Attachment #235569 - Flags: first-review?
Attachment #235569 - Flags: first-review? → first-review?(mattwillis)
Comment on attachment 235569 [details] [diff] [review]
add it

> Index: base/src/Makefile.in
> +    calProtocolHandler.js \
Nit: Please insert this in the list in alpha order rather than at the end. EXTRA_SCRIPTS is only used to package the pseudo-modules, so order isn't used for loading or anything.

> Index: locales/en-US/chrome/calendar/calendar.dtd
> +<!ENTITY calendarproperties.autorefresh.label "Refresh calendar every N minutes">
This shouldn't have made it into the patch. :)

> Index: base/src/calProtocolHandler.js
> + * The Original Code is mozilla calendar code.
> + *
> + * The Initial Developer of the Original Code is
> + * Michiel van Leeuwen <mvl@exedo.nl>.
More silly nits: Capitalization on Mozilla Calendar, and add 2 spaces before your name (3 spaces total between * and M) to match most other files.

Otherwise, this appears to work, although I don't have a webcals:// URL to test with.

Bonus points for changing the default port of webcal to 80 (rather than 8080)

Do we still need all the "BogusChannel" stuff in /m/c/resources/content/calendarService.js?  

r1=lilmatt
Attachment #235569 - Flags: first-review?(mattwillis) → first-review+
Setting to mvl since he's the one with the patch
Assignee: nobody → mvl
Status: ASSIGNED → NEW
Nominating for blocking0.3 as this blocks a blocker (bug 338059)
Flags: blocking0.3?
blocking0.3+ since there's a blocker that needs this to be resolved
Flags: blocking0.3? → blocking0.3+
Whiteboard: [needs review dmose]
> (From update of attachment 235569 [details] [diff] [review] [edit])

One other thing:
We'll need to add this to /m/c/installer/windows/packages-static.

I think we ought to replace all the \js\calFoo.js entries in that file with
\js\*  so we stop forgetting about this.
Comment on attachment 235569 [details] [diff] [review]
add it

Looks good.  Nit: the use of "an" rather than "a" as a prefix on variables that start with a vowel seems out of place, since "a" is supposedly short for "argument".  r2=dmose with that fixed and the changes suggested by lilmatt.
Attachment #235569 - Flags: second-review?(dmose) → second-review+
Whiteboard: [needs review dmose] → [updated patch]
Whiteboard: [updated patch] → [needs updated patch]
patch (with updates) checked in. Filed bug 352566 for the OS registration.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [needs updated patch]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: