Unsafe CPOWs are about to be outlawed in browser code

2016-01-20 Thread Mike Conley
(cross-posted to both dev-platform and firefox-dev) TL;DR: Shortly, I’ll be flipping a pref to outlaw unsafe CPOWs in almost all browser code. Unsafe CPOWs inside add-on scopes should continue to work properly. If you start seeing "unsafe CPOW usage forbidden” errors being throw for a feature you

Re: Proposed changes to Talos (performance) alerting

2016-01-20 Thread Mike Conley
>> >> As Joel mentioned, it's pretty easy to schedule profiling runs for talos >> using trychooser. Scheduling a profiling run as part of the >> regression-filing process is something we could consider doing, if >> there's a broad consensus it would be useful (I'm always wary of putting >> extra l

Re: Taking screenshots of single elements (XUL/XULRunner)

2016-01-20 Thread M . Bauermeister
One more thing. Is there a way to take screenshots of XUL panels with the above technique, as well? Since they're not part of the window's DOM they obviously don't show up on the canvas either. ___ dev-platform mailing list dev-platform@lists.mozilla

Re: Taking screenshots of single elements (XUL/XULRunner)

2016-01-20 Thread M . Bauermeister
Spot on, Boris! Not sure why I never tried wrapping it into a function call :head->wall: Thanks for the help! ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Taking screenshots of single elements (XUL/XULRunner)

2016-01-20 Thread Boris Zbarsky
On 1/20/16 4:50 AM, m.bauermeis...@sto.com wrote: Is there something wrong with how I'm trying to copy the contents of the window to the canvas? Try doing it after the load event fires? XUL doesn't start layout until the whole document is parsed, iirc, but your script is running before that

Re: Taking screenshots of single elements (XUL/XULRunner)

2016-01-20 Thread M . Bauermeister
Nope. That's definitely not the problem. I guess I should've mentioned it earlier: I'm running an old build of Xulrunner. Version 3.6.20, to be exact. I'm running my code inside a fork of XULExplorer I created and 3.6.20 is the latest I can go so far, without running into any issues. Canvas2D

Re: Taking screenshots of single elements (XUL/XULRunner)

2016-01-20 Thread Patrick Brosset
Hm, could this be related to e10s? I remember we had to do some work to make the devtools screenshot command e10s-compatible. Now it runs in the content process, whereas before it would run in the parent process. Trying to take a screenshot from the parent process with e10s enabled would end up wit

Re: e10s

2016-01-20 Thread James Graham
On 09/01/16 22:29, James Graham wrote: At this point I don't see any real advantages to trying to move to manifestparser for all web-platform-tests and many drawbacks, so I don't think it will happen. I am also not convinced that it's very relevant to the problem at hand; I don't see how the diff

Re: Taking screenshots of single elements (XUL/XULRunner)

2016-01-20 Thread M . Bauermeister
I'm not sure what exactly I'm doing wrong but neither drawWindow, nor asyncDrawXULElement seem to work for me. Not even for screenshots of the whole window. "Borrowing" from capture.js/screenshot.js also made me none the wiser. Is there something wrong with how I'm trying to copy the contents