Closed
Bug 379005
Opened 18 years ago
Closed 18 years ago
Create Stub Extension that allows <em:requires> tags in Sunbird/Lightning Extensions
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
0.7
People
(Reporter: Fallen, Assigned: Fallen)
Details
(Whiteboard: [gdata-0.3])
Attachments
(3 files)
|
7.06 KB,
patch
|
dbo
:
review+
|
Details | Diff | Splinter Review |
|
1.30 KB,
patch
|
dbo
:
review+
|
Details | Diff | Splinter Review |
|
918 bytes,
patch
|
ssitter
:
review+
|
Details | Diff | Splinter Review |
Currently support for the <em:requires> tag only allows extension-wide dependencies. Adding a such tag to an extension that works for both lightning and sunbird means it will not work on sunbird, since lightning is obviously not installed in sunbird.
On the F2F meeting the idea was brought up to create a stub extension that stays hidden and has the same uuid as lightning. The attached patch does this but can be seen as a proof of concept, therefore I'm not requesting review yet.
The extension is hidden and locked, it does not show to the user.
| Assignee | ||
Comment 1•18 years ago
|
||
Comment 2•18 years ago
|
||
If the hidden extension has the same ID as lightning, can you still create an extension that only works in lightning?
If not, how about adding an extension to both lightning and sunbird with a new id?
| Assignee | ||
Comment 3•18 years ago
|
||
If you want to make your extension only compatible with lightning, you can just omit support for sunbird by not adding a <em:targetApplication> tag for sunbird but adding one for thunderbird.
A new uuid would probably work too, but I think that might cause confusion.
Status: NEW → ASSIGNED
Comment 4•18 years ago
|
||
This makes sense to me.
I would define an extension for Lightning like: Supports Thunderbird version <min> to <max> and required Lightning version <min> to <max>.
This has the drawback that you can't support Sunbird with the same extension. Having a Lightning stub inside Sunbird would make this possible.
Having a separate uuid is no solution, because you would need to install the dummy extension together with Lightning and extension authors need to know about it too. With the proposed version they just need to know the Lightning uuid.
Updated•18 years ago
|
Assignee: nobody → bugzilla
Status: ASSIGNED → NEW
Updated•18 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 5•18 years ago
|
||
Comment on attachment 263009 [details] [diff] [review]
Sunbird Extension Stub
After some thinking about this patch, I do think its ready for review.
Attachment #263009 -
Flags: review?(lilmatt)
| Assignee | ||
Updated•18 years ago
|
Flags: blocking-calendar0.7+
Comment 6•18 years ago
|
||
Philipp, could you provide a test patch e.g. on gdata-provider, for testing?
| Assignee | ||
Comment 7•18 years ago
|
||
I didn't retest myself since I am in a hurry, but this should do it. It worked fine when I wrote the patch.
Comment 8•18 years ago
|
||
I tested it successfully on Solaris SPARC; both Sunbird and Thunderbird/Lightning install such a (patched) gdata-provider.
(In reply to comment #8)
> I tested it successfully on Solaris SPARC; both Sunbird and
> Thunderbird/Lightning install such a (patched) gdata-provider.
>
This is awesome. I can't remember if/where we documented the "how to write an extension for calendar" but, as this bug is fixed, can we also update that documentation to reflect this change? I'd like it updated to coincide with the checkin, if possible, so we don't forget to do it.
Thanks!
| Assignee | ||
Comment 10•18 years ago
|
||
Comment on attachment 263009 [details] [diff] [review]
Sunbird Extension Stub
I created http://wiki.mozilla.org/Calendar:Creating_an_Extension as a start, since I couldn't find a such page.
I think we can check this in. Requesting review on both patches from daniel, to get this going.
Attachment #263009 -
Flags: review?(lilmatt) → review?(daniel.boelzle)
| Assignee | ||
Updated•18 years ago
|
Attachment #277853 -
Flags: review?(daniel.boelzle)
Comment 11•18 years ago
|
||
Comment on attachment 263009 [details] [diff] [review]
Sunbird Extension Stub
r=dbo
Attachment #263009 -
Flags: review?(daniel.boelzle) → review+
Comment 12•18 years ago
|
||
Comment on attachment 277853 [details] [diff] [review]
Testing patch for gdata
r=dbo
Attachment #277853 -
Flags: review?(daniel.boelzle) → review+
| Assignee | ||
Comment 13•18 years ago
|
||
Checked in on HEAD and MOZILLA_1_8_BRANCH
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [gdata-0.2.2]
Target Milestone: --- → 0.7
| Assignee | ||
Comment 14•18 years ago
|
||
Of course I forgot about packages-static again. Thanks ssitter for informing me. This takes care of it. I'm giving you review, since you probably know most about packages-static.
Attachment #279902 -
Flags: review?(ssitter)
Comment 15•18 years ago
|
||
Me too :( Good we have ssitter keeping track of proper install sets. Anybody ever thought about a script generating that? It's just error prone.
Comment 16•18 years ago
|
||
Comment on attachment 279902 [details] [diff] [review]
Add extension to package-static
r=ssitter
Attachment #279902 -
Flags: review?(ssitter) → review+
| Assignee | ||
Comment 17•18 years ago
|
||
packages-static patch checked in
| Assignee | ||
Updated•18 years ago
|
Whiteboard: [gdata-0.2.2] → [gdata-0.3]
You need to log in
before you can comment on or make changes to this bug.
Description
•