Closed
Bug 348245
Opened 18 years ago
Closed 18 years ago
Datepicker not working anymore after using date/year dropdown
Categories
(Calendar :: Internal Components, defect)
Calendar
Internal Components
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ssitter, Assigned: michael.buettner)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
7.49 KB,
patch
|
mvl
:
first-review+
mattwillis
:
second-review+
|
Details | Diff | Splinter Review |
Datepicker not working anymore after using date/year dropdown.
Probably caused by checkin for Bug 346318.
Steps to Reproduce:
1. Open New Event dialog
2. Open the datepicker for start date
3. Click the month name or year on top to open the dropdown menu
4. Select another month or year in the dropdown menu
5. Repeat step 3. and 4.
6. Select specific day in minimonth shown below
Actual Results:
Nothing happens. No dropdown menu is shown.
The clicked day is not selected. Datepicker does not close.
Expected Results:
Should work as in nightly from last day.
Works in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/2006080914 Calendar/0.3a2+
Fails in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/2006081006 Calendar/0.3a2+ and Lightning/0.1+ (2006081006).
Same with linux build.
Reporter | ||
Updated•18 years ago
|
Flags: blocking0.3?
Updated•18 years ago
|
Flags: blocking0.3? → blocking0.3+
Updated•18 years ago
|
Whiteboard: [swag:1.5d]
Reporter | ||
Comment 2•18 years ago
|
||
*** Bug 349052 has been marked as a duplicate of this bug. ***
Comment 3•18 years ago
|
||
The patch for bug 346318 is just all wrong. It just removes the code that was supposed to prevent this bug.
I think the best way to go would be to back out that patch, and rethink it. Then write a patch that doesn't remove the eventlisteners etc.
Assignee | ||
Comment 4•18 years ago
|
||
I just started to investiage this issue and found that the current behavior is not just annoying but can also lead to a fatal crash. Open the dialog, click on the drop-down arrow of the datepicker, click on the month-slection, press escape twice. This leads to a crash, at least on windows. tested with the latest version on trunk. I'll continue working on this bug.
Assignee: nobody → michael.buettner
Assignee | ||
Comment 5•18 years ago
|
||
First of all this patch reverts most of the stuff from bug 346318 and prevents the fatal crash. since i currently can't test this on a mac, i don't know whether or not this patch reintroduces the problem bug 346318 tried to solve. i would suspect that this is probably indeed the case. but as mvl already suggested, i would revert the patch, reopen bug 346318 and go for a better solution.
Attachment #236217 -
Flags: first-review?(dmose)
Reporter | ||
Comment 6•18 years ago
|
||
*** Bug 350851 has been marked as a duplicate of this bug. ***
Updated•18 years ago
|
Whiteboard: [swag:1.5d] → [swag:1.5d][no l10n impact]
Updated•18 years ago
|
Whiteboard: [swag:1.5d][no l10n impact] → [swag:1.5d][no l10n impact][needs review dmose]
Comment 7•18 years ago
|
||
Comment on attachment 236217 [details] [diff] [review]
patch v1
r=mvl
This does break mac, but at least makes linux not crash.
Attachment #236217 -
Flags: first-review?(dmose) → first-review+
Assignee | ||
Comment 8•18 years ago
|
||
i just tried to verify the fix before checking in the patch and found that performing an arbitrary selection in the month/year popups leads to a crash. i tested this on windows with the current 1.8 branch version. i'm sure that i tested this when i originally commited this patch, but i don't know why this behavior didn't show up previously, probably i was sleep-walking...
the cause for the crash is the call to hidePopup() in the click handler of the minimonth binding. switching the month/year triggers the reshowPopup() method in the datetimepicker binding, which in turn calls hidePopupList() in the minimonth, which tries to call hidePopup() again because it has in internal reference to the popup. the fix is to call hidePopupList() instead of hidePopup() to get rid of the internal reference.
Attachment #236217 -
Attachment is obsolete: true
Attachment #238173 -
Flags: second-review?(mvl)
Attachment #238173 -
Flags: first-review?(thomas.benisch)
Comment 9•18 years ago
|
||
After we check in this fix, we're still going to need to address the Mac problem, ideally by having mento/josh help us un-regress the trunk, right?
Whiteboard: [swag:1.5d][no l10n impact][needs review dmose] → [swag:1.5d][partial patch in hand][needs review tbe mvl]
Assignee | ||
Comment 10•18 years ago
|
||
(In reply to comment #9)
> After we check in this fix, we're still going to need to address the Mac
> problem, ideally by having mento/josh help us un-regress the trunk, right?
I didn't try this on Mac, but I would suspect that it still has problems after this patch has been checked in. In light of this, yes, the above statement is correct.
Updated•18 years ago
|
Whiteboard: [swag:1.5d][partial patch in hand][needs review tbe mvl] → [swag:1.5d]needs review tbe mvl]
Assignee | ||
Comment 11•18 years ago
|
||
Comment on attachment 238173 [details] [diff] [review]
patch v2
thomas is sick, he won't be in town for the next couple of days.
Attachment #238173 -
Flags: second-review?(mvl)
Attachment #238173 -
Flags: first-review?(thomas.benisch)
Attachment #238173 -
Flags: first-review?(mvl)
Assignee | ||
Updated•18 years ago
|
Whiteboard: [swag:1.5d]needs review tbe mvl] → [swag:1.5d][needs review mvl]
Comment 12•18 years ago
|
||
Before checking this in, i'd like to get someone with a mac to spend some time with bug 346318. (But if no mac owner volunteers, we have no choice but to break the datapicker on mac. That would be unfortunate...)
Comment 13•18 years ago
|
||
Comment on attachment 238173 [details] [diff] [review]
patch v2
r=mvl, be see previous before check-in.
Attachment #238173 -
Flags: first-review?(mvl) → first-review+
Comment 14•18 years ago
|
||
Comment on attachment 238173 [details] [diff] [review]
patch v2
r=lilmatt
Let's take this and work on fixing whatever broke the Mac separately with mento and josh.
Attachment #238173 -
Flags: second-review+
Comment 15•18 years ago
|
||
Patch updated on MOZILLA_1_8_BRANCH and trunk.
-> FIXED
Yes, we know this breaks the datepicker on the Mac.
Please see bug 346318.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [swag:1.5d][needs review mvl]
Comment 16•18 years ago
|
||
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060929 Sunbird/0.3
Whiteboard: [litmus testcase wanted]
Updated•18 years ago
|
Status: RESOLVED → VERIFIED
Comment 18•18 years ago
|
||
Maybe should it be reopened because of bug 356505?
You need to log in
before you can comment on or make changes to this bug.
Description
•