Closed Bug 980567 Opened 12 years ago Closed 11 years ago

[B2G][Notifications API] Relative icon URLs aren't shown correctly in status bar

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.2 affected, b2g-v1.3 affected, b2g-v1.4 affected)

RESOLVED FIXED
2.1 S5 (26sep)
Tracking Status
b2g-v1.2 --- affected
b2g-v1.3 --- affected
b2g-v1.4 --- affected

People

(Reporter: sarsenyev, Assigned: robertbindar)

References

Details

(Whiteboard: permafail)

Attachments

(2 files)

Attached image 2014-03-06-13-51-15.png
Description: When selecting "Show Notification" with icon "qalogo" (no http), the logo is showing a broken image Repro Steps: 1) Update a Buri to BuildID: 20140306040204 2) Open browser and go to http://mozqa.com/qa-testcase-data/webapi/notifications/index.html 3) after permission is granted select "qalogo.png" (no http) 4) Tap the "Show notification" 5) Slide down the status bar to see the notificaton Actual: The broken image logo appears in the status bar Expected: Valid logo with correct image is displayed in the status bar 1.4 Environmental Variables: Device: Buri 1.4 MOZ BuildID: 20140306040204 Gaia: 9cb35e701df44766d9b3560b0defe0a401a0ecdd Gecko: 8122ffa9e1aa Version: 30.0a1 Firmware Version: v1.2-device.cfg Repro frequency: 100 Link to failed test case:https://moztrap.mozilla.org/manage/case/9932/ See attached: screenshot
The issue reproduces with 1.3 and 1.2 Buri device 1.3 Environmental Variables: Device: Buri 1.3 MOZ BuildID: 20140306004002 Gaia: 8aed4fafbaeb86d6884d31ce7d3cbeb87bcbf837 Gecko: 3d2d84d52141 Version: 28.0 Firmware Version: v1.2-device.cfg 1.2 Environmental Variables: Device: Buri 1.2 MOZ BuildID: 20140220004002 Gaia: 539a25e1887b902b8b25038c547048e691bd97f6 Gecko: 2ea6a65eea23 Version: 26.0 Firmware Version: v1.2-device.cfg
Summary: [B2G][Notifications API] Logo isn't shown correctly in status bar → [B2G][Notifications API] Logo (no http) isn't shown correctly in status bar
Something tells me this is a bug in my test site. Mike - Do you see anything obvious I'm not doing right here? I'm trying to include a relative icon URL for the icon in a notification.
Flags: needinfo?(mhenretty)
Nope, I didn't see anything wrong in your test case, and relative URLS should work according to spec [1]. I would say this is a bug. Also of note, it seems that if I first show a notification using the absolute URL, and then show a notification using the relative URL, the notification pop-up will show the old icon, but in the status bar it will show the broken image. Is this a known bug Jason? 1.) http://notifications.spec.whatwg.org/#constructors
Flags: needinfo?(mhenretty)
Summary: [B2G][Notifications API] Logo (no http) isn't shown correctly in status bar → [B2G][Notifications API] Relative icon URLs aren't shown correctly in status bar
The issue was reproduced in build below, some of the icons on the provided test site does not display icons. Environmental Variables Device: Buri v1.4 Aurora MOZ RIL Build ID: 20140326000201 Gecko: https://hg.mozilla.org/releases/mozilla-aurora/rev/4889124accfa Gaia: 7e705dd4718d528974d99ac31866318d7e201152 Platform Version: 30.0a2 Base Build: v1.2-device.cfg
Whiteboard: burirun1.4-1 → burirun1.4-1, burirun1.4-2
I got the same issue using local files too.
Whiteboard: burirun1.4-1, burirun1.4-2 → permafail
The URL is properly resolved there, we just need to actually pass it.
Attachment #8491668 - Flags: review?(mhenretty)
Assignee: nobody → robertbindar
Comment on attachment 8491668 [details] [diff] [review] icon_url_fix.patch LGTM
Attachment #8491668 - Flags: review?(mhenretty) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S5 (26sep)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: