Closed Bug 370904 Opened 17 years ago Closed 7 years ago

In <messengerdnd.js>, "Exception / NS_ERROR_FAILURE / nsIDragService.invokeDragSessionWithImage / BeginDragTree :: line 536", when canceling a (impossible) DnD

Categories

(MailNews Core :: Backend, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sgautherie, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: helpwanted)

[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.10pre) Gecko/20070219 SeaMonkey/1.0.8] (nightly) (W2Ksp4)
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.2pre) Gecko/20070219 SeaMonkey/1.1.1] (nightly) (W2Ksp4)
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a3pre) Gecko/20070218 SeaMonkey/1.5a] (nightly) (W2Ksp4)

[Mozilla Thunderbird, version 1.5.0.10pre (20070219)] (nightly) (W2Ksp4)
[Mozilla Thunderbird, version 2 beta 2 (20070219)] (nightly) (W2Ksp4)
[Mozilla Thunderbird, version 3 alpha 1 (20070219)] (nightly) (W2Ksp4)

1. Start to drag a message from the message pane: a little over itself is enough.
2. Cancel the (forbidden) drop, by pressing the Escape key.
2r. Get the following error (same in all products and versions)
{{
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDragService.invokeDragSession]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://messenger/content/messengerdnd.js :: BeginDragTree :: line 459"  data: no]
}}
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a9pre) Gecko/2007101403 SeaMonkey/2.0a1pre] (nightly) (W2Ksp4)
[Mozilla Thunderbird, version 3.0a1pre (2007101403)] (nightly) (W2Ksp4)

Message has changed:
{{
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDragService.invokeDragSessionWithImage]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://messenger/content/messengerdnd.js :: BeginDragTree :: line 533"  data: no]
}}

NB: Pop3 or Imap4, equally.
Assignee: mscott → nobody
Component: Mail Window Front End → MailNews: Backend
Product: Thunderbird → Core
QA Contact: front-end → backend
Summary: In <messengerdnd.js>, "Error/Exception/NS_ERROR_FAILURE / nsIDragService.invokeDragSession / BeginDragTree :: line 459" → In <messengerdnd.js>, "Error/Exception/NS_ERROR_FAILURE / nsIDragService.invokeDragSessionWithImage / BeginDragTree :: line 533", when cancelling a (impossible) DnD
Just to confirm I cannot seem to reproduce on Linux with the steps above so seems to be Windows only.
(In reply to comment #0)
> 1. Start to drag a message from the message pane: a little over itself is enough.

Obviously, Thread pane, not Message/body pane.

[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.2pre) Gecko/2008071303 Thunderbird/3.0a2pre] (nightly) (W2Ksp4)
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.2pre) Gecko/2008071502 SeaMonkey/2.0a1pre] (nightly) (W2Ksp4)

New line number is 536.

(SM) Stack is
{{
#0: function BeginDragTree(flavor=string:"text/x-moz-message", selArray=Array:{0}, tree=XULElement:{8}, event=MouseEvent:{0}) in <chrome://messenger/content/messengerdnd.js> line 536
#1: function BeginDragThreadPane(event=MouseEvent:{0}) in <chrome://messenger/content/messengerdnd.js> line 463
#2: function ondraggesture(event=MouseEvent:{0}) in <chrome://messenger/content/messenger.xul> line 1
}}

Code is:
{{
533     dragService.invokeDragSessionWithImage(event.target, transArray, region,
534                                            nsIDragService.DRAGDROP_ACTION_COPY +
535                                            nsIDragService.DRAGDROP_ACTION_MOVE,
536                                            null, 0, 0, event);
}}
That's a C++ function, which Venkman can't step into.
Also, I can't even set a JS breakpoint, as this code is called both when the drag starts and when it's canceled.
(I even wonder if that is the intended behavior...)
Keywords: helpwanted
Summary: In <messengerdnd.js>, "Error/Exception/NS_ERROR_FAILURE / nsIDragService.invokeDragSessionWithImage / BeginDragTree :: line 533", when cancelling a (impossible) DnD → In <messengerdnd.js>, "Exception / NS_ERROR_FAILURE / nsIDragService.invokeDragSessionWithImage / BeginDragTree :: line 536", when canceling a (impossible) DnD
Depends on: 446288
Product: Core → MailNews Core
Not happening anymore. Closing.

Thunderbird 52.1.0 (32-bit)
Windows 7 64-bit
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.