Closed
Bug 1064397
Opened 10 years ago
Closed 10 years ago
CardsHelper.getIconURIForApp returns bad url given an absolute, off-origin URL
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S4 (12sep)
People
(Reporter: sfoster, Assigned: sfoster)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file, 1 obsolete file)
e.me apps return a .icon url like "http://api.everything.me/partners/1.0/Icon/get?id=26&iconFormat=20&apiKey=...", which is getting badly resolved/concat-ed with the app origin to produce "http://wikipedia.flyapps.mehttp://api.everything.me/partners/1.0/Icon/get?id=26&iconFormat=20&apiKey=..."
Assignee | ||
Comment 1•10 years ago
|
||
Rather than assuming all non-data URIs are relative paths, this change explicitly checks for leading '/' - which is the only expected and handled case in this block. The getOriginObject a) wasnt used outside this file, and b) was really just returning a URL-like hash with protocol etc. properties. So I got rid of it in favour of using URL.
Attachment #8485851 -
Flags: review?(etienne)
Comment 2•10 years ago
|
||
Comment on attachment 8485851 [details] [review] Fix handling for absolute icon URLs used by e.me app windows lgtm :)
Attachment #8485851 -
Flags: review?(etienne) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Merged to master: https://github.com/mozilla-b2g/gaia/commit/cebf9e694d4536fbc4012a1fe1f60d31adf8e628 Original commit: https://github.com/mozilla-b2g/gaia/commit/0294015fca59f4f8d08ae8c946c7a3fccce32310 ..but I was looking at the wrong tbpl results. Will backout and try again shortly.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•10 years ago
|
||
Backed out: https://github.com/mozilla-b2g/gaia/commit/46e35fd6adc8f89d1b058ff84312cb38242c4658
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 5•10 years ago
|
||
Carrying Etienne's r+, this PR fixes unit tests by handling empty src urls which get passed in the tests.
Attachment #8485851 -
Attachment is obsolete: true
Attachment #8485971 -
Flags: review+
Assignee | ||
Comment 6•10 years ago
|
||
Nice green Gaia-Try run: https://tbpl.mozilla.org/?rev=b36e24acdc6de8516d6cff699e521a14cd6f03bf&tree=Gaia-Try Merged: https://github.com/mozilla-b2g/gaia/commit/fc87b188d69e7c24871a1d0ea1ab2fb50a0ac43e Commit: https://github.com/mozilla-b2g/gaia/commit/28ac34de705dc65ddb833a071381468907896273
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → sfoster
Updated•10 years ago
|
Target Milestone: --- → 2.1 S4 (12sep)
You need to log in
before you can comment on or make changes to this bug.
Description
•