Closed
Bug 330020
Opened 19 years ago
Closed 19 years ago
[FIX]View navigation buttons does not work since 2006-03-08 build
Categories
(Calendar :: Sunbird Only, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ssitter, Assigned: smaug)
References
Details
(Keywords: regression)
Attachments
(1 file)
6.51 KB,
patch
|
jminta
:
first-review+
|
Details | Diff | Splinter Review |
View navigation buttons does not work since 2006-03-08 build
Steps to Reproduce:
1) Go to day/week/multiweek/month view.
2) Press one of the navigation buttons on top of the view to
navigate view to next/previous day/week/month.
Actual Results:
Nothing happens. No error are shown in JavaScript console.
Expected Results:
View displays next/previous day/week/month.
Additional Information:
WORKS in Sunbird win32-2006-03-07-07-trunk build
FAILS in Sunbird win32-2006-03-08-07-trunk build
No changes to mozilla/calendar happened during that period.
Reporter | ||
Comment 1•19 years ago
|
||
Linux trunk builds are affected too.
1.8 branch build of Lightning 0.1 is *not* effected.
OS: Windows XP → All
Reporter | ||
Comment 2•19 years ago
|
||
Checkins to directory mozilla between 2006-03-07 07:00 and 2006-03-08 07:00: http://tinyurl.com/q3vrh Bug 234455 looks most suspicious.
Reporter | ||
Comment 4•19 years ago
|
||
(In reply to comment #3)
> Where is the source for these buttons in lxr?
Buttons are defined as xbl binding in http://lxr.mozilla.org/mozilla/source/calendar/base/content/calendar-decorated-base.xml#46 and are used in various xbl files http://lxr.mozilla.org/seamonkey/search?string=calendar-navigation-buttons
Maybe jminta can give more detailed information on this topic.
![]() |
||
Comment 5•19 years ago
|
||
So are the oncommand event handlers triggered? Or do we not get even that far?
Comment 6•19 years ago
|
||
Yes, the oncommand handlers are triggered and run correctly. The used variables looks fine, on a first look.
The move event listeners are never called though.
![]() |
||
Comment 7•19 years ago
|
||
> The move event listeners are never called though.
When you create the "move" events you set them to not bubble. Is that correct? Note that XUL used to bubble all events no matter what, but that this got fixed. See changes to colorpicker.xml and so forth in the patch for bug 234455.
Smaug, it looks like there are tons of remaining JS callers that pass false for canBubble. Did you audit them while working on bug 234455 already? Or does that need to happen?
Assignee | ||
Comment 8•19 years ago
|
||
(In reply to comment #7)
> Smaug, it looks like there are tons of remaining JS callers that pass false for
> canBubble. Did you audit them while working on bug 234455 already? Or does
> that need to happen?
>
Well, I wouldn't say 'tons' ;) But I tried to look at as many as possible
in FF, TH and SM, but unfortunately not in SB. So I didn't catch all of them
(not even in FF)
I have to admit that I'm a bit amazed how often the DOM Events API has been
misused in XUL (though, not too many regressions yet).
But this was one of the reasons why I really wanted
to get the dispatching rewritten before 1.9a1. Now I have time to fix these
callers - changing .initEvent("eventName", false, true) to .initEvent("eventName", true, true)
![]() |
||
Comment 9•19 years ago
|
||
Frankly, I think we should probably make that a blanket change...
Assignee | ||
Comment 10•19 years ago
|
||
Terribly sorry, I should have checked also Sunbird
when testing bug 234455. I changed all of the initEvent calls I found
in calendar/ because I noticed that addEventListener is used usually for
bubble phase.
Is one r+ enough in calendar/ or r+r or r+sr?
Assignee | ||
Comment 11•19 years ago
|
||
(In reply to comment #10)
> because I noticed that addEventListener is used usually for
> bubble phase.
Er, I checked there is always at least one addEventListener("eventName", handler, false) case for each .initEvent, so the events really should bubble.
Comment 12•19 years ago
|
||
Comment on attachment 214774 [details] [diff] [review]
proposed patch
Thanks for the patch! r=jminta.
(That's sufficient for checkin, but we're in a code-freeze right now for Lightning 0.1.)
Attachment #214774 -
Flags: first-review?(jminta) → first-review+
Assignee | ||
Comment 13•19 years ago
|
||
(In reply to comment #12)
> (That's sufficient for checkin, but we're in a code-freeze right now for
> Lightning 0.1.)
So no checkins even in trunk?
Comment 14•19 years ago
|
||
(In reply to comment #13)
> So no checkins even in trunk?
For calendar, trunk and branch are syncronized (all checkins are done using cross-commit.py), so a frozen branch means frozen trunk.
Updated•19 years ago
|
Blocks: sunbird-0.3a2
Reporter | ||
Comment 15•19 years ago
|
||
*** Bug 330264 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 16•19 years ago
|
||
I'll check this in asap calendar is not frozen anymore.
Assignee | ||
Updated•19 years ago
|
Summary: View navigation buttons does not work since 2006-03-08 build → [FIX]View navigation buttons does not work since 2006-03-08 build
Reporter | ||
Comment 17•19 years ago
|
||
*** Bug 330606 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 18•19 years ago
|
||
Checked in to branch and trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 19•19 years ago
|
||
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060929 Sunbird/0.3
Status: RESOLVED → VERIFIED
Whiteboard: [litmus testcase wanted]
Comment 21•19 years ago
|
||
Litmus testcase 2608 created
You need to log in
before you can comment on or make changes to this bug.
Description
•