Closed Bug 1624308 Opened 4 years ago Closed 4 years ago

select top-level context if selected context is removed from the context list

Categories

(DevTools :: Framework, defect, P1)

defect

Tracking

(Fission Milestone:M6c, firefox76 fixed)

RESOLVED FIXED
Firefox 76
Fission Milestone M6c
Tracking Status
firefox76 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(1 file)

Steps to reproduce

  1. With the context selection pref turned on, open the console in the regular window, as well as the browser toolbox
  2. In the regular console, evaluate the following to start a worker
var workerBlob = new Blob(
    [workerRunner.toString().replace(/^function .+\{?|\}$/g, '')],
    { type:'text/javascript' }
  );
var workerBlobUrl = URL.createObjectURL(workerBlob);
var worker = new Worker(workerBlobUrl);
worker.onmessage = function(event) {};
worker.postMessage('foo');
function workerRunner() {
  self.onmessage = function(event) {
    self.postMessage('launched worker via blob URL!');
  }
};
  1. In the browser toolbox, the evaluation context selector should have this new worker in the list, select it
  2. Go back to the regular console, and evaluate worker.terminate() to stop the worker.

Expected results

In the browser toolbox, the context selector switched to the top-level context

Actual results

The selected context still is the worker we terminated, even if it doesn't appear in the context list


Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/65e34e9a513b
Select top-level context if selected context is removed from the context list. r=jlast.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76

Tracking dt-fission-m2-mvp bugs for Fission Nightly milestone (M6c)

Fission Milestone: --- → M6c
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: