Open Bug 1647568 Opened 5 years ago Updated 3 years ago

Add support for image bitmap to ContentDelegate.ContextElement

Categories

(GeckoView :: General, enhancement, P3)

Unspecified
Android
enhancement

Tracking

(Not tracked)

People

(Reporter: jonalmeida, Unassigned)

References

Details

When we long-press an HTML element, we get a ContextElement of the source URI, but not the image.

If we want to share an image then, we would need to download it again before using the Android system to perform actions like sharing to other apps. This seems like duplicate work to download an image that is already in web content.

It would be nice, if the ContextElement return with the image itself to be used.

This was possible in Focus WebView as far as I recall.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [geckoview:m88]

Figure out how important this is based on telemetry and then prioritise.

Priority: P2 → P3
Whiteboard: [geckoview:m88]

In Android Components, our solution for this is to use http client to download the image for sharing and rely on the network caching to avoid re-downloading the content.

You can see this working in your ShareDownloadFeature.

Any progress on this?

Tasks and enhancements 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.