Closed Bug 461013 Opened 16 years ago Closed 16 years ago

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

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 3.1b2

People

(Reporter: dao, Assigned: dao)

Details

Attachments

(2 files)

from bug 456002 comment 15:

> (From update of attachment 339788 [details] [diff] [review])
> (In reply to comment #14)
> > The current behavior doesn't seem to make sense to me and bugs me every time I
> > look at it (and others, e.g. bz in bug 113934), but it never seemed important
> > enough to file a bug. Do you want me to file a separate bug? Or can you explain
> > why the code is doing what it's doing?
> 
> I actually misinterpreted it as a null check; I agree that it doesn't make much
> sense as it is. Bug 107848 comment 25 suggests that event listeners on non-tab
> elements used to pass |this| as the parameter, or something. I think we can
> probably get rid of it, but a new bug would be good.
Attached patch patchSplinter Review
Attachment #344155 - Flags: review?(gavin.sharp)
Attachment #344155 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/0c338f85aacd
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.1b2
Attached patch followupSplinter Review
Attachment #345738 - Flags: review?(gavin.sharp)
Attachment #345738 - Flags: review?(gavin.sharp) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: