Closed Bug 1408572 Opened 7 years ago Closed 7 years ago

Remove handleCtrlPageUpDown attribute and associated code

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 58
Tracking Status
firefox58 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

I ran into this in Bug 1392352, and I can't find any place where this attribute is set: https://searchfox.org/mozilla-central/search?q=handleCtrlPageUpDown.
Dão, are there any consumers of this attribute / property that I'm missing?
Flags: needinfo?(dao+bmo)
Yeah, looks unused.
Flags: needinfo?(dao+bmo)
Blocks: 1392352
Comment on attachment 8920665 [details]
Bug 1408572 - Remove handleCtrlPageUpDown attribute and associated code;

https://reviewboard.mozilla.org/r/191656/#review196994

::: toolkit/content/widgets/tabbox.xml:148
(Diff revision 1)
>                    event.preventDefault();
>                  }
>                break;
>              case event.DOM_VK_PAGE_UP:
> -              if (event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey)
> -                if (this.tabs && this.handleCtrlPageUpDown) {
> +              if (event.ctrlKey && !event.shiftKey &&
> +                  !event.altKey && !event.metaKey && this.tabs) {

nit: I'd prefer having all event checks on one line, or each on a separate line, and the this.tabs check on the next line

::: toolkit/content/widgets/tabbox.xml:158
(Diff revision 1)
>              case event.DOM_VK_PAGE_DOWN:
> -              if (event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey)
> -                if (this.tabs && this.handleCtrlPageUpDown) {
> +              if (event.ctrlKey && !event.shiftKey &&
> +                  !event.altKey && !event.metaKey && this.tabs) {
>                    this.tabs.advanceSelectedTab(1, true);
>                    event.preventDefault();
>                  }

Please fix up the indentation
Attachment #8920665 - Flags: review?(dao+bmo) → review+
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Keywords: dev-doc-needed
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8e49aaf48550
Remove handleCtrlPageUpDown attribute and associated code;r=dao
https://hg.mozilla.org/mozilla-central/rev/8e49aaf48550
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
I've removed the page covering this attribute completely, since it is used nowhere and has been removed.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: