Closed
Bug 276707
Opened 20 years ago
Closed 20 years ago
JS Error when dragging address card with no email address to compose window address widget
Categories
(MailNews Core :: Composition, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.8beta1
People
(Reporter: standard8, Assigned: standard8)
References
()
Details
Attachments
(1 file, 2 obsolete files)
|
13.39 KB,
patch
|
Bienvenu
:
review+
mscott
:
superreview+
chofmann
:
approval-aviary1.1a1+
chofmann
:
approval1.8b2+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8a6) Gecko/20041212 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20050101 When dragging an address card with no email address to the message composition window, a javascript error is generated and nothing happens. Reproducible: Always Steps to Reproduce: 1. Start Mozilla/Address book 2. Create card in address book with no email address. 3. Select compose. 4. Drag created card from address book window to the addressing area of the message composition window. Actual Results: Nothing visible to the user happened, but the following error was displayed on the console: JavaScript error: , line 780: Expected Results: No javascript error and a warning dialog to the user (similar to that recently implemented in the select addresses dialog, bug 183632).
| Assignee | ||
Comment 1•20 years ago
|
||
I think I know what is happening here - found the file via venkman, taking bug, I will look into it in the next couple of days.
Assignee: sspitzer → mark
Summary: JS Error when dragging address card with no email address to compose window address widget → JS Error when dragging address card with no email address to compose window address widget
| Assignee | ||
Comment 2•20 years ago
|
||
Whilst investigating this bug further, a similar js error appears along with the following assertions when drag and dropping cards on the Select Address dialog (from the compose window). ###!!! ASSERTION: bad row index: 'aRowIndex >= 0 && aRowIndex < mRows.Count()', file nsTreeContentView.cpp, line 356 Break: at file nsTreeContentView.cpp, line 356 ###!!! ASSERTION: bad row: 'aRow >= 0 && aRow < mRows.Count()', file nsTreeContentView.cpp, line 346 Break: at file nsTreeContentView.cpp, line 346 Note: The assertions appear for any card that is dragged and dropped.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•20 years ago
|
||
This patch fixes the js error mentioned above and brings up a dialog notifying the user that they cannot add a card with an empty email address. I have found no cause for the assertions in the mailnews code, and it only happens when an address is dragged onto an empty tree row (contrary to what I said in my previous comment) but doesn't seem to affect functionality otherwise. Therefore I intend to raise a seperate bug on layout (?) to request the fix of the assertions.
Attachment #171408 -
Flags: review?(bienvenu)
Updated•20 years ago
|
Attachment #171408 -
Flags: review?(bienvenu) → review+
| Assignee | ||
Comment 4•20 years ago
|
||
Comment on attachment 171408 [details] [diff] [review] Fix JS errors Requesting sr. Please note I have now raised bug 278630 about the debug assertions.
Attachment #171408 -
Flags: superreview?(mscott)
| Assignee | ||
Updated•20 years ago
|
Target Milestone: --- → mozilla1.8beta
| Assignee | ||
Comment 5•20 years ago
|
||
Comment on attachment 171408 [details] [diff] [review] Fix JS errors Based on Scott's comments about DnD and not producing dialogs as a result of a DnD, cancelling request for sr until I can revise this patch.
Attachment #171408 -
Flags: superreview?(mscott)
| Assignee | ||
Comment 6•20 years ago
|
||
This patch has been revised, such that if a card with an empty email address is dragged to an addressing widget (or on the select addresses dialog), can drop is set false, the drag is denied and no assertions are given. I've also provided a similar fix for the thunderbird compose dialog.
Attachment #171408 -
Attachment is obsolete: true
Attachment #175723 -
Flags: review?(bienvenu)
Comment 7•20 years ago
|
||
Comment on attachment 175723 [details] [diff] [review] Revised patch - removed dialogs. seems OK - however, is there a common place we can put this duplicated code, shared by the address book and the compose window?
Attachment #175723 -
Flags: review?(bienvenu) → review+
| Assignee | ||
Comment 8•20 years ago
|
||
I've looked at this again, and the most appropriate place to put the common code seems to be abDragDrop.js, as it happens, thunderbird hasn't branched this yet, so can also share the benefits of the same file. If you don't like the look of it this way, then I'll use the previous patch if that's ok.
Attachment #176180 -
Flags: review?(bienvenu)
Updated•20 years ago
|
Attachment #176180 -
Flags: review?(bienvenu) → review+
| Assignee | ||
Updated•20 years ago
|
Attachment #176180 -
Flags: superreview?(dmose)
| Assignee | ||
Comment 9•20 years ago
|
||
Comment on attachment 175723 [details] [diff] [review] Revised patch - removed dialogs. Obsoleting "old" patch.
Attachment #175723 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•20 years ago
|
||
Comment on attachment 176180 [details] [diff] [review] Revised incorporate code into common place Dmose seems to be a bit busy at the moment - requesting sr from scott instead.
Attachment #176180 -
Flags: superreview?(dmose) → superreview?(mscott)
| Assignee | ||
Comment 11•20 years ago
|
||
Scott, any chance of an sr on this one, although it's not major I'd like to get it in soon. Thanks.
Updated•20 years ago
|
Attachment #176180 -
Flags: superreview?(mscott) → superreview+
| Assignee | ||
Comment 12•20 years ago
|
||
Comment on attachment 176180 [details] [diff] [review] Revised incorporate code into common place Requesting approval for checking, this is a tidy up patch for drag and drop issues with address book items for both suite & thunderbird. Should be low risk.
Attachment #176180 -
Flags: approval1.8b2?
Attachment #176180 -
Flags: approval-aviary1.1a?
Comment 13•20 years ago
|
||
Comment on attachment 176180 [details] [diff] [review] Revised incorporate code into common place a=chofmann
Attachment #176180 -
Flags: approval1.8b2?
Attachment #176180 -
Flags: approval1.8b2+
Attachment #176180 -
Flags: approval-aviary1.1a?
Attachment #176180 -
Flags: approval-aviary1.1a+
| Assignee | ||
Comment 14•20 years ago
|
||
Patch checked in by pike: 2005-05-02 09:08 axel%pike.org mozilla/ mailnews/ compose/ resources/ content/ addressingWidgetOverlay.xul 1.66 3/2 2005-05-02 09:08 axel%pike.org mozilla/ mailnews/ compose/ resources/ content/ addressingWidgetOverlay.js 1.89 1/41 2005-05-02 09:08 axel%pike.org mozilla/ mailnews/ addrbook/ resources/ content/ abSelectAddressesDialog.js 1.41 2/39 2005-05-02 09:08 axel%pike.org mozilla/ mailnews/ addrbook/ resources/ content/ abDragDrop.js 1.21 74/0 2005-05-02 09:08 axel%pike.org mozilla/ mailnews/ addrbook/ resources/ content/ abSelectAddressesDialog.xul 1.47 3/2 Marking as fixed (note there is a seperate bug about the debug assertions - bug 278630)
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
In build 2005-07-10-05 on Windows XP SeaMonkey trunk, dragging an entry with no email address from the Address Book results in the 'no drop target' icon correctly. Tested also to ensure that we still correctly follow through if the entry DOES have an email address. Verified FIXED.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•