371 points · by temp · 10y ago · 257 comments
So, a bug in YouTube's compatibility-autodetection caused it to fall back to a slower, bitrate-limited fallback method that it didn't need to, for some versions of Firefox. They took two weeks to deploy the fix. Considering those two weeks included Christmas and the bug didn't affect security or render the site unavailable, this seems like a pretty good response time.
Do you think it would take 2 weeks or less than a hour if the browser affected was Google Chrome?
Google has systematically made Firefox an inferior option when using Youtube, pushing people to install Chrome instead because "Firefox doesn't work". At some point you almost start thinking they're doing it intentionally and maliciously to push their own (closed, DRMed) browser.
A few years ago Chrome gained majority among web developers and everyone just stopped testing with Firefox or any other browser. In fact not just testing - they started developing for Chrome only. And now we've got us into another IE6 situation and I think it will be even harder to overcome this time.
I use firefox on android as it is the only one that has extensions. I use uBlock and mht extensions.
On linux desktop too firefox is used mostly as it uses less memory than chrome when you have too many tabs open
Gmail itself is unusable on Android + Firefox. When using an alternative browser you'll also stumble in problems with plenty of Android apps: Slack, Citymapper, etc... (when opening a web page intent, they expect that the only app that'll receive that will be Chrome)
The situation isn't as bad for desktop browsers, but it's depressing how things can still be broken.
Dang - have you seen HN in Firefox on Android recently? Is there something we can do to improve this? Given that HN receives a moderate amount of (visible) changes recently, is there a way to make the site work in that situation/setup?
I hate to defend Chrome, but I don't think that comparing Chrome to IE6 is warranted (yet). The problem with IE was that a large number of users were stuck with IE6 and never updated (either by their own choice or their IT departments'). So web developers had to write code for modern web browsers, and then implement a compatibility layer (I guess we call it polyfill, these days) for IE6. Chrome, however, has an update mechanism that the vast majority of users and IT departments do not override. Chrome is not in an IE6 situation because historically the number of users running old versions of Chrome is small and drops off rapidly as new versions come out.
I pulled these graphs from a few years ago, comparing Chrome adoption to IE adoption:
http://cdn.arstechnica.net/wp-content/uploads/2012/10/chrome...
http://cdn.arstechnica.net/wp-content/uploads/2012/10/intern...
Notice that Chrome uptake is very rapid, with the vast majority of users being on the current version of Chrome after approximately two to three months. Compare that with IE, where the majority of users still aren't using the most modern version of Internet Explorer after two to three years.
So no, I don't think Chrome is in the same position as IE. Google pushes updates to Chrome on a frequent basis, and, more importantly, those updates are actually applied by users. That said, it's still possible that Google could tomorrow do what Microsoft did when IE "won the browser war", which is disband the team and cease Chrome development. Do I think this is a likely scenario? Of course not. Is it possible? Sure.
Also, aren't most the Chrome-specific things disabled unless the app runs as an extension to discourage this type of chrome-only behaviour? I can't test/verify now, since I'm on my phone. This excludes CSS prefixes, since those are rarely needed these days anyway.
It's way too granular to be handled through the legal system or any kind of government regulation, so it's an unfortunate situation that's going to keep happening.
Now they can bypass any W3C standards-comittee and launch whatever they want in production websites and their own browser at the same time, much like Microsoft did. They already have their own Googley version of ActiveX out there! It will be fun to see what's next! /s
Google Chrome is the worst thing which has happened to the modern web.
I'd be inclined to agree, but then Google did start spam-binning its own security notifications a while ago and didn't seem to notice until Linus Torvalds started blogging about the rise in spam false positives. "Never attribute to malice what can adequately be explained by incompetence" - that is the Google motto, after all. ;)
Amen.
I agree with the commenter below who suggests we use random strings instead. Unless there is some sort of published standard for what this header should contain and what each byte means, the contents may as well be random.
The "history" of "user-agents" (about 20 years) is not very long, assuming the web is going to last more than 20 years into the future. Taking a long view, we are still in the nascent phase.
I double it's a bug, it's not the first time it happened, when YT introduced full HTML5 mode, there was a bug that for firefox, and only for firefox youtube was serving video with incompatible codec, the same as for Chrome, but Ff didn't have that codec implemented yet, so video didn't work. Opera was served video same as before, I noticed on reddit and other forums people were complaining on Firefox, that it stopped working on youtube. People started posting "I'm moving to chrome because it works". I think it's a plan to annoy firefox users by serving them not compatible videos so people move to Chrome. Google IS internet.
I really don't get why we can't just have a "fuck it" mentality for user-agent string. User agent has been the biggest technical shit debt I have ever seen so far on the web.
1. Fuck the existing user-agent string.
2. Simplify to Browser-name: version
Anyone depending on existing scheme will find failure and they will update after googling a bit. Sure there are many variations / forks, and those should identify themselves either with the upstream or decide to advertise herself. The only problem is people running old version of browser as those won't get any updates.
Sorry for the language, but seriously, fuck the existing user-agent detection. The only reason I find user-agent still useful is simply tracking the % of chrome/firefox/edge/ie/safari/mobile users, and that's all web analytic people care about as far as browser choice is concerned.
User-agent is unreliable and should not be trusted.
You try to implement that in your browser and launch it, and many websites will break (banks, in particular).
Users will download your browser and find that it doesn't work on [FAVORITE SITE X], and they won't blame the site, they'll blame your browser. After all, [FAVORITE SITE X] worked with the browser they used previously to yours; clearly, it's your fault that the site doesn't work now.
So we continue to make incremental changes and work around issues with popular sites needing to sniff user agents, while authors of new sites (that someday become popular) continue to work around issues with popular browsers by (ideally) checking the DOM in JavaScript, and (sometimes of necessity because the data of interest isn't available through the DOM for security or design-hole reasons) sniffing the user agent.
Why? We have JavaScript feature detection for video tags: http://diveinto.html5doctor.com/detect.html#video-formats
> Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36
Google Chrome tells us it is: a Mozilla, it is AppleWebkit, it is KHTML, it is Gecko, it is Safari, and it is Chrome.
"Meaningful" is something different.
Added benefit of getting alot of "not recognized computers" or whatever emails from google lol
As far as I am aware, no extension currently offers the option of a random user agent, but many (including the one linked) allows user supplied use agents, and there is no reason you could not make one support random user agents.
Note that plenty of smart companies have things like production freezes at holiday times :)
So this is not entirely surprising.
(they are always exceptions in any of the companies i've been in, but that's been the rule)
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136
As for the case with google products, particularly youtube, those users other than ones using chrome have a really mediocre experience. Try viewing a youtube video on chrome. you won't experience a problem if you quickly try to seek backwards. Now try doing the same in firefox. This is one of the reasons I stick with firefox, which supports open standards and privacy.
"And then Google built Chrome, and Chrome used Webkit, and it was like Safari, and wanted pages built for Safari, and so pretended to be Safari. And thus Chrome used WebKit, and pretended to be Safari, and WebKit pretended to be KHTML, and KHTML pretended to be Gecko, and all browsers pretended to be Mozilla, and Chrome called itself Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13, and the user agent string was a complete mess, and near useless, and everyone pretended to be everyone else, and confusion abounded."
Firefox sees it as a threat to their reputation (obviously for them having a few users for whom it doesn't work is better than having loads of users with a degraded experience) and they start spoofing their UA to another version. The Youtube engineer is indifferent (or can't really do anything about it).
Then when it's done a Google employee from a different team comes in the thread to complain about the situation because the fact that the UA is spoofed for only youtube.com and not other (Google) domains breaks his product.
(I am a Mozilla employee.)
During the holidays they simply may not be staffed up for that process.
Just because you can push to prod doesn't mean you should push to prod.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1233970#c61
I'm not really comfortable that YT/Google were, via this guy, asking for special consideration (from an open source project) but only willing to discuss their request in private. It lacks transparency.
I will probably start using it again because I read this article. I can't help but wonder how many ex-users who wont because they don't follow the news.
Antispam? Ad-tracking? Why would it be Europe-only?
"Apologies to all impacted by this transient configuration. Firefox 43 users who do not have h.264 will get 360p VP8 until the configuration is updated early next year. The very large majority of Firefox users watching YouTube have h.264. For them, and for user who get VP9, <video> MSE performs better overall than Flash."
> "Unfortunately this is not an acceptable state for us. We have many millions of users whose Youtube experience suddenly got significantly degraded, and we're not willing to leave them in that state over the holidays. Any chance you guys could simply roll back the change you guys made? If not, we're forced to ship a Firefox update that lies to you guys about the Firefox version, which really is not a good option for either of us :("
In my opinion, Firefox should do what Chrome did, and append the competing browser’s UA to their own useragent.
(Replace "star" with *, as HN doesn’t support any proper escaping or markdown. This kind of bullshit is what makes this page so horrible to use)
Do we live in a world where this in unacceptable?
We (and i assume google does the same) restrict deployments to 911 fixes, which have a specific set of conditions before a fix is considered such, presumably this did not meet googles criteria. From what i read it was 6% of a minority browser traffic that was effected, which would would putt the total traffic at 1-2%, i would not break the deployment embargo for that.
Having some % of FF 43 users (who're about 3.5% of the browser market according to netmarketshare.com) experience degraded but functional video may be better than, say, a 1% risk of breaking youtube for 100% of users and not being able to fix it for a day.
Not being able to roll back for a day, you mean. Worst-case you hit the undo button, which they surely have.
http://www.otsukare.info/2014/10/28/google-webcompatibility-...
Even ignoring the tracking problem, using the user agent string instead of feature detection has always been terrible engineering, as it assumes all browsers within a version have the same features. Browsers have always been configurable - often in extreme ways. I don't understand how anybody can simply6 pretend the preferences dialog (and extensions, etc) doesn't exist.
[1] Out of the 15.91 bits of data that Panopticlick was able to collect from my browser, 9.0 bits (56%) were from the user agent. The 2nd largest source is HTTP_ACCEPT at 4.25 bits.
Is there a better solution for server-side feature detection?
Hmm... might be a bit big... how about, since the source code is publicly available, we could just put the browser name and version in there?
User-Agent: Chromium/47.0 (Windows 10)
User-Agent: Firefox/43.0 (GNU/Linux; X11)
User-Agent: Wget/1.15.4 (GNU/Linux)
etc.
Given that current UA strings are abysmal (and sent on every request), this would probably save a few kilobytes worth of headers (images, scripts, stylesheets), so would probably improve performance by some nanoseconds.
They managed to do this with SHA-1 deprecation and a lot of other stuff. So they could just announce that "on February 1st, 2017 we all clean up the clusterfuck User-Agent headers are", bake in the timer and spread the word.
Why are you pretending that there is some sort of difference between "tracking a user" and "tracking the user's browser", which is close enough for most tracking purposes? Tracking the browser is tracking a user for a vast majority of people. For browsers on a phone, it is even more likely to be a 1:1 mapping.
> Why are you pretending that there is some sort of difference between "tracking a user" and "tracking the user's browser"
I'm not? That isn't what I said.
You know, https://panopticlick.eff.org/
Why? Fucking user agent.
I think at this point, if there are browser bugs in something as important as video, the release team or someone should pick it up before release as a show-stopper.
If the issue is on the server end, then the people running the server should be fixing their mess.
Do we know which it was? A Firefox issue that caused Youtube to detect the user-agent and server lower quality video, or was it an issue on Youtube's end?
Entire operating systems contain hacks to work around unfortunately-designed-but-popular applications doing things they shouldn't. Device drivers too. Even the x86 processor specification in some cases is more about "what companies actually do" than "what some document says", because that is the only way things work correctly.
If you could provide a better alternative, I'm sure they'd be all ears.
Having said that I don't think they'd be all ears; their code isn't opened source and while I could try to debug through their minified code that hardly seems worth it for me to do.
This absolutely, positively, would never, ever, happen in Chrome. Never. Yet here we are. "oops!"
I absolutely believe it was an accident, but I don't believe it should be fully treated like one.
Pointing out how Google is evil, does exclude other companies from being evil too.
Obvious typo: Pointing out how Google is evil, does NOT exclude other companies from being evil too.
but in fact, it was all google's doing. imagine if they do this randomly and developers of safari, edge, firefox, dont always notice... good way to grab market share, by leveraging that the entire human race browse/use youtube daily.
My comment means also to show the power Google holds over all web browsers. Imagine a sharp sword above the head of all of the web browsers, and they can swing it any time they please. They don't hopefully, but they can. Sometimes, the sword just slip, even. That's a lot of power for a single company.