Live data from Hacker News

Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

thurrott.com

121–130 of 207 posts

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#121
post #54

Most likely a user-agent check to ensure compatibility. I don't assume any ill intent. That being said, what does annoy me is that we've known for years that feature detection is preferable to user-agent detection, and I would kind of expect one of the biggest web development companies in the world to be following best practices. This isn't my local pizza shop, Google engineers should know better. Have they already f…

Disclaimer: I work at Google but not on YouTube, speaking in a personal capacity. Long story short, it doesn’t really work this way. As an example, go to google.com on Internet Explorer 6. No, I’m serious. You will find that it loads just fine and even functions, over plain HTTP. It’s only a small subset of functionality, but it does actually work. You can’t do that with feature detection. YouTube may have crossed th…

    Mozilla/5.0 (Windows NT 10.0; Win64; x64) 
    AppleWebKit/537.36 (KHTML, like Gecko) 
    Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
Hmm... looks like it's entirely practical to look at the Chrome/version for feature detection. And that they are specifically adding Edge/* detection to disable Edge instead of detecting as chrome compatible.

Edit, sorry, wrong/old edge above.. new Edge below.

    Mozilla/5.0 (Windows NT 10.0; Win64; x64) 
    AppleWebKit/537.36 (KHTML, like Gecko) 
    Chrome/76.0.3800.0 Safari/537.36 Edg/76.0.173.0
And the new "Edg" instead of "Edge" means they likely had to ADD detection to disable it.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#122
This is the fifth or so site that Google has broken for Chromium Edge in the past month. It's clearly no coincidence - it's the same constant stream of "oops" that plagues Mozilla, never ending "teehee we don't support beta browsers (while working fine with chrome canary)" or "teehee accidental UA detection mistake (when Microsoft specifically made the new Edge user agent different from the old)" incidents.

Microsoft should make the new Edge pretend to be Chrome, full time. Just never mention Edge or Edg or Microsoft in the UA at all.

I'm sure they can tell Netflix to detect their fancy 4K DRM differently. Of course that can be used to detect new Edge still, but then at least it's just that much harder to say "oops" when you have to go out of your way to detect a specific feature.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#123

> Ironically, the same page states “We support the latest versions of Chrome, Firefox, Opera, Safari, and Edge.” it shouldn't be that difficult to understand that the latest version of edge means the latest production version, not the brand new complete overhaul of the browser on a different platform that's currently in preview mode.

The completely new overhaul browser should be detected as Chrome, or the new Edg, they had to add code to disable it.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#124
post #54

Earlier quoted context omitted.

Disclaimer: I work at Google but not on YouTube, speaking in a personal capacity. Long story short, it doesn’t really work this way. As an example, go to google.com on Internet Explorer 6. No, I’m serious. You will find that it loads just fine and even functions, over plain HTTP. It’s only a small subset of functionality, but it does actually work. You can’t do that with feature detection. YouTube may have crossed th…

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134 Hmm... looks like it's entirely practical to look at the Chrome/version for feature detection. And that they are specifically adding Edge/* detection to disable Edge instead of detecting as chrome compatible. Edit, sorry, wrong/old edge above.. new Edge below. Mozilla/5.0 (Windows NT 10.0;…

Yeah, Edge/* is going to detect separately from Chrome. The issue is, prior non-Chromium based versions of Edge would also have a user agent that looks like Chrome as well, so those older versions will need to be treated differently. :(

It's the same reason why everything still has Mozilla/5.0.

To be completely clear, I am suggesting this is a bug. It even looks like a bug, since it ironically tells you to upgrade to "...Edge" while saying Edge is unsupported.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#125
post #40

Almost certainly unintentional. They're likely confused by a new User-Agent string or some feature detection gone wrong.

That's almost definitely the case. But there is such a thing as maliciously unintentional, and this seriously keeps happening with every browser that isn't Chrome. For example; Google is a technically advanced company, so they must have a CI check somewhere in their Youtube release process which confirms that a suite of browser tests pass before a greenlight is given on release. Do you think Chrome is one of the brow…

The new useragent has a later Chrome/version, and changed from Edge/version to Edg/version ... in this case Chrome and Edg align. In any case, they'd have had to ADD additional detection to not detect as chrome in this case.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#126
post #21

Earlier quoted context omitted.

Edge Preview runs on Chromium

I thought it was only "based on" and distinct from Chromium?

It uses the Blink web engine, pages themselves will render exactly the same.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#127

Earlier quoted context omitted.

Can you explain? To me it looks like YouTube intentionally, not accidentally, updated their browser block list to include Microsoft Edge Preview.

They likely have a white list of browsers, not a black list, so new browsers may simply not be supported until they update the list. Edit: And the new Edge version likely identifies itself differently.

The change in useragent would indicate that if they didn't Add specifically to exclude it, it should detect as Chrome.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#128

Most likely a user-agent check to ensure compatibility. I don't assume any ill intent. That being said, what does annoy me is that we've known for years that feature detection is preferable to user-agent detection, and I would kind of expect one of the biggest web development companies in the world to be following best practices. This isn't my local pizza shop, Google engineers should know better. Have they already f…

Disclaimer: I work at Google but not on YouTube, also speaking just personally. This isn’t practical at all in a latency sensitive environment. Feature detection works once JavaScript has loaded on the page, which means we either have to serve you a giant bundle of stuff you may not be able to use, or we have to degrade the experience of the latest browsers by detecting features and fetching more HTML/CSS/JavaScript…

It's also true that many browsers appear to have features but they are actually broken features so sometimes in order to get the application to work 100% you have to do browser user agent sniffing... think Indexeddb and safari

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#129

Earlier quoted context omitted.

Oh man, what a mess! The UA string mentions almost every browser except the one it actually is... I understand the reasons, but I think it might be time for a big "reset", and for browsers to stop lying about who they are.

> but I think it might be time for a big "reset", and for browsers to stop lying about who they are The problem is, you can't do this unless every website also "resets" at the same time, because the bad UA detection code will still be out there. The vendors aren't any happier with this situation than we are, but they do it because they have no choice.

Who still does user-agent sniffing? I can't remember the last time I saw UA-detection code. Feature-detection and polyfills have been a thing for more than a decade at this point.

EDIT: Just for kicks, I'll try it. I just downloaded a User-Agent extension, and I'll set my UA to "Chrome 74", and see if anything breaks.

Re: Google Now Forces Edge Preview Users to Use Chrome for the Modern YouTube

#130

Earlier quoted context omitted.

The modern version of Gmail has a loading bar that takes about 3 seconds to complete on every single page refresh. This is subjective, and it's a bit unfair of me to bring up, but my experience is that whatever Google is optimizing for, it doesn't seem to be latency. At least not on Firefox for any of the products I use.

That's a very different product. Gmail basically never needs to refresh the page - you go through that loading bar once in the morning and there's no real reason to see it again the rest of the day. Every action in Gmail other than certain preference changes happen in the same page. YouTube is reloading the page on almost every action you take. Latency is a completely different priority there.

> "YouTube is reloading the page on almost every action you take"

The current Polymer version of Youtube.com does not reload the page. It's a very heavy JS single-page-application. It's faster than Gmail but still slow.

Post reply on HN