Closed Bug 702484 Opened 14 years ago Closed 3 years ago

Get rid of RestoreFocusAfterHdrButton function

Categories

(Thunderbird :: Message Reader UI, enhancement)

8 Branch
enhancement

Tracking

(thunderbird_esr102 wontfix)

RESOLVED FIXED
108 Branch
Tracking Status
thunderbird_esr102 --- wontfix

People

(Reporter: squib, Assigned: elijmitchell)

References

()

Details

(Keywords: good-first-bug, Whiteboard: [lang=js][lang=xul])

Attachments

(1 file)

I was passing through the code for the message header buttons, and I realized that RestoreFocusAfterHdrButton is no longer relevant, since the message header buttons don't take focus anymore. We should just remove this function, and possibly update the buttons to use command controllers too.
Whiteboard: [lang=js/xul][mentor=squib]
Mentor: squibblyflabbetydoo
Whiteboard: [lang=js/xul][mentor=squib] → [lang=js/xul]
The function is still called from many places. You say it is not relevant. So it does nothing useful and can just be removed?
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Get rid of RestoreFocusAfterHdrButton → Get rid of RestoreFocusAfterHdrButton function
Whiteboard: [lang=js/xul] → [good first bug][lang=js][lang=xul]
It used to be needed when message header buttons were <xul:button> elements because those took focus. <xul:toolbarbutton>s don't, so the function doesn't do anything useful anymore.
Mentor: squibblyflabbetydoo

Hi, was wondering if this bug has been fixed or not? if not, i'd like to work on it?

Sam

I was required to complete a bug for a course, I have already worked on a bug so if anyone else wants to work on it im fine with that

Sam

Keywords: good-first-bug
Whiteboard: [good first bug][lang=js][lang=xul] → [lang=js][lang=xul]

Hey folks,

I am looking to work on my first bug, I am good with Js, if anyone could guide me what's required here, I would like to work on this.

Best,
Vishal

Assignee: nobody → elizabeth
Severity: normal → S3
Attachment #9300663 - Attachment description: Bug 702484 - Remove RestoreFocusAfterHdrButton function. r=aleca → WIP: Bug 702484 - Remove RestoreFocusAfterHdrButton function. r=aleca
Attachment #9300663 - Attachment description: WIP: Bug 702484 - Remove RestoreFocusAfterHdrButton function. r=aleca → Bug 702484 - Remove RestoreFocusAfterHdrButton function. r=aleca

There's some related JavaScript event.stopPropogation(); that we can look at in the future and see if it can also be removed.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ae907514691b
Remove RestoreFocusAfterHdrButton function. r=aleca

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Regressions: 1952481
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: