Open Bug 1721852 Opened 3 years ago Updated 1 year ago

Stop supporting client side target.

Categories

(DevTools :: Framework, task)

task

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: ochameau, Assigned: ochameau)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: dt-perf-stability-triage)

Attachments

(1 obsolete file)

Bug 1698891 will enable server side targets by default.
Once this settle and we no longer use client side target anywhere, we should remove the preference and do some cleanups.

Get rid of tests covering things that work only with client side targets, like tests against will-navigate/navigate on the target actor.
We could probably remove:

  • Descriptor.getTarget methods.
  • message manager connector (used by TabDescriptor.getTarget)
  • some codepath in storage actor which is only for client side targets
  • we probably have some other code that is only used when devtools.target-switching.server.enabled=false

The Bugbug bot thinks this bug should belong to the 'DevTools::Framework' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Framework
Whiteboard: dt-perf-stability-triage

We can also simplify the shared-head.js navigateTo helper which can always assume a target switch is happening. See https://phabricator.services.mozilla.com/D123604#inline-682341

See Also: → 1766485

The situation around devtools.target-switching.server.enabled is not 100% clear to me. The preference is never set to true, except in some tests. It feels like we might be using the preference to force using client side targets for the regular toolbox, because that makes it easier? But since the preference is never set to true in practice, it's not clear that we are really testing a relevant codepath.

Depends on: 1785106
Depends on: 1578975

This removes the devtools.target-switching.server.enabled preference,
which was only having an impact on tab debugging.
Toolboxes other than tabs aren't yet using "server side target switching",
which will probably happen once we enable EFT in these and
we would probably not use a preference for enabling this.

This remove all assertions in tests covering client side target switching.
And it removed a couple of tests that became irrelevant.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Depends on: 1766485

Comment on attachment 9312445 [details]
Bug 1721852 - [devtools] Consider server side target switching always enabled for tab toolboxes.

Revision D166921 was moved to bug 1766485. Setting attachment 9312445 [details] to obsolete.

Attachment #9312445 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: