Closed
Bug 372424
Opened 19 years ago
Closed 15 years ago
iTIP/iMIP invitation bar doesn't disappear after changing e-mail folder
Categories
(Calendar :: E-mail based Scheduling (iTIP/iMIP), defect, P3)
Calendar
E-mail based Scheduling (iTIP/iMIP)
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b3
People
(Reporter: roger.in.eugene, Assigned: Fallen)
References
Details
(Whiteboard: [needed beta][no l10n impact])
Attachments
(1 file, 1 obsolete file)
|
2.57 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070221 Red Hat/1.5.0.10-0.1.el4 Firefox/1.5.0.10
Build Identifier: Lightning .0.3.1 with wcap enabler 0.3
When clicking on a message with an invitiation, the notice comes up telling you of the fact. If you click directly on another mail folder, the notice stays in place.
If you click another email within that mail folder, then the notice goes away like you expect it to.
When you click on the message *with* the invitation, the 'attachment' icon for the message a two messages up also shows up. the attachment icon for the second message goes away when the invitation notice disappears.
Reproducible: Always
Steps to Reproduce:
1.click on message with invitaion
2. click on a different folder, notice stays there.
3. click back to a different message in same folder, notice goes away.
Actual Results:
invitation notice stayed visible after clicking another folder.
Expected Results:
expected notice to go away after clicking on a different folder.
Updated•19 years ago
|
Summary: invitation notice doesn't go away. → iTIP/iMIP invitation bar doesn't disappear after changing e-mail folder
Comment 2•19 years ago
|
||
Marking as confirmed based on duplicate report with Lightning 0.5pre.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Version: unspecified → Trunk
Updated•18 years ago
|
Flags: blocking-calendar0.7?
Updated•18 years ago
|
Flags: blocking-calendar0.7? → wanted-calendar0.8?
Hardware: PC → All
Version: Trunk → unspecified
Comment 3•18 years ago
|
||
I don't know if this fixes it on Mac and/or Windows. Tested on Linux.
Comment 4•18 years ago
|
||
Confirming the fix using manually patched Lightning 0.8pre (build 2007112305) on Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 ID:2007103104
Comment 5•18 years ago
|
||
Setting wanted0.8- as the main Calendar developers will not devote any time to
this in the 0.8 timeframe. Patches are, of course, always welcome.
Flags: wanted-calendar0.8? → wanted-calendar0.8-
Comment on attachment 289038 [details] [diff] [review]
using onunload listener of the window
>Index: calendar/lightning/content/imip-bar.js
>===================================================================
> function imipOnUnload()
> {
>- removeEventListener("messagepane-loaded", imipOnLoad, true);
>- removeEventListener("messagepane-unloaded", imipOnUnload, true);
I'm a little uncertain that removing these is the proper thing to do here. However, I verified that we lose the ability to display the imip-bar if we keep these lines in. I'm not sure if the window.addeventhandler uses memory that is managed differently from the way that the simple addeventhandler that we were using before is managed. I'd like to understand if we are causing a memory leak by not having these in the code.
The patch does indeed work for Linux (taking Sebo's word) and for Windows (I tested that and Przemyslaw confirmed it too). However, it does NOT work on Mac OS X (Attempted on 10.4).
I'd like to get this patch in since it solves the problem for a 2/3 of our default platforms, but I'd like to know if we are leaking memory by removing the "removeEventListener" commands. That's the primary issue of importance in my mind. We also need to figure out if there is some other listener we should use for Mac OS X. So, in light of these two things, I think I have to minus for now.
Sebo: Can you answer the question of whether or not this causes a memory leak?
I'll ask the mac platform folks at MoCo to see if they understand what we need to do here.
Attachment #289038 -
Flags: review?(ctalbert) → review-
Colin, Do you know why this approach would not work on Mac? Is there something different we need to do here? Is the window.unload listener treated differently on Mac?
Thanks for the help.
Comment 8•18 years ago
|
||
Sebastian: could you comment on your patch so we can fix this bug for 2 platforms and left bug open as Mac only ?
Comment 9•18 years ago
|
||
Sorry, I don't know if this causes a memory leak.
I did some testing as to why we cannot remove the eventListener in onunload. (In that case the bar is not shown at all.) It looks like the onload and onunload handlers are called multiple times before the message is actually shown. The onunload handler is at least called once before that. This would explain why removing the event listener in onunload has the effect of not showing the bar at all.
The same event listener can only be added once per window. That means there might be a memory leak if it is not removed but we are talking about one listener and not about a whole array of them...
Updated•18 years ago
|
Component: Lightning Only → E-mail based Scheduling (iTIP/iMIP)
QA Contact: lightning → email-scheduling
Updated•18 years ago
|
Flags: wanted-calendar0.8- → wanted-calendar0.9+
Updated•17 years ago
|
Flags: wanted-calendar0.9+ → wanted-calendar0.9-
Comment 10•17 years ago
|
||
dmose, could you have a look at this issue, please? Thanks.
Assignee: sebo.moz → nobody
Status: ASSIGNED → NEW
Updated•17 years ago
|
Flags: wanted-calendar1.0?
Comment 11•17 years ago
|
||
Boy, I'd love to switch Thunderbird to using the toolkit notification bar, but I'll be surprised if I get the bandwidth to do this by Tb3. In any case, I'll have a look.
Assignee: nobody → dmose
Flags: tb-integration+
Updated•17 years ago
|
Flags: wanted-calendar1.0?
Flags: wanted-calendar1.0+
Flags: wanted-calendar0.9-
Comment 12•17 years ago
|
||
marking p3, since this is relatively rare. It looks bad, but the workaround is easy.
Priority: -- → P3
Comment 13•17 years ago
|
||
I've just tried the patch and it does work for me on Mac OS X 10.5.5.
We should nevertheless use:
hideElement("imip-button1");
hideElement("imip-button2");
hideElement("imip-button3");
instead of:
document.getElementById("imip-button1").setAttribute("hidden", "true");
document.getElementById("imip-button2").setAttribute("hidden", "true");
| Assignee | ||
Comment 14•16 years ago
|
||
This patch takes care by hooking into the function that hides the header pane. I'd prefer a real event, but I think its the best we can do for now.
Assignee: dmose → philipp
Attachment #289038 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #432926 -
Flags: review?(mschroeder)
| Assignee | ||
Updated•15 years ago
|
Flags: wanted-calendar1.0+ → blocking-calendar1.0+
Whiteboard: [not needed beta][no l10n impact]
| Assignee | ||
Updated•15 years ago
|
Attachment #432926 -
Flags: review?(mschroeder) → review?(Mozilla)
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [not needed beta][no l10n impact] → [needed beta][no l10n impact]
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needed beta][no l10n impact] → [needed beta][no l10n impact][needs review]
Comment 15•15 years ago
|
||
Comment on attachment 432926 [details] [diff] [review]
Fix - v1
r=simon looks good
| Assignee | ||
Updated•15 years ago
|
Attachment #432926 -
Flags: review?(Mozilla) → review+
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needed beta][no l10n impact][needs review] → [needed beta][no l10n impact]
| Assignee | ||
Comment 16•15 years ago
|
||
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/6ed89063cf94>
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → Trunk
| Assignee | ||
Comment 17•15 years ago
|
||
Backported to comm-1.9.2 <http://hg.mozilla.org/releases/comm-1.9.2/rev/0251686b8374>
a=philipp
| Assignee | ||
Updated•15 years ago
|
Target Milestone: Trunk → 1.0b3
You need to log in
before you can comment on or make changes to this bug.
Description
•