Closed Bug 815491 Opened 12 years ago Closed 11 years ago

[Settings] Settings app assumes data uris when displaying icons in app permissions

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g18+)

RESOLVED FIXED
blocking-b2g -
Tracking Status
b2g18 + ---

People

(Reporter: jsmith, Assigned: daleharvey)

References

Details

(Whiteboard: u=fx-os-user c=may-6-17 p=1 [tef-triage] leorun4 [LeoVB+])

Attachments

(2 files, 1 obsolete file)

Build:

Device - Unagi

Hashes

  <project name="gaia" path="gaia" remote="b2g" revision="176aea9cba4965594350f282751758b14d2624fc"/>
  <project name="releases/gecko" path="gecko" remote="mozillaorg" revision="4eaacd3fad7b6da220de206c0013dc0f307455c9"/>

Steps:

1. Install an app from testmanifest.com
2. Go to settings --> app permissions

Expected:

The app icon should be seen.

Actual:

No app icon is seen.
Keywords: polish
Whiteboard: [visual design]
Is this even a visual design issue? Shouldn't the icon be in the manifest?
Keywords: polish
Whiteboard: [visual design]
(In reply to Patryk Adamczyk [:patryk] UX from comment #1)
> Is this even a visual design issue? Shouldn't the icon be in the manifest?

Probably isn't. It's a functional issue where we don't show the icon at all.

Marking for tracking, but not blocking.
tracking-b2g18: --- → ?
As far as I remember the icons in permissions page were linked directly so if you specified a url in your manifest and you are offline, icons would not display, it was something that worried me before (not great for performance and will break offline)

Will verify shortly
Assignee: nobody → dale
Whiteboard: u=fx-os-user c=may-6-17 p=0
Whiteboard: u=fx-os-user c=may-6-17 p=0 → u=fx-os-user c=may-6-17 p=1
Attachment #746975 - Flags: review?(kaze)
My diagnoses was wrong, this was simply not expect http urls for icons, the patch fixes it, but also filed a follow up 

https://bugzilla.mozilla.org/show_bug.cgi?id=869969
blocking-b2g: --- → tef?
Summary: [Settings] No app icon is seen in the app permissions page when installing apps from testmanifest.com → [Settings] Settings app assumes data uris when displaying icons in app permissions
This is just polish, not blocker in my opinion.
Whiteboard: u=fx-os-user c=may-6-17 p=1 → u=fx-os-user c=may-6-17 p=1 [tef-triage]
Comment on attachment 746975 [details] [diff] [review]
Only add origin to relative urls.

Review of attachment 746975 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me — I just have a suggestion regarding the URI scheme detection.

::: apps/settings/js/apps.js
@@ +169,3 @@
>  
> +        // Adding origin if it is a relative URL
> +        if (['http', 'https', 'data'].indexOf(protocol) === -1) {

Nit: maybe we could use a regexp instead?

    if (/^(http|https|data):/.test(iconURL))
Attachment #746975 - Flags: review?(kaze) → review+
Need-info? on the blocking request, at this point all new blocker require a partner champion and a milestone by which they must be resolved or risk slipping ship dates.  Can you please state the timeline expectation here if this is to become a blocker?
Flags: needinfo?(buri.blff)
Updated to fix nit
Attachment #746975 - Attachment is obsolete: true
Merged in: https://github.com/mozilla-b2g/gaia/commit/80f707869d6a031e7bce9ac8ba63270102173be1

Clearing the needinfo too
Flags: needinfo?(buri.blff)
Sorry forgot to resolve
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Sand Trap and Zombie Lines are fixed,,But same issue appeared on hosted apps:accuweather,facebook and notes!!
From the QA perspective - polish fix, not a blocker. We should consider nominating this for uplift though.
No response to needinfo, given comment comment 9 and comment 16 not blocking.
blocking-b2g: tef? → -
This issue is still seen in Leo device. 

I enabled data connection and downloaded few apps (Airbnb, Accuweather, Facebook etc.,)from the Marketplace. 
Apps found in Settings App Permissions has few missed icons (the same apps were missing icon when wi-fi is also enabled). 

The user can although see that the icons are trying to load on the App permission list during enabled data connection. Please see screenshots.
Whiteboard: u=fx-os-user c=may-6-17 p=1 [tef-triage] → u=fx-os-user c=may-6-17 p=1 [tef-triage] leorun4
Here are the environmental variables used for testing
Leo Build ID: 
Build ID: 20130625070217
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/29933d1937db
Gaia: 1436e2778b90bd74635b0b94d1cf8ccb0d71b60c
Platform Version: 18.1
RIL Version: 01.01.00.019.138
Attached image Screenshot
Tested on latest nightly.  

Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/282b5c37cf8d
Gaia   e2ef782119b7e79fc62c48d36f0c36909d982988
BuildID 20130712070210
Version 18.0

Still NOT fixed.  Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to John Hammink from comment #21)
> Tested on latest nightly.  
> 
> Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/282b5c37cf8d
> Gaia   e2ef782119b7e79fc62c48d36f0c36909d982988
> BuildID 20130712070210
> Version 18.0
> 
> Still NOT fixed.  Reopening.

The fix here has only landed on master, not v1-train, so it's expected that this is still reproducing on that branch.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Please land in v1-train.
Whiteboard: u=fx-os-user c=may-6-17 p=1 [tef-triage] leorun4 → u=fx-os-user c=may-6-17 p=1 [tef-triage] leorun4 [LeoVB+]
hi,jason

Has this issue been landed in V1.1HD branch?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: