r/programming • • Apr 08 '19

Microsoft releases new Microsoft Edge based on Chromium

https://twitter.com/MSEdgeDev/status/1115283353731600384?s=19
1.4k Upvotes

516 comments sorted by

View all comments

Show parent comments

64

u/OneWhoGeneralises Apr 09 '19

There's apparently a reason for that. Apparently YouTube uses ShadowDOM v0, which is implemented in Chrome and no other browser.

65

u/[deleted] Apr 09 '19

That's effectively turning Chrome into IE.

All those IE only sites were a pita because people wanted alternatives. Now google's doing what MS did.

73

u/cballowe Apr 09 '19

The path for standardization in WHATWG (the group responsible for html standards) is basically "implement it, show that it's useful, get another implementation in a second browser, propose for standardization" and the html standard itself is a core standard and a pile of extensions.

There's occasionally things that get implemented and then are in that "prove it's useful" stage and fall into that "look... This page works everywhere because the new spec has reasonable fallback behavior, but works better when the new spec is supported".

The past problems with Microsoft weren't that they had extensions that were on a standardization path, but that they had "standards" that could only work on Microsoft platforms. (Things like ActiveX controls) or that they implemented a version early and never went back and made it conform to the standard. (Even today, IE has an early implementation of css grid that is incomplete/incompatible with the final standard.) The shadowdom v0 spec isn't incompatible with what was eventually standardized, it's just an extension that never got picked up (I forget the details of it's evolution - there were a few competing ideas at that time.)

21

u/trimalchio-worktime Apr 09 '19

this reply is too reasonable, burn the heretic!

1

u/pjmlp Apr 09 '19

That worked very well for PNaCL and Dart.

Plus all those experiemental APIs for file access, houdini, WebGL compute shaders,...

1

u/[deleted] Apr 09 '19

I don't think the standard process has any of those steps. That's just what Google's been doing. They usually implement something in chrome, start using it, propose standard, then never remove the old flagged version or update to support the correct specs when other browser vendors improve on them.

Most people would say it's fine. Implement behind a flag if you want. But remove the old implementation and flag once it's standard. Same problem and solution we fought for with css features.

7

u/Soccham Apr 09 '19

Well, the issue is more that Chrome is further ahead than the other browsers in the accepted spec.

https://caniuse.com/#search=shadow%20dom

2

u/Tynach Apr 09 '19

That's for v1. Youtube, according to the comments here, uses v0 (the version from before the standard). I don't know what the differences are.

1

u/vexii Apr 09 '19

But YouTube is not

22

u/thevdude Apr 09 '19

I'm pretty sure that was a while ago, they've moved onto a new scheme by now I'm sure.

1

u/holoisfunkee Apr 09 '19

I don't think so. Google isn't that fast to migrate something like YouTube to the newer shadow DOM and it's not that easy to upgrade a site as large as that. I guess YouTube is still using the same version of Polymer framework that is using the now deprecated shadow DOM v0

6

u/Cesque Apr 09 '19

shadow dom v0 is deprecated in chrome 70, removed in chrome 75 (which i’m pretty sure is the reason that youtube didn’t work for me on chrome canary for a couple of days haha)