Closed Bug 1502069 Opened 6 years ago Closed 6 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
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=600e9fa1090fbfc83c29259ac9ce458961a4e9bf
Assignee: nobody → standard8
Status: NEW → ASSIGNED
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: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: