← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1491299] [NEW] downloadRequested doesn’t expose raw data if already available locally

 

Public bug reported:

The context menu exposes a saveMedia() method that allows downloading
the associated media element.

In the case of an image, when invoked there is a good chance that the
image has already been downloaded to be rendered by the WebView, so
feeding its URL to the downloadRequested signal means that the image
would be downloaded again, which is sub-optimal, especially when on a
metered connection.

For images, there should be a way to get at the raw data without re-
downloading it, if available.

For canvas elements, the downloadRequested signal could expose a data:
URI embedding the image data.

Not sure whether the same applies to video/audio.

** Affects: oxide
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1491299

Title:
  downloadRequested doesn’t expose raw data if already available locally

Status in Oxide:
  New

Bug description:
  The context menu exposes a saveMedia() method that allows downloading
  the associated media element.

  In the case of an image, when invoked there is a good chance that the
  image has already been downloaded to be rendered by the WebView, so
  feeding its URL to the downloadRequested signal means that the image
  would be downloaded again, which is sub-optimal, especially when on a
  metered connection.

  For images, there should be a way to get at the raw data without re-
  downloading it, if available.

  For canvas elements, the downloadRequested signal could expose a data:
  URI embedding the image data.

  Not sure whether the same applies to video/audio.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1491299/+subscriptions