Notifications disrupt drag and drop
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(thunderbird_esr78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: jochen.mozilla, Assigned: lasana)
References
(Depends on 1 open bug, )
Details
Attachments
(3 files)
Reporter | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Reporter | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Reporter | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Reporter | ||
Comment 9•12 years ago
|
||
Reporter | ||
Comment 10•12 years ago
|
||
Reporter | ||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
Comment 13•12 years ago
|
||
Comment 14•12 years ago
|
||
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
Reporter | ||
Comment 17•12 years ago
|
||
Reporter | ||
Comment 18•12 years ago
|
||
Reporter | ||
Comment 19•12 years ago
|
||
Comment 20•12 years ago
|
||
Comment 21•12 years ago
|
||
Reporter | ||
Comment 22•12 years ago
|
||
Comment 23•12 years ago
|
||
Comment 24•12 years ago
|
||
Comment 25•12 years ago
|
||
Comment 26•11 years ago
|
||
Updated•11 years ago
|
Updated•10 years ago
|
Updated•10 years ago
|
Updated•10 years ago
|
Comment 31•4 years ago
|
||
This needs some investigation. I'm guessing there's something that forces the focus to the alert and that causes the other problems.
![]() |
Assignee | |
Comment 32•4 years ago
|
||
From what I can tell so far, it looks like directly modifying the dimensions of a window causes nsDragService::EndDragSession
to be called. If I recall correctly from other bugs I think there is only one nsIDragSession
at any given point in time so the resizeAlert()
function in newmailalert.js
causes it to abruptly end when it changes outerHeight
or calls window.moveTo
.
![]() |
Assignee | |
Comment 33•4 years ago
|
||
After reading the comments of bug 100180, I get the impression that the above happens in EnterModalState
though I'm not 100% sure because I don't see why that would be called for non-modal dialogs.
https://searchfox.org/mozilla-central/source/dom/base/nsGlobalWindowOuter.cpp#6367
Even the patch there looks like it's a workaround rather than a fix so I think it's better if we just alter our drag and drop code to not assume a dataTransfer object is always available.
![]() |
Assignee | |
Updated•4 years ago
|
![]() |
Assignee | |
Comment 34•4 years ago
•
|
||
Even the patch there looks like it's a workaround rather than a fix so I think it's better if we just alter our drag and drop code to not assume a dataTransfer object is always available.
I went a different direction, because this will still be disruptive to the user. Instead I made a change to the notification dialog to detect if a drag session is active before resizing. It's a workaround because I don't think there is anything we could do in comm-central to avoid this. I tried to reproduce the issue in firefox but there does not seem to be much dialogs in there that can be resized.
![]() |
Assignee | |
Comment 35•4 years ago
|
||
Comment 36•4 years ago
|
||
(In reply to Lasana Murray from comment #33)
After reading the comments of bug 100180, I get the impression that the above happens in
EnterModalState
though I'm not 100% sure because I don't see why that would be called for non-modal dialogs.
I didn't verify, but since this "window" get opened from chrome it probably to it from start - https://searchfox.org/mozilla-central/rev/2b372b94ce057097a6ef8eb725f209faa9d1dc4d/toolkit/components/windowwatcher/nsWindowWatcher.cpp#889
![]() |
Assignee | |
Updated•4 years ago
|
Comment 37•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/e7906f9a1cb1
Detect active drag session before setting up new mail alert dialog to avoid notifications cancelling a drag. r=mkmelin
Updated•4 years ago
|
Description
•