On Mon, Apr 18, 2016 at 2:06 PM, Jip de Beer <jip.de.b...@gmail.com> wrote: > I just checked and calling drawWindow() doesn't output the entire page in the > display-list dumps. It's as if this operation doesn't trigger the same things > a regular render operation does.
It worked for me. Here's what I did specifically: 1. Ran Firefox Nightly. 2. Switched to non-e10s mode (just to be able to play around with CanvasRenderingContext2D.drawWindow() more easily). 3. Went to about:config and turned on the pref "layout.display-list.dump". 4. Opened Developer Tools, and in settings, checked "Enable browser chrome and add-on debugging toolboxes" and "Enable remote debugging". 5. Opened the Browser Toolbox (from Tools -> Web Developer). 6. Loaded a page that's vertically scrollable. 7. In the Inspector tab of the Browser Toolbox, added a canvas element to the page. 8. In the Console tab of the Browser Toolbox, ran context.drawWindow(content, 0, 0, x, y, "rgba(0, 0, 0, 0)"); where "context" was the context of the canvas element I added, and "y" was some height larger than my browser window's height. The result was a display list dump for the entire rectangle (0, 0, x, y) being printed to standard error, including areas not visible in the browser window. If you're seeing different behaviour, we should investigate why. Hope that helps, Botond _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform