Closed Bug 2044622 Opened 5 months ago Closed 5 months ago

[Homepage Sports Widget] [phase3] Penalty scores missing from live and ended matches

Categories

(Firefox for Android :: Homepage, defect)

Firefox 153
All
Android
defect

Tracking

()

VERIFIED FIXED
153 Branch
Tracking Status
firefox151 --- verified
firefox152 --- verified
firefox153 --- verified

People

(Reporter: vtamas, Assigned: skhan)

References

Details

(Whiteboard: [fxdroid][group3][world-cup-phase2])

Attachments

(3 files, 3 external files, 1 obsolete file)

Attached image LivePenalties.png —

Steps to reproduce

  1. Enable "Homepage Sports Widget" feature from Secret Settings.
  2. Set the device date to any date during the World Championship (starting with 11th of June).
  3. Start a game from the bracket (mock server) and select it.
  4. Click the 'Force PK' button (without entering any data).
  5. Set time to 115 minutes to enter penalties.
  6. Refresh the Firefox and check the World Cup card.
  7. Finish the game and check again the score.

Expected behavior

Penalties status/score is successfully displayed for both live and past games.

Actual behavior

"home_penalty" and "away_penalty" values are not displayed in the World Cup card.

Device information

  • Firefox version: Firefox for Android Nightly 153 (2026-06-02)
  • Android device model: Samsung S24 Ultra (Android 16)

Two gaps left penalty results invisible:

Mapping: MatchesResponseMapper detected a shootout by matching the period
string exactly against "FT(P)" / "P", but the feed marks a live shootout with
"PEN" and, once the match is final, flips the period back to "FT" and carries
the result only in home_penalty / away_penalty. Detect either a penalty period
(case-insensitive "pen" substring) or populated penalty fields -- the feed only
fills those on a shootout. Penalties are never inferred from a level regulation
score.

Rendering: the compact related-match row read only home_score / away_score and
suffixed plain Final, so a FinalAfterPenalties match showed just "2 - 2" with no
shootout score. Render it as "2(3) - 2(5)" -- the regulation score with the
shootout score in parentheses per team -- for both live Penalties and finished
FinalAfterPenalties, with "-" for a missing side. The row content description
picks it up for TalkBack.

Updates the mapper tests to the real "PEN" marker plus the finished-on-FT
fallback, and adds a related-row preview for the penalty format.

Assignee: nobody → skhan
Status: NEW → ASSIGNED
Blocks: 2037222

Two gaps left penalty results invisible:

Mapping: MatchesResponseMapper detected a shootout by matching the period
string exactly against "FT(P)" / "P", but the feed marks a live shootout with
"PEN" and, once the match is final, flips the period back to "FT" and carries
the result only in home_penalty / away_penalty. Detect either a penalty period
(case-insensitive "pen" substring) or populated penalty fields -- the feed only
fills those on a shootout. Penalties are never inferred from a level regulation
score.

Rendering: the compact related-match row read only home_score / away_score and
suffixed plain Final, so a FinalAfterPenalties match showed just "2 - 2" with no
shootout score. Render it as "2 - 2 · Penalties (3-5)" -- the regulation score
followed by the shootout score -- for both live Penalties and finished
FinalAfterPenalties, reusing the existing "Penalties" label.

Accessibility: the penalty row's content description mirrors the featured match
card, announcing each score next to its team ("France 2 South Africa 2") rather
than the visual "2 - 2" dash form, then the shootout result.

Updates the mapper tests to the real "PEN" marker plus the finished-on-FT
fallback, and adds a related-row preview for the penalty format.

Whiteboard: [fxdroid][group3][world-cup-phase2]
Attachment #9593120 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

Two gaps left penalty results invisible:

Mapping: MatchesResponseMapper detected a shootout by matching the period
string exactly against "FT(P)" / "P", but the feed marks a live shootout with
"PEN" and, once the match is final, flips the period back to "FT" and carries
the result only in home_penalty / away_penalty. Detect either a penalty period
(case-insensitive "pen" substring) or populated penalty fields -- the feed only
fills those on a shootout. Penalties are never inferred from a level regulation
score.

Rendering: the compact related-match row read only home_score / away_score and
suffixed plain Final, so a FinalAfterPenalties match showed just "2 - 2" with no
shootout score. Render it as "2 - 2 · Penalties (3-5)" -- the regulation score
followed by the shootout score -- for both live Penalties and finished
FinalAfterPenalties, reusing the existing "Penalties" label.

Accessibility: the penalty row's content description mirrors the featured match
card, announcing each score next to its team ("France 2 South Africa 2") rather
than the visual "2 - 2" dash form, then the shootout result.

Updates the mapper tests to the real "PEN" marker plus the finished-on-FT
fallback, and adds a related-row preview for the penalty format.

Original Revision: https://phabricator.services.mozilla.com/D304509

Attachment #9593732 - Flags: approval-mozilla-release?

Two gaps left penalty results invisible:

Mapping: MatchesResponseMapper detected a shootout by matching the period
string exactly against "FT(P)" / "P", but the feed marks a live shootout with
"PEN" and, once the match is final, flips the period back to "FT" and carries
the result only in home_penalty / away_penalty. Detect either a penalty period
(case-insensitive "pen" substring) or populated penalty fields -- the feed only
fills those on a shootout. Penalties are never inferred from a level regulation
score.

Rendering: the compact related-match row read only home_score / away_score and
suffixed plain Final, so a FinalAfterPenalties match showed just "2 - 2" with no
shootout score. Render it as "2 - 2 · Penalties (3-5)" -- the regulation score
followed by the shootout score -- for both live Penalties and finished
FinalAfterPenalties, reusing the existing "Penalties" label.

Accessibility: the penalty row's content description mirrors the featured match
card, announcing each score next to its team ("France 2 South Africa 2") rather
than the visual "2 - 2" dash form, then the shootout result.

Updates the mapper tests to the real "PEN" marker plus the finished-on-FT
fallback, and adds a related-row preview for the penalty format.

Original Revision: https://phabricator.services.mozilla.com/D304509

Attachment #9593750 - Flags: approval-mozilla-beta?
Flags: in-testsuite+
Attachment #9593750 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9593732 - Flags: approval-mozilla-release? → approval-mozilla-release+

This issue is verified as fixed on Firefox for Android Nightly 153 (2026-06-07) and Firefox 152 beta 8 on Samsung S24 ultra (Android 16) and Google Pixel 10 pro (Android 16).

This issue is verified as fixed on Firefox for Android 151.0.4 under Oppo find X3 Neo (Android 11).

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: