Emulation front shows error "this.targetActor.docShell is null" when closing RDM.
Categories
(DevTools :: Responsive Design Mode, defect, P3)
Tracking
(firefox72 fixed)
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: mtigley, Assigned: mtigley)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
This is caused by the emulation actor instantiated in RDM calling stopPrintMediaSimulation
in its destroy method. By the time stopEmulatingMedium
is called, the targetActor is already null. This is highlighting an issue where RDM creates its own Emulation Actor and as a result, is calling print simulation methods when RDM closes and cleans up its actors even though print simulation itself isn't enabled in RDM, but from the toolbox instead.
A quick fix would be to only call stopPrintMediaSimulation
in destroy if the member variable _printSimulationEnabled
is true. We know right now that RDM's version of this EmulationActor will never have _printSimulationEnabled
true since it never toggles it on, to begin with. Other options are to have the client responsible for calling stopPrintMediaSimulation
when needed, or to move print simulation into its own actor.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Comment 3•5 years ago
|
||
bugherder |
Description
•