News for hackers. Stuff that matters.
Re:Default styles for h1 elements are changing by arp242 on Thursday April 10, 2025 @11:23PM (#43650215)
> How is a web developer supposed to test the website when he and user might have different browser behaviour?

So that is always going to be the case with a change like this, simply because people use older versions, use different browsers, etc.

If this change breaks popular-site.com then it will continue work fine for 95% of people, and it breaks for "only" 5%, one of whom will (hopefully) report it. This allows the Firefox people to test the waters to make sure it's not going to horrible break things and break things for too many people.

Re:Default styles for h1 elements are changing by lynx97 on Friday April 11, 2025 @12:07AM (#43650433)
Yay, "our users are our beta-testers" hard at work.

How about devs evaluate a change by doing some testing, instead of using users as guinea pigs?

I agree with parent, this is an awful approach.

Re:Default styles for h1 elements are changing by anon7000 on Friday April 11, 2025 @12:10AM (#43650443)
The scale is far too big. You cannot take into account the millions of permutations of websites and browser extensions when testing changes like this.
Re:Default styles for h1 elements are changing by frosted-flakes on Friday April 11, 2025 @12:23AM (#43650491)
They're not testing the browser, they're testing the Web. Testing in the real world with real users is the only way to adequately probe the effects of potentially breaking changes like this.

This is not new either. Many such changes have been reverted after discovering that they broke more things than expected. One example is the Object.groupBy static method, which was initially Array.prototype.group.

Re:Default styles for h1 elements are changing by lynx97 on Friday April 11, 2025 @06:13AM (#43652286)
> They're not testing the browser, they're testing the Web.

That sounds like a pretty lame excuse.

So if a self-driving car manufacturer does testing, they are not testing the car, they are testing the environment? Sounds like a pretty neat trick, maybe marketing should adopt this attitude.

Re:Default styles for h1 elements are changing by arp242 on Friday April 11, 2025 @12:38AM (#43650559)
You can't test against the entire web, especially internationally. Do you know what the most popular Vietnamese sites are? I don't either. Do that for >200 languages. Never mind of course there's tons of non-public stuff.
Re:Default styles for h1 elements are changing by bryanrasmussen on Friday April 11, 2025 @02:00AM (#43650902)
I mean a big enough company could, but unfortunately Firefox is not owned by that kind of company (or maybe fortunately given that the browser owned by that kind of company is Chrome)

on edit: damn two downvotes quick, either people think that Google would not be able to put the resources into doing that kind of thing and are punishing me for thinking they could, or they think that it is wrong to wish Firefox had a bigger company behind it allowing it to present more of a competitor to Google, or Chrome fandom is stronger than I thought. Which one is it, best of HN people!?

Re:Default styles for h1 elements are changing by tomalbrc on Friday April 11, 2025 @05:33AM (#43652059)
1. Your “could” is nonsense. 2. Better not to get salty about some downvotes
Re:Default styles for h1 elements are changing by bryanrasmussen on Friday April 11, 2025 @06:05AM (#43652252)
>1. Your “could” is nonsense.

quote: Do you know what the most popular Vietnamese sites are? I don't either. Do that for >200 languages.

was the example given, it's true I do not know what the most popular Vietnamese sites are, and the person who posted that and pretty much anyone on this site does not know what the most popular Vietnamese sites are or the same thing for 200 plus languages, but there are a few companies out there for which finding that out is pretty much child's play. One of those companies makes the Chrome browser.

Also testing against the entire web, obviously asking people to report problems is not really testing against the entire web, it is testing against a subset of the web. This should not really need to be pointed out to the H part of HN, but here I am. A similar thing would be if you had a big index of the web and you tested against that.

>2. Better not to get salty about some downvotes

your and my definitions about saltiness seem to vary a great deal.

on edit: Noting really that the thing to determine is how many sites actually use the UA styles for H1 instead of overriding, which would also be child's play for Google, and determining the most popular sites or pages that do so. I believe that the sites that do so are few and far between and not exceptionally popular, as well as probably very simply styled, if this belief is true it would also be relatively simple for someone to figure out what side effects were likely - if they had the data and processing power to do so. But Mozilla does not, therefore they must ask people to tell them if they have problems.

Re:Default styles for h1 elements are changing by codedokode on Friday April 11, 2025 @10:29AM (#43654203)
You can test on special testing versions. Browser instances behaving inconsistently with the same version only add more problems to developers.
Re:Default styles for h1 elements are changing by eru on Friday April 11, 2025 @01:02AM (#43650641)
> How about devs evaluate a change by doing some testing, instead of using users as guinea pigs?

Presumably they have done as much of that evaluation as is reasonable already.

Re:Default styles for h1 elements are changing by ozim on Friday April 11, 2025 @01:43AM (#43650817)
Second that - I assume that they did asnmuch as they could and this is just defense in depth one additional step.
Re:Default styles for h1 elements are changing by codedokode on Friday April 11, 2025 @10:30AM (#43654214)
That is not defence in depth, that is causing annoyance to web developers.
Re:Default styles for h1 elements are changing by joquarky on Friday April 11, 2025 @11:19AM (#43654835)
In my experience, that's probably not a good presumption anymore.

It feels to me like usability testing and quality assurance have both joined security and accessibility on the back burner now.

Re:Default styles for h1 elements are changing by hulitu on Friday April 11, 2025 @01:31AM (#43650776)
> How about devs evaluate a change by doing some testing, instead of using users as guinea pigs?

"Who would pay for it ?" Sincerely, Microsoft™

Re:Default styles for h1 elements are changing by mvdtnz on Friday April 11, 2025 @02:02AM (#43650909)
Yeah why didn't the developer simply test every website on the internet.
Re:Default styles for h1 elements are changing by zcorpan on Friday April 11, 2025 @03:05AM (#43651233)
Some testing has already happened before starting the rollout.

The change has been shipping in Firefox Nightly for a year. I have analyzed impact of affected pages in the HTTP Archive dataset (about 12,000,000 pages), twice:

https://github.com/whatwg/html/issues/7867#issuecomment-1977... https://github.com/whatwg/html/issues/7867#issuecomment-2595...

The next step is either rollout or ship directly.

Re:Default styles for h1 elements are changing by chuckadams on Friday April 11, 2025 @07:35PM (#43659868)
> Yay, "our users are our beta-testers" hard at work.

That is kind of part of the bargain when you download a version of the browser explicitly labeled as a beta.

Re:Default styles for h1 elements are changing by selcuka on Friday April 11, 2025 @12:29AM (#43650514)
> simply because people use older versions, use different browsers, etc.

Yes, but in this case asking the user to update to the latest version won't fix the problem either. I agree it's a terrible idea.

Re:Default styles for h1 elements are changing by aarond0623 on Friday April 11, 2025 @06:22AM (#43652329)
You would direct the user to submit a bug to Firefox if the latest version doesn't fix the issue. That's how they learn if this change causes issues.
Re:Default styles for h1 elements are changing by codedokode on Friday April 11, 2025 @10:27AM (#43654173)
You should first investigate the cause of the bug before spamming Firefox developers with potentially invalid reports. And it is difficult to investigate when your browser and user's browser behave different.
Re:Default styles for h1 elements are changing by chuckadams on Friday April 11, 2025 @07:34PM (#43659860)
It's a beta version. Betas don't roll out evenly. Asking the user to update to a beta version has never been a good idea.
Re:Default styles for h1 elements are changing by selcuka on Saturday April 12, 2025 @09:31AM (#43664214)
They are doing it for the stable release as well:

> The plan is to roll out to 5% of users on the Firefox 138 stable release, ramp up to 50% of users, then ship on all platforms in Firefox 140.

Re:Default styles for h1 elements are changing by chuckadams on Saturday April 12, 2025 @10:40AM (#43664775)
Yeah that makes no sense. Versions are meaningless if they don't represent standard defaults. But then, evergreen software makes versions something like an implementation detail anyway.
Re:Default styles for h1 elements are changing by 827a on Friday April 11, 2025 @02:03AM (#43650922)
Remember: The people who would supposed to benefit from a rollout like this are the website operators, not Firefox. The change is happening; I doubt Mozilla is going to reverse course because a couple websites look a little wonky (totally reasonable).

How would they report it? "Hey, your website looks weird. Yeah I'm running Firefox 138 stable and I'm in the 5% experimental group who received the default h1 styling change"?

What is more likely to happen is: A website might get a report, the dev goes to reproduce it, and they're in the control group, so they can't; and because it was only one or two reports, it gets closed.

Re:Default styles for h1 elements are changing by zcorpan on Friday April 11, 2025 @02:55AM (#43651185)
Firefox also has a built-in "broken website" reporter in the Help menu, which sends a report to Mozilla. The WebCompat team analyzes those reports and can decide to report a Gecko bug if it has a bug, contact the website if they have a bug, or apply a sitepatch. We're also monitoring the broken website reports for regressions from this change in particular.

I understand that a rollout makes reproduction harder, and not everyone will be aware of the change. It's a tradeoff when deciding whether to do a rollout or ride the trains normally.

Re:Default styles for h1 elements are changing by madeofpalk on Friday April 11, 2025 @03:37AM (#43651378)
> I doubt Mozilla is going to reverse course because a couple websites look a little wonky (totally reasonable).

This is totally possible. Many changes to the web platform we abandoned or changed significantly because a couple of websites look a little wonky.

Re:Default styles for h1 elements are changing by crumpled on Friday April 11, 2025 @02:29AM (#43651042)
Usually we can use feature flags. Browser makers also have beta versions or their browsers available for devs.
Re:Default styles for h1 elements are changing by piokoch on Friday April 11, 2025 @02:58AM (#43651199)
Even Microsoft managed to figure that out and if Teams or Outlook get new look, there is an option to use it or switch back to the old one.