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)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: smaug)

References

Details

(Keywords: regression)

Attachments

(1 file)

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.
Linux trunk builds are affected too. 1.8 branch build of Lightning 0.1 is *not* effected.
OS: Windows XP → All
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.
Where is the source for these buttons in lxr?
Blocks: 234455
(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.
So are the oncommand event handlers triggered? Or do we not get even that far?
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.
> 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?
(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)
Frankly, I think we should probably make that a blanket change...
Attached patch proposed patchSplinter Review
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: nobody → smaug
Status: NEW → ASSIGNED
Attachment #214774 - Flags: first-review?(jminta)
(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 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+
(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?
(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.
*** Bug 330264 has been marked as a duplicate of this bug. ***
I'll check this in asap calendar is not frozen anymore.
Summary: View navigation buttons does not work since 2006-03-08 build → [FIX]View navigation buttons does not work since 2006-03-08 build
*** Bug 330606 has been marked as a duplicate of this bug. ***
Checked in to branch and trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
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]
Litmus testcase 2499 created
Whiteboard: [litmus testcase wanted]
Litmus testcase 2608 created
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: