Closed
Bug 431811
Opened 18 years ago
Closed 18 years ago
Context menu of tasks in today pane is broken [Error: taskTree has no properties]
Categories
(Calendar :: Lightning Only, defect)
Calendar
Lightning Only
Tracking
(Not tracked)
VERIFIED
FIXED
0.9
People
(Reporter: andreas.treumann, Assigned: berend.cornelius09)
Details
(Keywords: regression)
Attachments
(1 file, 3 obsolete files)
|
53.10 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
STEPS TO REPRODUCE:
===================
- select a task in the today pane
- open the context menu
- 1. error: Error: taskTree has no properties
Source File: chrome://calendar/content/calendar-task-tree.js
Line: 113
- move the mouse over the 'Progress', 'Priority', 'Calendar' and 'Convert to' entries
- next errors: Error: taskTree has no properties
Source File: chrome://calendar/content/calendar-task-tree.js
Line: 96
Error: taskTree has no properties
Source File: chrome://calendar/content/calendar-task-tree.js
Line: 113
Error: taskTree has no properties
Source File: chrome://calendar/content/calendar-task-tree.js
Line: 54
RESULT:
=======
- the error console shows errors
EXPECTED RESULT:
================
- no errors
REPRODUCIBLE:
=============
- always
Same on Linux, Mac and Solaris trows no errors.
Comment 1•18 years ago
|
||
Regression range:
Works in Ltn 0.9pre (2008041720) + Tb 2.0.0.15pre (20080501).
Fails in Ltn 0.9pre (2008041820) + Tb 2.0.0.15pre (20080501).
Checkins during regressin range: http://tinyurl.com/6bunoz
Most probably regressed by Bug 389150.
Keywords: regression
Updated•18 years ago
|
Flags: blocking-calendar0.9+
Updated•18 years ago
|
Summary: context menu of tasks in today pane causes errors in error console → Context menu of tasks in today pane causes error [Error: taskTree has no properties]
| Assignee | ||
Updated•18 years ago
|
Assignee: nobody → Berend.Cornelius
| Assignee | ||
Comment 2•18 years ago
|
||
I can't say which this issed regressed from because it's already almost weeks old.
But in bug 363932 not all calls of "modifyEventWithDialog" were adapted to the new parameters. I changed that and it works fine. On this occasion I set the default of the third parameter "aPromptOccurrence" to "false".
Attachment #322512 -
Flags: review?(daniel.boelzle)
| Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 3•18 years ago
|
||
Comment on attachment 322512 [details] [diff] [review]
patch v. #1
r=dbo
Attachment #322512 -
Flags: review?(daniel.boelzle) → review+
| Assignee | ||
Comment 4•18 years ago
|
||
patch checked in on trunk and MOZILLA_1_8_BRANCH
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 5•18 years ago
|
||
Errors are still reproducible using Lightning 0.9pre (2008-05-26-10).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•18 years ago
|
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → 0.9
| Assignee | ||
Comment 6•18 years ago
|
||
second try: I could only confirm the error extremely sporadically (and Daniel could not confirm this at all) which is why I believe that this some kind of focus bug. This attached patch should make that behaviour more reliable. But before I ask for a a review I would appreciate it if some people could test the patch beforehand.
Comment 7•18 years ago
|
||
I don't know what platform you are developing on. According to Comment #0 this error only occurs on Windows and Linux. At least on Windows XP it happens as soon as I right click the task list in the today pane to open the context menu.
| Assignee | ||
Comment 8•18 years ago
|
||
I have noticed this and we have tested it on Linux and Mac. Have you tried it also with my new patch?
Comment 9•18 years ago
|
||
Comment on attachment 322621 [details] [diff] [review]
patch v. #2
I tried this patch on WindowsXP with Lightning 0.9pre and the errors are gone.
| Assignee | ||
Comment 10•18 years ago
|
||
The solution in my last patch is not the right solution! As we use the same task in our application menu as well as in the task context menu I can't retrieve the relevant tree based on "document.popupNode". On the other hand I dislike the idea more and more to do this focus-dependent. Probably I should attach the id of the tasktree" directly as an attribute to the application menu (e.g. "tree="calendar-task-tree") and use "document.popupNode" as a fallback for the context-menus. The remaining problem would be to remove "calendar_modify_todo_command" from calendar.commonsets.xul/js because in these files this context is not known.
| Assignee | ||
Comment 11•18 years ago
|
||
not the best solution but with my modifications in "getParentNode()" this will probably also resolve the issue on all platforms. Any commment is welcome.
Attachment #322512 -
Attachment is obsolete: true
Attachment #322621 -
Attachment is obsolete: true
Updated•18 years ago
|
Summary: Context menu of tasks in today pane causes error [Error: taskTree has no properties] → Context menu of tasks in today pane is broken [Error: taskTree has no properties]
| Assignee | ||
Comment 12•18 years ago
|
||
Newest patch following my guidelines of comment #10. My aim was to make the commmands focus independent yet as I found out this is not so easy for the general commends for "Cut,Copy,Paste and Delete" because the always relate to the focused pane. For the latter one we still have bug 429685 – Toggling of 'Delete' - toolbarbutton in calendar-mode and task-mode does not work, that I will deal with in a follow-up. Andreas has tested this patch already and found no objections.
Attachment #322760 -
Attachment is obsolete: true
Attachment #323053 -
Flags: review?(philipp)
Comment 13•18 years ago
|
||
Comment on attachment 323053 [details] [diff] [review]
patch v. #4
>+/**
>+ * Returns a parentnode with the given attributevalue for the given attributename
>+ * by "walking up" the DOM-hierarchy.
A comment to why this function is called "OrThis" would be nice.
Also, somewhere at the top of this patch I think you called the same function by without "ByAttribute". Typo? Please ignore if thats not the case, I already deleted the other lines of this patch :-)
r=philipp
Attachment #323053 -
Flags: review?(philipp) → review+
| Assignee | ||
Comment 14•18 years ago
|
||
modified the sourcecode comment and checked in the patch on trunk and MOZILLA_1_8_BRANCH and trunk
->fixed
Status: REOPENED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 15•18 years ago
|
||
Checked in nightly build 2008060118 -> VERIFIED.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•