Closed Bug 1696471 Opened 3 years ago Closed 3 years ago

Emit target-destroyed-form for all cases where we used to emit tabDetached

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(Fission Milestone:M7, firefox88 fixed)

RESOLVED FIXED
88 Branch
Fission Milestone M7
Tracking Status
firefox88 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(3 files)

In order to be able to complete bug 1631451 and remove tabDetached in favor of target-destroyed-form, we ought to emit target-destroyed-form for all cases where we currently emit tabDetached.

When removing tabDetached I identified two cases:

  • top level tab target, when doing a process switch is missing such event
  • content process targets are used to have tabDetached on teardown (this isn't something we do for all targets)

This is a workaround, until the top level target uses the JSWindowActor codepath.
This will help get rid of tabDetached in favor of target-destroyed-form.

There was a typo in item.watcher != watcher...

We are currently receiving tabDetached for content process targets
when we destroy them via:
Services.ppmm.broadcastAsyncMessage("debug:destroy-process-script")
done from process-helper and we stop watching for process targets.
Tests now depends on this behavior.

So I'm trying to replicate this behavior in order to later get rid of tabDetached
in favor of target-destroyed-form.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c4476f926c4f
[devtools] Notify about top level target destruction via watcher's target-destroyed-form. r=nchevobbe,jdescottes
https://hg.mozilla.org/integration/autoland/rev/63799ea4103b
[devtools] Properly close transports for content process targets. r=nchevobbe,jdescottes
https://hg.mozilla.org/integration/autoland/rev/1acce6920635
[devtools] Notify about content process target destruction via watcher's target-destroyed-form. r=nchevobbe,jdescottes
Summary: Emit target-available-form for all cases where we used to emit tabDetached → Emit target-destroyed-form for all cases where we used to emit tabDetached
Fission Milestone: --- → M7
Whiteboard: dt-fission-m3-mvp
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: