← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1413964] [NEW] data URIs have parent URL added to them when passed to webview's contextualData

 

Public bug reported:

If you visit http://mikeasoft.com/~mike/testdata/ you'll see an image
which is constructed from a data URI (e.g.
data:image/jpeg;base64,<encoded data>)

When requesting this image's URI via "contextualData.href" the returned
URI has been treated as if it was a relative link, adding the parent
domain and path to it, forming an incorrect URI like:

http://mikeasoft.com/~mike/testdata/data:image/jpeg;base64,<encoded
data>

When it should just be returning the data URI:

data:image/jpeg;base64,<encoded data>

** Affects: oxide
     Importance: Undecided
         Status: New

** Description changed:

  If you visit http://mikeasoft.com/~mike/testdata/ you'll see an image
  which is constructed from a data URI (e.g.
  data:image/jpeg;base64,<encoded data>)
  
  When requesting this image's URI via "contextualData.href" the returned
- URI has been treated as if it was a relative link, the returned data has
- the domain, and path added to it, forming an incorrect URI like:
+ URI has been treated as if it was a relative link, adding the parent
+ domain and path to it, forming an incorrect URI like:
  
  http://mikeasoft.com/~mike/testdata/data:image/jpeg;base64,<encoded
  data>
  
  When it should just be returning the data URI:
  
  data:image/jpeg;base64,<encoded data>

-- 
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/1413964

Title:
  data URIs have parent URL added to them when passed to webview's
  contextualData

Status in Oxide Webview:
  New

Bug description:
  If you visit http://mikeasoft.com/~mike/testdata/ you'll see an image
  which is constructed from a data URI (e.g.
  data:image/jpeg;base64,<encoded data>)

  When requesting this image's URI via "contextualData.href" the
  returned URI has been treated as if it was a relative link, adding the
  parent domain and path to it, forming an incorrect URI like:

  http://mikeasoft.com/~mike/testdata/data:image/jpeg;base64,<encoded
  data>

  When it should just be returning the data URI:

  data:image/jpeg;base64,<encoded data>

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


Follow ups

References