Closed Bug 1809848 Opened 1 year ago Closed 1 year ago

Remove unused fields of TargetMixin

Categories

(DevTools :: General, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(4 files)

A few attributes are no longer used on TargetMixin and some others could be dropped in favor of alternatives.

They should rather be queried on the descriptor front.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

Legacy addon should no longer exist. We only support WebExtensions (at least in DevTools).

Ideally, the debugging context should rather be defined by the descriptor
rather than the top target.
On top of that isAddon is only an alias for isWebExtension.
So drop most usages of isAddon and otherwise use isWebExtension.

This is a very old and legacy attribute which always had a fuzzy definition.
As of today it was a somewhat alias of "not debugging a local/remote tab".

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cdd531783324
[devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/9bb5167ebc4b
[devtools] Remove a few unused attributes of TargetMixin. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/92d5cc5ee69e
[devtools] Remove TargetMixin.isAddon. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/14b861cccbeb
[devtools] Remove TargetMixin.chrome attribute. r=devtools-reviewers,nchevobbe
Regressions: 1810617

Backed out 4 changesets (Bug 1809848) for causing damp failures on browser-toolbox.js.
Backout link
Push with failures <--> dump-other
Failure Log

Flags: needinfo?(poirot.alex)

I missed an occurence of chrome in toolbox-options.
New try run focusing on damp:
https://treeherder.mozilla.org/jobs?repo=try&revision=e478f1da7ade6e1a1fcbf6648c165e33fd093176

Flags: needinfo?(poirot.alex)
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/05e57c08310f
[devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/17b823d1492e
[devtools] Remove a few unused attributes of TargetMixin. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/78375e26bffe
[devtools] Remove TargetMixin.isAddon. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/7dfd8676b3c7
[devtools] Remove TargetMixin.chrome attribute. r=devtools-reviewers,nchevobbe
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c25fa11188b5
[devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/d110dad28838
[devtools] Remove a few unused attributes of TargetMixin. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/9c47abfb1d07
[devtools] Remove TargetMixin.isAddon. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/45747743e2e2
[devtools] Remove TargetMixin.chrome attribute. r=devtools-reviewers,nchevobbe
Flags: needinfo?(poirot.alex)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: