Closed Bug 1997351 Opened 8 months ago Closed 8 months ago

nocobase.prabhuls.me - Data viewer fails to load entries (table, entries, etc)

Categories

(Core :: SVG, defect, P2)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
146 Branch
Webcompat Priority P2
Webcompat Score 5
Tracking Status
firefox144 --- wontfix
firefox145 --- verified
firefox146 --- verified

People

(Reporter: rbucata, Assigned: emilio)

References

()

Details

(Keywords: webcompat:needs-login, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs], [wptsync upstream])

User Story

user-impact-score:200
platform:windows,mac,linux,android
impact:site-broken
configuration:general
affects:all
branch:release
diagnosis-team:dom

Attachments

(3 files)

Environment:
Operating system: Linux and Windows
Firefox version: Firefox 143.0

Steps to reproduce:

  1. Navigate to: https://demo.nocobase.com/new and create a demo site
  2. Perform account login with the received credentials via email for the demo site
  3. From the settings menu (upper right corner), select "Dashboard"
  4. Click on the "Configure" action for the main item
  5. Add some entries (User) and observe

Expected Behavior:
Data/table is rendered

Actual Behavior:
Missing data/table

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/183994

OS: Windows → All
Attached video Chr vs ff

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Summary: nocobase.prabhuls.me - Data viewer fails to load (table, entries, etc) → nocobase.prabhuls.me - Data viewer fails to load entries (table, entries, etc)
User Story: (updated)
Webcompat Score: --- → 1
Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: 1 → 6
Priority: -- → P2
Webcompat Score: 6 → 5
Attached file Reduced test-case

This logs a degenerate matrix on firefox (all zeros), but an identity matrix in Chrome. Robert do you know who's right?

Maybe falling back to the identity matrix if we fail to invert or so is fine?

Flags: needinfo?(longsonr)

I guess bug 1992972 wasn't complete here.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Depends on: 1992972
Flags: needinfo?(longsonr) → needinfo?(emilio)

This is much like bug 1992972, but a bit more general.

The issue in this case is that GetViewBoxTransform() is singular,
because of the zero viewport height:

https://searchfox.org/firefox-main/rev/cb52781342cc905eda923d009fc0b678f3a8c8c6/dom/svg/SVGViewportElement.cpp#162-164

Returning an identity matrix there seems a bit sketchy since it is used
in intermediate computations. Instead, deal with singular transforms at
the end of the process.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/569552b3a360 https://hg.mozilla.org/integration/autoland/rev/12f67b219f82 More explicitly deal with singular matrices in getCTM and getScreenCTM. r=jrmuizel
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/55902 for changes under testing/web-platform/tests
Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Upstream PR merged by moz-wptsync-bot

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Comment on attachment 9524748 [details]
Bug 1997351 - More explicitly deal with singular matrices in getCTM and getScreenCTM. r=jrmuizel,#firefox-svg-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Relatively simple compat fix.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial-ish fix
  • String changes made/needed: none
  • Is Android affected?: Yes
Flags: needinfo?(emilio)
Attachment #9524748 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Attachment #9524748 - Flags: approval-mozilla-beta? → approval-mozilla-release?

Seems odd that neither Chrome nor Safari pass the wpt given that this is patch supposed to make us more compatible with them both.

https://wpt.fyi/results/svg/types/scripted/SVGGraphicsElement.getCTM-empty-viewBox.html?label=experimental&label=master&aligned

Hmm, let me look at that.

Flags: needinfo?(emilio)
Blocks: 1999117
Flags: needinfo?(emilio)
QA Whiteboard: [uplift] [qa-ver-needed-c146/b145]

Reproduced the issue on Firefox 146.0a1 (2025-10-30) on macOS 26.1 where an "SVG Matrix.a setter" error is shown.

The graph is rendered as expected on Firefox 146.0a1 (2025-11-10). Tests were performed on macOS 26.1, Windows 11 and Ubuntu 24.04.

QA Contact: csasca

Comment on attachment 9524748 [details]
Bug 1997351 - More explicitly deal with singular matrices in getCTM and getScreenCTM. r=jrmuizel,#firefox-svg-reviewers

Approved for 145.0.1

Attachment #9524748 - Flags: approval-mozilla-release? → approval-mozilla-release+
Regressions: 2000679

Emilio, do you want to provide a fix or maybe should we back it out from release? We have another dot release next week if needed.
Thanks

Flags: needinfo?(emilio)

Fine to fix (sorry for the slow response, on JST timezone right now). This just hit a conflict with tests bug 1995807 had changed on central.

Flags: needinfo?(emilio)

We built the dot release with the patch and didn't back it out, I am assuming that this is fine and that we can follow up uplifting the test changes in bug 1995807 in the next dot release?

Flags: needinfo?(emilio)

Verified that this is also fixed on Firefox 145.0.1. Tests were performed on macOS 26.1, Windows 11 and Ubuntu 24.04.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift] [qa-ver-needed-c146/b145] → [uplift] [qa-ver-done-c146/b145]
Flags: qe-verify+
Component: Site Reports → SVG
Product: Web Compatibility → Core

Yeah those changes are test only.

Flags: needinfo?(emilio)

Err sorry I misread, we shouldn't uplift that one. https://bugzilla.mozilla.org/show_bug.cgi?id=2000679 has a patch attached with the test tweak.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: