Closed Bug 1548559 Opened 6 years ago Closed 5 years ago

Introduce Resource API for selecting a target

Categories

(DevTools :: Framework, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: yulia, Assigned: yulia)

References

Details

It is very expensive to instantiate targets. We should have an ability to instantiate a target when necessary, for example when selecting the target. For this purpose we need a select api

It might look something like the resource actor api: https://phabricator.services.mozilla.com/D4336

But it should be more light weight. The type signature of the function might look like this (pseudo flow code). It should return a fully instantiated target front

type TargetDescriptor = {
  url: String,
  ...
}


function select(descriptor: TargetDescriptor) : TargetFront {}
Type: defect → enhancement
Priority: -- → P3
No longer blocks: dt-fission-framework
No longer blocks: dt-fission
Whiteboard: dt-fission

Closing this as this pattern is solved by the descriptor's getTarget function

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.