Closed Bug 1612720 Opened 6 years ago Closed 5 years ago

Port |Bug 461013 - get rid of |aTab.localName != "tab"| checks in removeAllTabsBut, removeTab and reloadTab| and tidy up

Categories

(SeaMonkey :: Tabbed Browser, task)

task
Not set
normal

Tracking

(seamonkey2.49esr wontfix, seamonkey2.53 fixed, seamonkey2.57esr fixed)

RESOLVED FIXED
seamonkey 2.73
Tracking Status
seamonkey2.49esr --- wontfix
seamonkey2.53 --- fixed
seamonkey2.57esr --- fixed

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

Details

(Whiteboard: SM2.53.2)

Attachments

(1 file, 1 obsolete file)

Port changes from:

  • Bug 461013 - get rid of |aTab.localName != "tab"| checks in removeAllTabsBut, removeTab and reloadTab.

Also some tidy up:

  • menu.setAttribute("disabled", foo) -> menu.disabled = foo
  • matching reloadTab method with Firefox
Attached patch Port changes (obsolete) — Splinter Review

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: none
Testing completed (on m-c, etc.): 2.53
Risk to taking this patch (and alternatives if risky): none
String changes made by this patch: none

Attachment #9123948 - Flags: review?(frgrahl)
Attachment #9123948 - Flags: approval-comm-release?
Attachment #9123948 - Flags: approval-comm-esr60?
Comment on attachment 9123948 [details] [diff] [review] Port changes LGTM One minor thing. I would put parentheses around the logical operators in menuitem.disabled: + menuitem.disabled = + (tbattr.includes("tabbrowser-multiple") && !isMultiple) || + (tbattr.includes("tabbrowser-tab") && !isTab); Precedence of Logical Operators is right and && higher but find it more readable this way. r/a+ either way.
Attachment #9123948 - Flags: review?(frgrahl)
Attachment #9123948 - Flags: review+
Attachment #9123948 - Flags: approval-comm-release?
Attachment #9123948 - Flags: approval-comm-release+
Attachment #9123948 - Flags: approval-comm-esr60?
Attachment #9123948 - Flags: approval-comm-esr60+

With changes as suggested, carrying forward r/a+

Attachment #9123948 - Attachment is obsolete: true
Attachment #9133477 - Flags: review+
Attachment #9133477 - Flags: approval-comm-release+
Attachment #9133477 - Flags: approval-comm-esr60+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/fd76d1b09482
Port |Bug 461013 - get rid of |aTab.localName != "tab"| checks in removeAllTabsBut, removeTab and reloadTab| and tidy up. r=frg

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey 2.73
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: