Closed Bug 1502069 Opened 2 years ago Closed 2 years ago

isTabEmpty should be a property on the tab rather than a global function

Categories

(Firefox :: Tabbed Browser, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

isTabEmpty is currently a global function on the browser window. This means we have to do calls such as `isTabEmpty(selectedTab)` or (worse) `window.isTabEmpty(selectedTab).

These should just be `selectedTab.isEmpty()`.
Summary: isTabEmpty should be a function on the tab rather than a global function → isTabEmpty should be a property on the tab rather than a global function
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8af56b879033
isTabEmpty should be a property on the tab rather than a global function. r=dao
https://hg.mozilla.org/mozilla-central/rev/8af56b879033
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.