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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: andreas.treumann, Assigned: berend.cornelius09)

Details

(Keywords: regression)

Attachments

(1 file, 3 obsolete files)

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.
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
Flags: blocking-calendar0.9+
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: nobody → Berend.Cornelius
Attached patch patch v. #1 (obsolete) — Splinter Review
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)
Status: NEW → ASSIGNED
Comment on attachment 322512 [details] [diff] [review] patch v. #1 r=dbo
Attachment #322512 - Flags: review?(daniel.boelzle) → review+
patch checked in on trunk and MOZILLA_1_8_BRANCH
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Errors are still reproducible using Lightning 0.9pre (2008-05-26-10).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → 0.9
Attached patch patch v. #2 (obsolete) — Splinter Review
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.
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.
I have noticed this and we have tested it on Linux and Mac. Have you tried it also with my new patch?
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.
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.
Attached patch current state of the art (obsolete) — Splinter Review
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
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]
Attached patch patch v. #4Splinter Review
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 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+
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 ago18 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: