Capture only content part of the profiler screenshot (or crop it?)
Categories
(Core :: Gecko Profiler, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | affected |
People
(Reporter: canova, Unassigned)
References
Details
Currently we are capturing all the window content while capturing a profiler screenshot. That's not great for "web developer" mode since we are going to only show the content of the "web content" to them. Ideally we should be able to either capture those screenshots without the chrome content or we should be able to crop it somehow.
Reporter | ||
Comment 1•5 years ago
|
||
Hi Markus, I think you know the implementation details of screenshots. Do you know/think if that's possible? If so, do you have any pointers? :)
Updated•2 years ago
|
Comment 2•2 years ago
|
||
It's surely doable, but not easily. Screenshots are captured at the end of composition, at a time by which we've mostly forgotten which pixels came from where. We could presumably store a rectangle for the content subrect of the browser, but I'm not sure where that information would come from and where it would be stored.
Cropping the screenshot also wouldn't get rid of overlapping urlbar dropdowns, for example.
Comment 3•3 months ago
|
||
We're not planning to do this at the moment.
Description
•