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

Bug #1413964 reported by Michael Sheldon on 2015-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Undecided
Olivier Tilloy
webbrowser-app
Fix Released
Medium
Michael Sheldon
ubuntu-download-manager (Ubuntu)
Medium
Unassigned
webbrowser-app (Ubuntu)
Undecided
Unassigned
webbrowser-app (Ubuntu RTM)
Undecided
Olivier Tilloy

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>

Related branches

description: updated
Manuel de la Peña (mandel) wrote :

Adding udm to the bug because we are doing a workaround in it to deal with this bug there. Ideally udm would only receive a uri of the form 'data:etc..'.

Olivier Tilloy (osomon) on 2015-01-23
affects: oxide → webbrowser-app
Olivier Tilloy (osomon) on 2015-01-23
Changed in webbrowser-app:
status: New → In Progress
assignee: nobody → Michael Sheldon (michael-sheldon)
importance: Undecided → Medium
Chris Coulson (chrisccoulson) wrote :

Oh, we really need a proper way in Oxide to do this :/

Changed in ubuntu-download-manager:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Manuel de la Peña (mandel)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+15.04.20150123-0ubuntu1

---------------
webbrowser-app (0.23+15.04.20150123-0ubuntu1) vivid; urgency=low

  [ Michael Sheldon ]
  * Keep data URIs in their original form when retrieving image URLs
    (LP: #1413964)

  [ Olivier Tilloy ]
  * Update translation template.
  * Do not ever change the contents of the address bar or remove focus
    from it while the user is editing it. (LP: #1373918)
 -- Ubuntu daily release <email address hidden> Fri, 23 Jan 2015 14:32:25 +0000

Changed in webbrowser-app (Ubuntu):
status: New → Fix Released
Olivier Tilloy (osomon) on 2015-01-23
Changed in webbrowser-app:
status: In Progress → Fix Released
Changed in webbrowser-app (Ubuntu RTM):
status: New → In Progress
assignee: nobody → Olivier Tilloy (osomon)
Bill Filler (bfiller) on 2015-01-23
Changed in canonical-devices-system-image:
milestone: none → ww05-2015
Olivier Tilloy (osomon) on 2015-01-23
Changed in canonical-devices-system-image:
assignee: nobody → Olivier Tilloy (osomon)
Bill Filler (bfiller) wrote :

this is related to the dataURI fix targetted for ww05 so adding this as well

Olivier Tilloy (osomon) on 2015-01-23
Changed in canonical-devices-system-image:
status: New → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+15.04.20150123~rtm-0ubuntu1

---------------
webbrowser-app (0.23+15.04.20150123~rtm-0ubuntu1) 14.09; urgency=low

  [ Michael Sheldon ]
  * Keep data URIs in their original form when retrieving image URLs
    (LP: #1413964)

  [ Olivier Tilloy ]
  * Do not ever change the contents of the address bar or remove focus
    from it while the user is editing it. (LP: #1373918)
 -- Ubuntu daily release <email address hidden> Fri, 23 Jan 2015 17:04:06 +0000

Changed in webbrowser-app (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
Olivier Tilloy (osomon) wrote :

Note: the workaround in udm shouldn’t be needed any longer, now that the bug has been fixed in webbrowser-app.

Changed in ubuntu-download-manager (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
no longer affects: ubuntu-download-manager
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers