Closed Bug 1608228 Opened 5 years ago Closed 3 months ago

Capture only content part of the profiler screenshot (or crop it?)

Categories

(Core :: Gecko Profiler, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX
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.

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? :)

Flags: needinfo?(mstange)
Severity: normal → S3

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.

Flags: needinfo?(mstange.moz)

We're not planning to do this at the moment.

Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.