Closed
Bug 954607
Opened 11 years ago
Closed 11 years ago
Add-ons need a notification when a conversation is detached and moved to a new window
Categories
(Instantbird Graveyard :: Conversation, defect)
Instantbird Graveyard
Conversation
Tracking
(Not tracked)
RESOLVED
FIXED
1.5
People
(Reporter: benediktp, Assigned: aleth)
References
Details
Attachments
(1 file)
834 bytes,
patch
|
benediktp
:
review+
|
Details | Diff | Splinter Review |
*** Original post on bio 1175 at 2011-11-18 10:01:00 UTC ***
Some extensions that attach themselves to a conversation (seen with restartless add-ons that can't use overlays) fail to notice when a conversation is moved to a new window and can't attach themselves again to the new conversation.
Or maybe there's a notification that I'm only not aware of?
Comment 1•11 years ago
|
||
*** Original post on bio 1175 at 2012-03-02 14:50:14 UTC ***
Rephrasing the summary as I had to read the full description to have an idea of what this bug is about...
Summary: Not possible to notice when a conversation is moved to a new window → Add-ons need a notification when a conversation is moved to a new window
Reporter | ||
Updated•11 years ago
|
Summary: Add-ons need a notification when a conversation is moved to a new window → Add-ons need a notification when a conversation is detached and moved to a new window
Assignee | ||
Comment 3•11 years ago
|
||
*** Original post on bio 1175 as attmnt 2461 at 2013-05-27 12:53:00 UTC ***
We currently fake a conversation-loaded notification after importing an existing conversation, instead we should just send it. This also requires no modifications to existing add-ons. I can't see any drawbacks.
Attachment #8354228 -
Flags: review?(benediktp)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → aleth
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8354228 [details] [diff] [review]
Patch
*** Original change on bio 1175 attmnt 2461 at 2013-05-27 19:32:41 UTC ***
Looks good and works fine! I tried with the add-on "Input Placeholder" and it works for detached tabs now as it works for any others.
Thanks a lot! This was a very annoying bug for me (and most likely others writing restartless add-ons for Instantbird too).
Attachment #8354228 -
Flags: review?(benediktp) → review+
Reporter | ||
Updated•11 years ago
|
Whiteboard: [checkin-needed]
Assignee | ||
Comment 5•11 years ago
|
||
*** Original post on bio 1175 at 2013-05-29 09:13:50 UTC ***
I should mention that I've thought of one drawback: add-ons which add things to the actual browser content now have to check (on receiving conversation-loaded) that they don't add it twice.
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8354228 [details] [diff] [review]
Patch
*** Original change on bio 1175 attmnt 2461 at 2013-05-29 11:17:55 UTC was without comment, so any subsequent comment numbers will be shifted ***
Attachment #8354228 -
Flags: review?(florian)
Comment 7•11 years ago
|
||
Comment on attachment 8354228 [details] [diff] [review]
Patch
*** Original change on bio 1175 attmnt 2461 at 2013-05-30 22:27:40 UTC ***
I don't feel confident reviewing this, and I don't want to block it for too long, so I think we should just try it on nightlies for a few days to see if it causes more issues than it fixes.
Attachment #8354228 -
Flags: review?(florian)
Reporter | ||
Comment 8•11 years ago
|
||
*** Original post on bio 1175 at 2013-05-30 22:36:00 UTC ***
(In reply to comment #5)
> I should mention that I've thought of one drawback: add-ons which add things to
> the actual browser content now have to check (on receiving conversation-loaded)
> that they don't add it twice.
If we run into problems we can put the information that this conversation has been loaded before into the data object of the notification.
Comment 9•11 years ago
|
||
*** Original post on bio 1175 at 2013-05-31 00:38:48 UTC ***
http://hg.instantbird.org/instantbird/rev/c25d057274df
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [checkin-needed]
Target Milestone: --- → 1.5
Assignee | ||
Comment 10•11 years ago
|
||
*** Original post on bio 1175 at 2013-05-31 10:43:52 UTC ***
(In reply to comment #7)
> If we run into problems we can put the information that this conversation has
> been loaded before into the data object of the notification.
This sounds a like a great solution and avoids having to introduce a separate notification (which I was hoping to avoid).
Want to add a followup with what you had in mind?
You need to log in
before you can comment on or make changes to this bug.
Description
•