Can't clear messages in Browser Console/Browser Toolbox if target was destroyed
Categories
(DevTools :: Console, defect, P1)
Tracking
(Fission Milestone:M6, firefox77 verified)
Tracking | Status | |
---|---|---|
firefox77 | --- | verified |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
(Whiteboard: dt-fission-m2-mvp)
Attachments
(1 file)
Steps to reproduce
- In firefox, navigate to https://nchevobbe.github.io/demo/console-test-app.html
- Click on the console.log button to log some messages
- Open the browser console
- Close the https://nchevobbe.github.io/demo/console-test-app.html tab
- In the browser console, try to clear the output
Expected results
The output gets cleared
Actual results
The output isn't cleared, and we get the following message:
Error: Can not send request 'release' because front 'obj' is already destroyed.
Closing the tab is probably destroying the target, which means we release all the related fronts and actors. But then, when clearing the output, we'll try to release the fronts for the rendered objects, which may already be destroyed.
Assignee | ||
Comment 1•4 years ago
|
||
With the new architecture, it might happen that a message (and the ObjectFronts
it holds), are still displayed in the Browser Console / Browser Toolbox Console,
even if the target of those object fronts was destroyed.
In such case, when the user would legimitely try to clear the console, we'd try
to release the fronts that were already destroyed, which would throw an exception
and leave the console in a bad state.
This patch simply check that the fronts are still alive when we try to release
them, and adds a test (that was failing without that patch, with fission ON) for
the Browser Console.
Comment 2•4 years ago
|
||
Tracking Fission DevTools bugs for Fission Nightly (M6) milestone
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6b974e1bf99a Fix issue when clearing output with messages from destroyed targets. r=jdescottes.
Comment 4•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Reproduced the issue using Firefox 77.0a1 (20200409131623) on Windows 10x64.
The issue is verified fixed with Firefox 77.0.1 (20200602222727) and 78.0.1 (20200630195452) on Windows 10x64.
Description
•