The Firefox drawWindow()
-Function expects as first parameter a XUL content-window as provided by the low-level api tab utils.
However with the introduction of the multiprocess architecture in Firefox (codenamed electrolysis or e10s) directly accessing tabs via the low-level api is no longer possible. While there are compatibility shims available, it is explicitly stated that they do not support plattform APIs that expect DOM objects.
On the other hand drawWindow()
cannot be used in a content script since it is "chrome only".
So my questions are these:
- How am I supposed to use
drawWindow()
if I cannot use it outside of chrome and cannot get a contentWindow-object within chrome? - What are my other options to let my addon take screenshots of websites within multiprocess Firefox?
Our current approach is based on the answer to this SO question. However it will not work with multiprocess Firefox