Closed Bug 1009133 Opened 10 years ago Closed 10 years ago

[music] The "play" icon in the header appears even when nothing is playing

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:2.0+, b2g-v2.0 verified, b2g-v2.1 verified)

VERIFIED FIXED
2.0 S6 (18july)
blocking-b2g 2.0+
Tracking Status
b2g-v2.0 --- verified
b2g-v2.1 --- verified

People

(Reporter: squib, Assigned: dkuo)

Details

(Keywords: regression)

Attachments

(3 files)

I think this is fallout from some building blocks changes. The "hidden" attribute on the play icon is getting ignored because some CSS explicitly sets "display: block;" on the element, and that CSS has higher specificity. We should fix this.

The easy way is just to add some CSS to make the "hidden" attribute hide the button, but maybe now would be a good time to update the header to use web components. (Or maybe not, depending on our plans with music2). Thoughts?
Can we get STR that you used to reproduce this?
Keywords: steps-wanted
Ok.

1) Open the music app.
Two things:

1. Can we get a screenshot?
2. Can we confirm this is not present on 1.4?
Keywords: steps-wantedqawanted
This does NOT repro on the 1.4 Buri

1.4 Environmental Variables:
Device: Buri 1.4 MOZ
BuildID: 20140508000201
Gaia: 4ce973ef0732b0d52cb043210db598aa176b2ce9
Gecko: 16ab7f6b18f8
Version: 30.0
Firmware Version: v1.2-device.cfg


This does NOT repro on 1.4 Open_C

1.4 Environmental Variables:
Device: Open_C 1.4 MOZ
BuildID: 20140512000204
Gaia: 17fb44880e95bc7ae363a609d811bf5a9a067b5b
Gecko: ec24f847e7c0
Version: 30.0
Firmware Version: FFOS_US_EBAY_P821A10V1.0.0B06_LOG_D
Attached image The issue
Here's a screenshot. 

I also tried with the latest 1.4 build, and everything looks ok there.
Keywords: qawanted
(In reply to Jim Porter (:squib) from comment #0)
> I think this is fallout from some building blocks changes. The "hidden"
> attribute on the play icon is getting ignored because some CSS explicitly
> sets "display: block;" on the element, and that CSS has higher specificity.
> We should fix this.
> 
> The easy way is just to add some CSS to make the "hidden" attribute hide the
> button, but maybe now would be a good time to update the header to use web
> components. (Or maybe not, depending on our plans with music2). Thoughts?

I feel this is more like an issue on the css style of the building blocks, or gecko?, if |hidden| attribute is set to true I would expected the element is invisible, but apparently it's not for now, maybe we should read the spec to see which attribute overrides then decide what fix we should use.
Looks like this issue got lost. We need to fix this for 2.0, since it looks really bad!
blocking-b2g: --- → 2.0?
(In reply to Jim Porter (:squib) from comment #7)
> Looks like this issue got lost. We need to fix this for 2.0, since it looks
> really bad!

Yes! totally forgot this and we should definitely fix this, taking it.
Assignee: nobody → dkuo
Attached file patch
We should fix this, bad user experience
blocking-b2g: 2.0? → 2.0+
I checked with Dominic's patch and this issue is not present.
Comment on attachment 8449534 [details] [review]
patch

Jim,

This is a simple patch with tests but my approach needed to add !important to the player icon's style, which couldn't pass the csslint and I have to modify the build/csslint/xfail.list to ignore it. I am still thinking what's an alternative way to fix this but those feels like workaround so I have wrapped it first for you to review, do you think it's acceptable? or probably you have some suggestions and I would love to hear them, thanks!
Attachment #8449534 - Attachment description: wip → patch
Attachment #8449534 - Flags: review?(squibblyflabbetydoo)
Comment on attachment 8449534 [details] [review]
patch

I commented on the pull request. I think we should try to avoid setting the style attribute directly in JS if we can...
Attachment #8449534 - Flags: review?(squibblyflabbetydoo) → review-
(In reply to Jim Porter (:squib) from comment #13)
> Comment on attachment 8449534 [details] [review]
> patch
> 
> I commented on the pull request. I think we should try to avoid setting the
> style attribute directly in JS if we can...

Thanks Jim, that's also what I thought at first and has hesitated to use this approach, but looks like your way is easier and doesn't need JS involved(also fixed the case in pick activity), so let's use it :)
Comment on attachment 8449534 [details] [review]
patch

Issues are addressed, mind to review again? thanks.
Attachment #8449534 - Flags: review- → review?(squibblyflabbetydoo)
Comment on attachment 8449534 [details] [review]
patch

Cool, looks good! (Note that I didn't actually run with this patch.)
Attachment #8449534 - Flags: review?(squibblyflabbetydoo) → review+
Thanks Jim! I have checked it works before landing it.

master: 5886383cd18a79cbe4f4c5b1fe6129b2c9c7a27c
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
This issue has been verified successfully on Flame2.0&2.1.
Reproducing rate: 0/5
See attachment: Verify_Flame_Music.mp4

Flame2.0 build version:
Gaia-Rev        8d1e868864c8a8f1e037685f0656d1da70d08c06
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/c756bd8bf3c3
Build-ID        20141201000201
Version         32.0

Flame2.1 build version:
Gaia-Rev        ccb49abe412c978a4045f0c75abff534372716c4
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/18fb67530b22
Build-ID        20141201001201
Version         34.0
Status: RESOLVED → VERIFIED
Attached video Verify_Flame_Music.MP4
Is there a reason why a test was disabled at https://github.com/mozilla-b2g/gaia/pull/21294/files#diff-c6184496bf60ffae2f21ac71bd7a648aR93 ?
Flags: needinfo?(dominickuo)
Jim replied. It is just local disable vs file disable that changed in this bug - because the new test is in the file. Original disabling due to bug 1032037. Case closed. Thanks.
Flags: needinfo?(dominickuo)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: