Open Bug 1408354 Opened 3 years ago Updated 2 years ago
Toolbox resolution on console
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 webconsole.open DAMP test. showToolbox resolves one this method resolves: http://searchfox.org/mozilla-central/source/devtools/client/webconsole/panel.js#44-93 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("http://www.w3.org/1999/xhtml", "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");
You need to log in before you can comment on or make changes to this bug.