Closed Bug 1209634 Opened 9 years ago Closed 9 years ago

Remove WindowTargets / clean up target.js

Categories

(DevTools :: Framework, defect)

defect
Not set
normal

Tracking

(firefox44 fixed)

RESOLVED FIXED
Firefox 44
Tracking Status
firefox44 --- fixed

People

(Reporter: jryans, Assigned: jryans)

Details

Attachments

(3 files)

The target.js API has WindowTargets (in addition to the well used TabTargets), but no one uses them anymore.

There is one use[1] of `TargetFactory.forWindow` in `toggleBrowserToolboxCommand` from gDevTools.jsm, but nothing calls that either.

[1]: https://dxr.mozilla.org/mozilla-central/source/devtools/client/framework/gDevTools.jsm#555
:past, any reason to keep this stuff around?
Flags: needinfo?(past)
No, I don't think so. WindowTarget was there to support tools that hadn't been made remote yet, but nowadays there aren't any that we care about (plus it's only tabs these days, we do things differently for browser debugging). Kill it!
Flags: needinfo?(past)
Summary: Remove WindowTargets → Remove WindowTargets / clean up target.js
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Bug 1209634 - Reformat target.js to match ESLint rules. r=past
Attachment #8668727 - Flags: review?(past)
Comment on attachment 8668725 [details]
MozReview Request: Bug 1209634 - Remove unused WindowTarget. r=past

https://reviewboard.mozilla.org/r/21019/#review19329
Attachment #8668725 - Flags: review?(past) → review+
Comment on attachment 8668726 [details]
MozReview Request: Bug 1209634 - Remove unused target.version. r=past

https://reviewboard.mozilla.org/r/21021/#review19331
Attachment #8668726 - Flags: review?(past) → review+
Comment on attachment 8668727 [details]
MozReview Request: Bug 1209634 - Reformat target.js to match ESLint rules. r=past

https://reviewboard.mozilla.org/r/21023/#review19333
Attachment #8668727 - Flags: review?(past) → review+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: