Open Bug 1710666 Opened 3 years ago Updated 1 year ago

Offer screenshot API to Gecko

Categories

(GeckoView :: General, task, P3)

Unspecified
All

Tracking

(Not tracked)

People

(Reporter: agi, Unassigned)

Details

Attachments

(1 obsolete file)

Web Driver / Marionette take periodic screnshots of the browser when running tests. Today these screenshots are taken from the Gecko side so they don't include any of the browser UI. We should provide a hook to Gecko to take a screenshot of the entire Android screen from the java side so that it includes the App UI.

Something like @WrapForJNI GeckoAppShell::screenshot or whatever should be enough.

Whiteboard: [geckoview:m91?]

Note that Marionette works with two contexts. By default content scope is active, which only allows screenshots from the current content browser and should actually work. But when switching to chrome scope, which interacts with the Firefox ui, this specific requirement will be necessary.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [geckoview:m91?] → [geckoview:m92?]
Whiteboard: [geckoview:m92?] → [geckoview:m93?]

Hey Henrik, Olivia and I were looking into this and we have a question, would you call this method from C++ or JS? could you link to the code that would call this (if it exists).

Flags: needinfo?(hskupin)

All Marionette is written in JS, so nothing would be called from the C++/Rust side. Capturing the browser for both content or chrome is currently done via browsingContext.currentWindowGlobal.drawSnapshot(). It would be great if that could be the same for Android. If not, we would have to adjust the code.

Flags: needinfo?(hskupin)
Assignee: nobody → ohall

Existing screenshot features capture GeckoView portion without UI elements.
This feature also captures the UI elements.

Priority: P2 → P1
Whiteboard: [geckoview:m93?] → [geckoview:m97]

Removed from release. Java side is done, needs integration into Gecko. We will come back to this at a later date as other work has greater priority.

Priority: P1 → P3
Whiteboard: [geckoview:m97]
Attachment #9251416 - Attachment is obsolete: true
Assignee: ohall → nobody

Tasks should have severity N/A.

Severity: S3 → N/A
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: