Closed Bug 1305430 Opened 8 years ago Closed 8 years ago

Favicon is displayed on media control notification only after the "pause" button is tapped

Categories

(Firefox for Android Graveyard :: Audio/Video, defect, P2)

52 Branch
ARM
Android
defect

Tracking

(firefox52 verified)

VERIFIED FIXED
Firefox 52
Tracking Status
firefox52 --- verified

People

(Reporter: sflorean, Assigned: alwu)

References

Details

(Whiteboard: [TPE-1])

Attachments

(2 files)

Environment: Device: Nexus 5 (Android 6.0.1); Build: Nightly 52.0a1 (2016-09-24); Steps to reproduce: 1. Start Firefox with a clean profile; 2. Go to www.guardian.com; 3. Go to the android notification bar; 4. Tap the pause button from the media control notification. Expected result: Favicon is displayed on media control when the video starts playing. Actual result: Favicon is displayed on media control only after the "pause" button is tapped. Notes: Please see the video: https://youtu.be/XAWcpn4oYBw
Assignee: nobody → s.kaspari
Status: NEW → ASSIGNED
Blocks: 1303292
This seems to happen for the first load of the page only, right? After the icon has been loaded and displayed once, it works for subsequent visits of the page, right?
Assignee: s.kaspari → nobody
Status: ASSIGNED → NEW
Whiteboard: [TPE-1]
(In reply to Sebastian Kaspari (:sebastian) from comment #1) > This seems to happen for the first load of the page only, right? After the > icon has been loaded and displayed once, it works for subsequent visits of > the page, right? Yes, and with clean profile it's reproducible. If I tap on play/pause button from media control notification the favicon is displayed for that media content every time I visit the page.
Flags: needinfo?(alwu)
Assignee: nobody → alwu
Flags: needinfo?(alwu)
Attachment #8797098 - Flags: review?(s.kaspari)
Attachment #8797099 - Flags: review?(s.kaspari)
Priority: -- → P2
Comment on attachment 8797098 [details] Bug 1305430 - part1 : send the notification again after tab got its favicon. https://reviewboard.mozilla.org/r/82734/#review82198 ::: mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:61 (Diff revision 1) > > private static WeakReference<Tab> mTabReference = new WeakReference<>(null); > > private int minCoverSize; > private int coverSize; > + private boolean mUseDefaultCoverIcon; I wonder if we actually need this or if we should always update the notification if we receive a new icon for the playing tab. What do you think? If we keep it then maybe we should rename it: From the name I'd assume that if this is 'true' then we always want to only use the default cover.
Attachment #8797098 - Flags: review?(s.kaspari) → review+
Comment on attachment 8797099 [details] Bug 1305430 - part2 : replace action checking with isMediaPlaying(). https://reviewboard.mozilla.org/r/82736/#review82200
Attachment #8797099 - Flags: review?(s.kaspari) → review+
(In reply to Sebastian Kaspari (:sebastian) from comment #5) > I wonder if we actually need this or if we should always update the > notification if we receive a new icon for the playing tab. What do you think? Good idea, I'll remove that and update the notification everytime when the tab gets the new favicon.
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bf58d76c8f1d part1 : send the notification again after tab got its favicon. r=sebastian https://hg.mozilla.org/integration/autoland/rev/85ce273e1c6b part2 : replace action checking with isMediaPlaying(). r=sebastian
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Verified as fixed in build 52.0a1 2016-10-09; Device: LG G4 (Android 5.1) and Nexus 5 (Android 6.0.1).
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: