Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription management page uses CSS file with broken/out-of-date source map #16013

Open
dholbert opened this issue Nov 1, 2023 · 1 comment

Comments

@dholbert
Copy link

dholbert commented Nov 1, 2023

Description

Poking at https://subscriptions.firefox.com/subscriptions in devtools, I'm noticing some CSS rules that are supposedly defined in .scss files, but if I click through, I end up seeing a completely different bit of CSS, and the CSS that I was looking for is nowhere to be found.

Steps to reproduce

  1. Have a subscription to e.g. Mozilla VPN service (probably required for this web page to load in such a way to trigger this bug, though I'm not sure)
  2. Right-click your username next to the profile avatar photo and choose "Inspect"
  3. Notice some CSS rule that's shown as being defined in a .scss file, e.g. the one for #fxa-settings-profile-header .card-header that starts with font-size: 20px;
  4. Click the name of the stylesheet next to that rule, in this case _avatar.scss:18

Expected result

I should end up looking at that rule in the .scss file.

Actual result

I ended up seeing some completely different line in the .scss file. The line that I quoted above, font-size: 20px, doesn't seem to exist at all in the .scss file.

Environment

Firefox Nightly 121 and Chrome 120 "dev" on Ubuntu 23.10

I think this sort of thing is an indication that we've got some invalid source-map info in our CSS file -- in this case, in https://subscriptions.firefox.com/static/css/main.0bd2978c.css which is the actual CSS file being used here.

┆Issue is synchronized with this Jira Task

@dholbert
Copy link
Author

dholbert commented Nov 1, 2023

(The source map itself is at https://subscriptions.firefox.com/static/css/main.0bd2978c.css.map , though that's not super human-readable.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant