Open Bug 1408354 Opened 3 years ago Updated 2 years ago

Improve showToolbox resolution on console


(DevTools :: Console, enhancement, P2)



(Not tracked)


(Reporter: ochameau, Unassigned)


(Blocks 1 open bug)


gDevTools.showToolbox resolves too early for the console.
The filter bar isn't completely rendered and the messages seem to be loaded but we are not scrolled to bottom.
We may just miss one event loop spin.

We should do that to improve the telemetry probe and DAMP test.

showToolbox resolves one this method resolves:

In order to debug that, you can compute a screenshot at any point with this code:
  let window = Services.wm.getMostRecentWindow(null);
  let canvas = window.document.createElementNS("", "html:canvas");
  let context = canvas.getContext("2d");
  canvas.width = window.innerWidth;
  canvas.height = window.innerHeight;
  context.drawWindow(window, 0, 0, canvas.width, canvas.height, "rgb(255, 255, 255)");
  dump(">> "+canvas.toDataURL()+"\n");
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.