News for hackers. Stuff that matters.
Re:Browsers by eddieroger on Sunday December 16, 2018 @10:04PM (#18696647)
I feel like I’m missing something, because I keep seeing blog posts that tell me a browser monoculture is bad (and the irony of Microsoft saying this is nearly too much), but none of them tell me why. I understand that it was bad in the IE6 days, but IE6 was also closed source and could only be run on Windows (see also the irony of Microsoft discontinuing IE on Mac, not wanting to compete with Safari, a browser made by the OS manufacturer). Chromium is open source - the only lock in is the decision to use it. Sure, Google may be at the reigns of where the project goes, but then differentiate on features, or fork it and make it different. Differentiate on the user interface, or integrations with other services, or go hard on privacy. Maybe the rendering engine should be more akin to the Linux kernel and less akin to Windows? One operating system would be bad, but one kernel has spawned many, many Linuxes. I guess I’m doing my part by using Firefox, but that’s more because I am worried about just how much Google knows about me, and not because I think Gecko is remarkably better than Chromium.
Re:Browsers by pcwalton on Sunday December 16, 2018 @10:21PM (#18696707)
> Sure, Google may be at the reigns of where the project goes, but then differentiate on features, or fork it and make it different.

And if the fork diverges, then what? This is not a theoretical concern: Blink and WebKit are now quite different, and it's best to regard them as two different rendering engines. Is that bad?

> Maybe the rendering engine should be more akin to the Linux kernel and less akin to Windows?

This presupposes that the Linux kernel is at an optimum point in the design space. It's pretty clear to me that it isn't. In fact, I think the monoculture around open source kernels has been bad for OSS. I look forward to Fuchsia providing some much-needed competition, much in the same way LLVM provided much-needed competition to GCC.

Re:Browsers by austincheney on Sunday December 16, 2018 @10:27PM (#18696724)
IE, at its height, was available outside windows. https://en.m.wikipedia.org/wiki/Internet_Explorer_for_Mac

At that time, 2001-2002, IE6 was highly praised. You don’t get to 96% marketshare by being something everybody hates. The hate came later when CSS demand ramped up and it became clear IE6 used a non-standard box model. Worse still MS essentially abandoned the browser, the result of total marketshare dominance, and tied it directly to the operating system.

The reason people are complaining about this is the lack of diversity. This has proven very bad in the past. It essentially makes the platform a proprietary space even if the dominant browser is open source. The key here is who directs the technology and direction of the platform.

Re:Browsers by mdasen on Monday December 17, 2018 @12:52AM (#18697144)
It was sort-of available for Mac. IE for Windows was based on the Trident layout engine. The Mac version was based on the Tasman layout engine: https://en.wikipedia.org/wiki/Tasman_(layout_engine). While they were both branded as "Internet Explorer", they weren't the same browser.
Re:Browsers by kitsunesoba on Monday December 17, 2018 @01:16AM (#18697234)
Tasman was actually quite good, too. It was a great deal better than trident in many regards, ranging from the ability to properly handle transparent PNGs to more complete and correct CSS support. IE for Mac was a great browser for years after IE 5/6 had grown long on the tooth. I always wondered why it didn’t get ported to Windows to replace Trident.
Re:Browsers by wvenable on Sunday December 16, 2018 @10:51PM (#18696810)
> IE6 used a non-standard box model.

Which we all use now anyway because it was right way to do it...

    * {
      box-sizing: border-box;
    }
Re:Browsers by yuchi on Monday December 17, 2018 @01:48AM (#18697326)
No no no, that's a completely different issue — we are talking about hasLayout stuff here.
Re:Browsers by austincheney on Monday December 17, 2018 @12:33AM (#18697072)
That is a matter of opinion.

I don't do that and I avoid code that does. In the days of IE7 I learned to write CSS code that was conformant to both box models. Now I just write to the standard box model. CSS isn't something that will ever be particularly challenging once you have gone through the extremes of edge case use cases.

Re:Browsers by wvenable on Monday December 17, 2018 @11:29AM (#18699932)
It's not a matter of opinion, content-box is much more difficult to work with when using fluid layouts than border-box which is why all major CSS frameworks use border-box now.

At the time, the CSS specification didn't make it clear which way to calculate widths so Microsoft, probably due to their experience building graphical layout software, chose border-box while all other rendering engines at the time went content-box probably without considering the consequences. Realizing the error, the box-sizing property was added to CSS to fix this.

Re:Browsers by austincheney on Monday December 17, 2018 @09:22PM (#18704066)
You claim it’s not a matter of opinion and due to personal opinion. Weird. Then you invent a history from which to draw imaginary conclusions. It is perfectly ok to have a personal opinion on CSS. You don’t have to justify it and you certainly don’t have to conjure a dillisional alternate reality.

Imagination aside, IE3 was the first browser to offer any CSS support.

Re:Browsers by earthboundkid on Tuesday December 18, 2018 @12:39PM (#18708592)
You're just wrong. The CSS box model as specified by the standards was totally unusable for making a website where you want boxes to have certain sizes with certain margins and paddings, especially in the days before you could use calc(), so you couldn't mix pixels with percentages. It's true that it was the standard, and so MS should have implemented the standard, but it's also true that what MS shipped made way more sense and every frontend dev turns on their box model when it box-model: border-box became part of the standard.
Re:Browsers by robin_reala on Monday December 17, 2018 @12:49AM (#18697134)
Couple of corrections: IE6 actually fixed the box model (that was the difference between the new standards mode vs quirks mode that matched IE5), and IE on the Mac used a completely different rendering engine (Tasman instead of Trident).
Re:Browsers by austincheney on Monday December 17, 2018 @01:38AM (#18697292)
The box model issue was independent of quirks mode. Quirks mode was triggered by HTML not conformance to a modern doctype (HTML4, XHTML 1.1, or one of the three XHTML 1.0) which produced a different DOM tree and thus different layout/appearance when CSS was applied. This was particularly frustrating because even when MS fixed the corresponding CSS defects their DOM tree remained non-standard until IE9.

I remember having to deal with all these things when working with the company's aging CMS. It was a great tool, but the version the company was using was old (before standardized doctypes in 1999) and inserted a comment into the top line of code throwing all documents into quirks mode in IE.

The box model was corrected when IE released version 7, which still also featured quirks mode rendering for backwards compatibility.

Re:Browsers by jcranmer on Sunday December 16, 2018 @11:24PM (#18696880)
The biggest reason is that when you have one implementation, the implementation becomes standard irrespective of what the standard itself says. When IE6 was dominant, this meant a lot of people had to reverse engineer the details of IE6's weird CSS implementation. Chief among its faults was an incorrect box model (although W3C later added an attribute to use IE's old box model) and the infamous hasLayout bug, which Wikipedia at one point had a page on (it appears to be gone now). Sure, Webkit may be open-source, but that doesn't really lend itself to finding issues related to buggy implementations.
Re:Browsers by ken on Monday December 17, 2018 @03:44PM (#18702013)
> I feel like I’m missing something, because I keep seeing blog posts that tell me a browser monoculture is bad (and the irony of Microsoft saying this is nearly too much), but none of them tell me why.

For me personally, multiple independent implementations is a stamp of approval. It means that Google can't just sit on the standards committee, build something behind closed doors, and ship it, even if the result is open-source.

It means someone outside of that one company has to understand it, and be able to implement it. It can't be ridiculously complex, or have DOCX-style "just do what proprietary implementation X does" requirements. There has to be sufficient documentation. The implementations probably won't all have the same bugs -- I've heard avionics systems have multiple independent implementations for this very reason.

> Maybe the rendering engine should be more akin to the Linux kernel and less akin to Windows?

I fear it'll be more like Darwin. It's nice that XNU is "open source", perhaps, but nobody is taking advantage of this. I've never heard of anyone running XNU except as part of Apple's proprietary operating systems, and I've never heard of anyone forking it to run a custom version on their Apple hardware. I'm not even sure to what extent it's technically possible.

I would be much less worried if the single surviving browser engine were Gecko -- not because I think it's technically superior (I don't think it is), but because I trust Mozilla a lot more than I trust Google, or even Google+Microsoft. Mozilla is not good at design but they operate out in the open.

Re:Browsers by jki275 on Monday December 17, 2018 @03:47PM (#18702044)
There used to be a BSD type distribution of Darwin. It's not been maintained in many years.

Seems like there's something called PureDarwin that's trying to do something with it now.

http://www.puredarwin.org/

Re:Browsers by sebcat on Monday December 17, 2018 @04:34AM (#18697862)
Lack of official support for Chromium on platforms other than OSX, Windows and Linux worries me a little.

Both FreeBSD and OpenBSD maintain large patch-sets to be able to build Chromium. [1][2]

I don't know the current situation, but historically some of these patches have had problems reaching upstream because Free-/OpenBSD is not officially supported[3].

[1] https://svnweb.freebsd.org/ports/head/www/chromium/files/ [2] http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/www/chromium/... [3] https://codereview.chromium.org/180743014/#msg3

Re:Browsers by Sylos on Monday December 17, 2018 @01:12AM (#18697221)
One very obvious point which somehow hasn't been named yet, is security.

If Blink has a security vulnerability, like the recent WebSQL remote code execution, then in a monoculture that means everyone has this vulnerability.

Re:Browsers by bhauer on Sunday December 16, 2018 @10:53PM (#18696818)
I think we first need to agree that competition in a general sense—that is including browsers and everything beyond—is a good thing. It's healthy for any market to have viable competitors; principally for the consumers, but also for the vendors (so that they do not stagnate). If we don't agree that competition is healthy, then I don't believe it's possible to agree on the second-order matters.

There are several second-order reasons why a monoculture is damaging for the browser industry. I will give a few examples:

1. A monoculture encourages web developers to test on a single platform with the assumption that all other platforms, and even industry standards, are meaningless. Many of us are web developers, and most of us are guilty of dismissing low-share platforms during testing. But as long as some viable competitors exist, we nominally target the industry standards in the hope that by doing so, the platforms we do not test on will have a modest/tolerable (maybe even good) experience.

2. A monoculture is self-reinforcing. Losing established viable competitors makes it more difficult for new competitors to enter the market. If we allow second-tier browsers to be rendered meaningless, we all but ensure a long and (eventually) painful stagnation, and create an ever-larger hurdle for a new entrant to clear to reach any significance (as more an more of the web is designed to work with a single platform). While it may sound passably agreeable to have a Chrome monoculture in 2019, do we want to still have a Chrome monoculture in 2029? For my part, I hope we see an increasing set of options in most areas of life over time, even in "browsing," whatever that ends up looking like in 10 years.

3. We don't know what future stagnation will look like. We don't know what opportunities we will have lost by making it more difficult to compete or by losing the healthy diversifying force of competition. It's a classic problem of the unseen. Projecting forward, we predict testing will be a bit simplified, but we cannot know what innovations we'll never see (or won't see as quickly) because the hurdles for experimentation were too high. Today, if Firefox introduces a new feature, even though its usage is relatively small the usage is still large enough in absolute terms that the innovation isn't entirely under the radar for most of us. If Firefox's share were 0.8% instead of 8%, far fewer of us would even notice if they added a slick new feature, leaving the feature unheralded and obscure despite its potential wide appeal.

Re:Browsers by feanaro on Monday December 17, 2018 @04:12AM (#18697778)
Google is much more at the reigns of Chromium than your comment perhaps illustrates. The only way to really innovate would be to make a full-fledged fork which would soon diverge enough to require as much development resources as Chromium, thereby negating many advantages of a common codebase. Also, even Chromium has many Google-specific features and integrations which make it worrying from a privacy perspective.
Re:Browsers by wvenable on Sunday December 16, 2018 @10:50PM (#18696805)
I completely agree. I think there is a bit of unjustified fear here given that Edge's ridiculously small installed base had absolutely no affect on the browser mono-culture anyway. Most developers did not go out of their way to test in Edge.

This is really no different than the Linux Kernel. People will take KHTML, Webkit, Blink, V8, JavaScriptCore and remix those into dozens of different products all with better web compatibility than something home grown from Microsoft with no chance of adoption.

Re:Browsers by newscracker on Sunday December 16, 2018 @10:42PM (#18696779)
Please read this different take and explanation in this article linked within the main article, titled "The ecological impact of browser diversity", by Rachel Nabors. [1]

[1]: https://css-tricks.com/the-ecological-impact-of-browser-dive...

Re:Browsers by bobajeff on Monday December 17, 2018 @09:54AM (#18699264)
The problem with his analogy is that it make the difference between browsers out to be the difference between a bird and a squirrel when at best it's more like the difference between a falcon and a eagle.

If we really want diversity on the internet we should probably still be using Gopher and other internet clients.

Re:Browsers by nirvdrum on Monday December 17, 2018 @07:07AM (#18698452)
The problems really begin when a browser doesn't want to wait for a standards body. I realize the situation is different with WHATWG now than how this played out in the IE6 days. But when the dominant rendering engine decides to start adding features where the standard hasn't caught up yet, you're arguably no longer doing web programming, but rather Chromium programming.

This sort of thing boxes out other vendors/rendering engines and forces them to have to add non-standard features themselves. Vendor prefixes are not enough. If devs no longer test on non-Chromium platforms, vendor prefixes have to be adopted by non-Chromium engines or risk utter obsolescence. This is also true of Chromium forks. If a fork is a niche player, being open source doesn't buy you much because the Chromium governing body (i.e., Google) still has the lion's market share, and thus the decision-making authority for what the web should look like.

Re:Browsers by dewiz on Sunday December 16, 2018 @10:41PM (#18696774)
> the irony of Microsoft saying this is nearly too much

Where is Microsoft saying that?

Problems with monoculture: lack of innovation, a single agenda being pushed forward, anti-competitive behavior. Google doesn’t want technology X? X is dead. Google thinks Ad platform Y is bad? Y is dead. etc

Re:Browsers by mirimir on Monday December 17, 2018 @04:44AM (#18697901)
Although the Chromium project is ostensibly open-source, Chrome is clearly closed-source. And worse, some Chromium releases have included (or at least pulled) closed-source blobs from Google.

So the whole thing is arguably suspect.

Re:Browsers by new12345 on Sunday December 16, 2018 @10:47PM (#18696793)
Seems like you have yourself answered your question in your list line. One browser owned by one organization could hijack whole internet for its own interests. Just like in any other necessary item we need multiple supple options are good for creating healthy competition.
Re:Browsers by scarface74 on Monday December 17, 2018 @07:57AM (#18698659)
And who would use the forked rendering engine? Would web developers add the forked engine to their test suite?
Re:Browsers by mda on Monday December 17, 2018 @05:47AM (#18698146)
To me biggest reason is security. multiple options gives at least some escape route if one engine screws up. Other is breaking standards, but so far this doesn't seem to be a big issue because of the open nature of blink / webkit.
Re:Browsers by gnulinux on Monday December 17, 2018 @12:36PM (#18700484)
Imagine the entire web (90%) can only run in Google Chrome and Google Chrome stops linux support. What then? Will linux not be able to render 90% of www? What if MS pays Google millions of $ to stop linux and Mac support?
Re:Browsers by vlmlee on Monday December 17, 2018 @02:06PM (#18701215)
Not a criticism of you but an observation: people will say a browser monoculture is bad but have absolutely no problem with a political monoculture.
Re:Browsers by sonnyblarney on Monday December 17, 2018 @12:24AM (#18697051)
The concern is not 'now' it's 'later'.

Google is a business like any other - and when they have the power to lever a monopolized situation - they will.

For example, they may start integrating technologies for which they have exclusive, or at least 'special' access. Can you imagine if all of a sudden Google apps start performing better than anyone else's?

Or what if they integrate technology that de-facto collects usage and behaviour - even from other domains - and then lever that competitively?

The power that Google already has, relatively unregulated is crazy. Remember that Google is the company that could change the outcome of elections ... possibly without us even knowing. They could drive markets up or down at will.

This would probably happen as a 'slow drip' - not one step being close enough to consumer awareness to create problems, and what with 'business friendly' politicians, nary a worry of legislation getting in the way.

They could introduce these technologies under the guise of 'improving user experience' (and maybe legitimately so to start), but other PM's, new CEO's etc. just take the opportunity before them. Why wouldn't they?

We worry a lot about 'Net Neutrality' at the network level, like it's a religion ... but that we don't worry about 'information neutrality' as well I find quite bizarre.

I suggest that having '1 major provider' may be a problem, doubly so if it's an entity like Google, and that frankly we don't really gain much from this fact at all. If Mozilla were the provider, great. Even Apple might be a better choice simply because they are not in the business of managing our information - at least right now, for them, it's a headache, not a revenue source.

So the concern is real.

Re:Browsers by JoshuaJB on Monday December 17, 2018 @04:24AM (#18697824)
"For example, they may start integrating technologies for which they have exclusive, or at least 'special' access. Can you imagine if all of a sudden Google apps start performing better than anyone else's?"

This is already happening. I very recently worked on the Edge team, and one of the reasons we decided to end EdgeHTML was because Google kept making changes to its sites that broke other browsers, and we couldn't keep up. For example, they recently added a hidden empty div over YouTube videos that causes our hardware acceleration fast-path to bail (should now be fixed in Win10 Oct update). Prior to that, our fairly state-of-the-art video acceleration put us well ahead of Chrome on video playback time on battery, but almost the instant they broke things on YouTube, they started advertising Chrome's dominance over Edge on video-watching battery life. What makes it so sad, is that their claimed dominance was not due to ingenious optimization work by Chrome, but due to a failure of YouTube. On the whole, they only made the web slower.

Now while I'm not sure I'm convinced that YouTube was changed intentionally to slow Edge, many of my co-workers are quite convinced - and they're the ones who looked into it personally. To add to this all, when we asked, YouTube turned down our request to remove the hidden empty div and did not elaborate further.

And this is only one case.

Re:Browsers by XCabbage on Monday December 17, 2018 @07:26AM (#18698513)
The behaviour that your co-workers claim Google engaged in sounds pretty exactly like the AMD-Intel antitrust case where AMD alleged that Intel's C compiler was deliberately crippling performance on AMD processors to help Intel's processors compete. If true, Microsoft should sue Google over it - not just out of raw corporate self-interest, but because this sort of conduct is evil and should be stamped out.

If this case hasn't already been run up to Microsoft's lawyers, start running it up to them. You'll be doing the world a service.

Re:Browsers by ksec on Monday December 17, 2018 @10:16AM (#18699404)
What will Microsoft gain if they Win? Nothing. Google has the upper hand in public image. Microsoft is still evil outside of Dev Circles. And IE did some ass moves as well in IE6 era, think about the PR mess this would lead.

It is not the best time to strike now, once the timing is right, I am sure they will.

Re:Browsers by FerretFred on Tuesday December 18, 2018 @09:45AM (#18706659)
"Microsoft is still evil outside of Dev Circles"

TBH, I consider Google much more evil than Microsoft, in or outside of Dev Circles. Microsoft dropped the evil baton and Google picked it up and sprinted away.

Re:Browsers by pjmlp on Monday December 17, 2018 @10:43AM (#18699603)
I wonder whose circles are those, most non-technical people I know doesn't care less about evil, good or whatever.
Re:Browsers by Faark on Monday December 17, 2018 @11:56AM (#18700127)
Google will continue to have the upper hand in public image until stuff like that happens. Yes, this would be a PR challenge, but one MS might even be able to spin in a way they can benefit from...
Re:Browsers by enusan on Monday December 17, 2018 @11:53PM (#18704613)
Agree.

What Microsoft gain after Windows Phone YouTube app case? Nothing. Google successfully fucked up Microsoft.

Re:Browsers by yankdevil on Tuesday December 18, 2018 @07:40AM (#18706046)
There are dev circles where Microsoft isn't evil? I've been a Unix/Linux dev for thirty years so maybe I'm not keeping up, but the general view was that if Microsoft had a platform we needed to target it was because it made us money and we assumed we'd eventually get burned - which nearly every time we did.

And I've worked for Google in the past, but their main issue has always been that they change a lot which makes them a moving target which is annoying in its own way.

Microsoft earned its public image and while it's made nicer noises recently it's not an organisation that fills me with trust.

Re:Browsers by XCabbage on Monday December 17, 2018 @11:19AM (#18699860)
> "What will Microsoft gain if they Win?"

Uh, money? It might not exactly be a noble incentive for a lawsuit, but it's sure as hell an incentive, isn't it?

Re:Browsers by sangnoir on Monday December 17, 2018 @04:58PM (#18702618)
I wonder what sort of information Google might dredge up during discovery that Microsoft wouldn't want to see the light of day. I'm no lawyer/accountant, so I don't know what amount of money would be worth that risk.

With a lot of legal issues, sometimes the only winning move is not to play.

Re:Browsers by gpshead on Monday December 17, 2018 @06:52PM (#18703384)
Re:Browsers by phoenix616 on Wednesday December 19, 2018 @03:03PM (#18719000)
I mean google was recently caught doing the same thing with baidu... https://theintercept.com/2018/12/17/google-china-censored-se...
Re:Browsers by sonnyblarney on Monday December 17, 2018 @06:14PM (#18703153)
"What will Microsoft gain if they Win? Nothing. "

They'll get a more level playing field.

CEO's generally don't order this stuff to happen. More often it's a director, manager, VP or whatever that's just really aggressive. Possibly the CEO knew or not.

When a company gets bloodied for a pile of money, they generally have to own up to it, which makes them look bad (by they way, these things do have a cumulative effect) - but more importantly, they have to at very least 'go through the motions' of getting staff to 'not do this stuff'.

So they have 'training' and 'oversight' etc.. However ingrained it is into behaviour (or even a single rotten apple) the likelihood of recursion goes down.

For example - if an inner legal team gets some responsibility for oversight on these issues, they can make life difficult for managers on these things.

I worked at a Fortune 50 that was sued by a patent troll, and it seriously and fundamentally changed internal culture to the point wherein we needed lawyers involved in everything, it was really bad. Obviously a negative example.

But especially Microsoft has enough $ to drag Google into court, they should do it.

That said: I'll bet $100 that MS might be doing some tricky things of their own anyhow.

Re:Browsers by JaRail on Wednesday December 19, 2018 @12:02PM (#18717088)
Microsoft and Google exist in a bit of a cold war. They don't want to destroy each other in court. You can't just take free shots and not expect a response.
Re:Browsers by eganist on Monday December 17, 2018 @09:31AM (#18699120)
Fascinating. I wonder what the counter-argument would be; that a website isn't software, perhaps? That argument could be sufficiently argued apart by equating manually downloaded/installed software with code that's manually downloaded (GET / host: youtube.com) and run in a browser context.

I'd be curious to see how likely Microsoft would be to follow this approach rather than to just stick to using Blink... as they've already decided to do.

Re:Browsers by bonesss on Tuesday December 18, 2018 @04:14AM (#18705393)
The counter arguments are a) broken rendering in your browser does not dictate how my websites have to be, and b) since when is Google a monopoly on standardized HTML web video?

Google could start responding to YouTube requests with binary streams of gibberish if they want, MS would only have standing to sue as a content creator and advertiser on YouTube.

If Google is reverse engineering other browsers optimization paths and putting out content that is disagreeable to that optimization, that's possibly unfortunate but not illegal.

Re:Browsers by eganist on Tuesday December 18, 2018 @12:36PM (#18708555)
a) A broken reference C compiler don't dictate how a different C compiler might act -- in reference to the case which Intel lost.

b) since Google's browser became the defacto standard browser thanks to Edge switching engines, hence the thread. The standard doesn't really matter anymore; Google makes most of them now as a matter of course anyway.

Re:Browsers by rst on Monday December 17, 2018 @10:05AM (#18699332)
Another example: on Android, look up scores of an ongoing sports event on mobile Chrome, and mobile Firefox. Mobile chrome gets you a box saying what the score actually is; mobile firefox just shows you the links to sports-league and news sites that you see under the score in mobile Chrome.

Click the "show desktop view" page on mobile firefox, reload, and suddenly the score is there. They're not discriminating that aggressively against competing desktop browsers. Yet.

Re:Browsers by elven_lord on Tuesday December 18, 2018 @07:42PM (#18712003)
I'm surprised by how much less attention this gets. I couldn't use firefox or any other browser because google searches in chrome brings up results like if you were within the google app. But use any other browser and you'll just get the legacy layout and links to pages.
Re:Browsers by magicalist on Monday December 17, 2018 @02:32PM (#18701430)
> For example, they recently added a hidden empty div over YouTube videos that causes our hardware acceleration fast-path to bail (should now be fixed in Win10 Oct update). Prior to that, our fairly state-of-the-art video acceleration put us well ahead of Chrome on video playback time on battery, but almost the instant they broke things on YouTube, they started advertising Chrome's dominance over Edge on video-watching battery life.

Huh?

First, I can find nowhere that Chrome claimed to have better video-watching battery life (in fact, popular tech sites mention improving but still worse[1]).

Second, the only dip I can find in the public Edge battery life tests[2] was

April 2017 - 12.5 hours

Dec 2017 - 16 hours

May 2018 - 14.3 hours

vs Chrome's 9.3, 13.5, and 12.5 hours. Which means whatever happened last spring, Chrome also dipped.

And third, how about we talk about the kind of web browser battery benchmark based on playing fullscreen video and is defeated by adding a single hidden div? It's not testing battery life of a representative sample of what a web browser is actually used for (especially over 12+ hours), and obviously wasn't very resilient in the face of what a web browser has to actually handle.

Honestly it sounds like they added a div for unrelated reasons (accessibility, "security", ads, who knows), thought it was worth the performance tradeoff (or never measured), and it indirectly ended up making Edge better for real web content (as of the Win10 Oct update).

[1] https://arstechnica.com/gadgets/2018/05/edge-still-boasts-be...

[2] https://www.youtube.com/playlist?list=PLWs4_NfqMtoxOT8E8d5KP...

Re:Browsers by cramforce on Monday December 17, 2018 @04:29PM (#18702383)
Counter anecdote: As a Google engineer it always seemed like Edge implemented the sparsest possible version of the web platform to make major Google products work–and literally nothing else. That works to launch the browser, but then basically any product change runs a chance to no longer fall into that sparse subset and break in a browser. If Edge had implemented a more robust set of features, it would have massively improved compatibility down the road.
Re:Browsers by Mil0dV on Monday December 17, 2018 @04:54PM (#18702587)
Features like empty divs on top of video? Could be by accident ofc, but the entire story makes this unlikely.
Re:Browsers by magicalist on Monday December 17, 2018 @05:35PM (#18702894)
> Features like empty divs on top of video? Could be by accident ofc, but the entire story makes this unlikely.

I'd suggest inspecting a few sites you watch video on. An empty div is the least weird thing you'll find.

Re:Browsers by pcwalton on Monday December 17, 2018 @07:28PM (#18703568)
I highly suspect that the issue is that Windows video playback can only use scanout compositing if there is nothing on top of the video. Scanout compositing is significantly more energy-efficient than standard framebuffer compositing because it avoids a memory copy each frame.

This ultimately comes down to hardware limitations. GPUs are limited as to what they can compose during scanout, because of memory bandwidth limits. Each plane that you can alpha-blend together at scanout time multiplies the amount of memory fetches per dot you have to do. On today's high-DPI displays, the bandwidth going out to the display is very high to begin with, so you can't afford to multiply that by much. That is why putting something on top of a video is tricky: you're adding another layer to be alpha-blended on top, increasing your memory bandwidth by 50% over the two layers you already have (RGB for the background plus YUV for the video). The user's GPU may or may not support that--as I recall, prior to Skylake, Intel GPUs only had two hardware planes, for instance.

I'm not surprised that Microsoft just used "are there any DOM elements over the video?" as a quick heuristic to determine whether scanout compositing can be used. Remember that there is always a tradeoff between heuristics and performance. At the limit you could scan every pixel of each layer to see whether all of them are transparent and cull the layer if so, but that would be very expensive. You need heuristics of some kind to get good performance, and I can't blame Microsoft for using the DOM for that.

Re:Browsers by magicalist on Monday December 17, 2018 @07:52PM (#18703679)
> You need heuristics of some kind to get good performance, and I can't blame Microsoft for using the DOM for that.

which, again, that's fine, but mayyyyybe they were a little lax in checking performance on nearly any other popular video site on the web to see if that heuristic is a good one?

Or maybe changing page layout in an extremely common way wasn't an effort to undermine a hyper specific benchmark?

Re:Browsers by pcwalton on Monday December 17, 2018 @08:23PM (#18703828)
How many sites put invisible DOM elements over the videos?

Remember, if you put visible DOM elements on top of the videos, then you lose scanout compositing no matter what.

Re:Browsers by magicalist on Monday December 17, 2018 @08:46PM (#18703922)
> How many sites put invisible DOM elements over the videos?

A lot of them? Vimeo, for instance, has a number of opacity: 0 and hidden divs over the video. Twitch has at least a couple of opacity: 0 divs on top.

Maybe we're interpreting the phrase

> hidden empty div over YouTube videos

differently? That's the structure I assume they were talking about.

Re:Browsers by seba_dos1 on Tuesday December 18, 2018 @01:30AM (#18704902)
I'd assume that it was actually an invisible, but not technically hidden div, leading to a fully transparent blending pass - divs with opacity:0 or display:none are trivial to optimize for this case.
Re:Browsers by magicalist on Tuesday December 18, 2018 @03:43AM (#18705284)
> I'd assume that it was actually an invisible, but not technically hidden div

Considering that it's now optimized and that's not what the original post said, I don't know why you'd assume that.

Re:Browsers by catwell on Tuesday December 18, 2018 @08:46AM (#18706317)
There are visible elements on top of YouTube videos.

That's what this "empty div" is for if that's the one I think it is. It is the container for things like branding and annotations.

Re:Browsers by DrPizza on Monday December 17, 2018 @06:05PM (#18703096)
On the other hand, pretty easy how such a div might trigger a less efficient path; if the video is top in the z-order then it can probably bypass being composited by the browser (and who knows, maybe even bypass being composited by the OS) and avoid a whole mess of rendering to a texture, texturing some triangles, and so on and so forth.
Re:Browsers by magicalist on Monday December 17, 2018 @06:33PM (#18703276)
ha, just saw your story over on ars.

FWIW, I think you're a little credulous there; as I mentioned in my other comment[1], I can't find anything stating that Chrome starting beating Edge at the test (their videos actually claim the opposite) or anybody from Chrome boasting about it (articles from the time like yours[2] also say the opposite).

> On the other hand, pretty easy how such a div might trigger a less efficient path

I mean, sure, you can always fall off the fast path, but given how common transparent divs over video are, the battery benchmark should have come with even more caveats. Edge is the most battery efficient browser†!

† for playing fullscreen video††

†† Battery test not valid if the page doesn't use the exact layout youtube used in December 2017. Also not valid if testing vimeo, or twitch, or any porn site, or...

[1] https://news.ycombinator.com/item?id=18701430

[2] https://arstechnica.com/gadgets/2018/05/edge-still-boasts-be...

Re:Browsers by DrPizza on Monday December 17, 2018 @08:46PM (#18703925)
I don't think the performance claiming is really the important part here; it's doing something that lacks any real reason but which hurts Edge.

And while I agree that video overlays are common, I also think it's reasonable for such overlays to revert to a slightly less efficient path.

Re:Browsers by bonesss on Tuesday December 18, 2018 @04:22AM (#18705416)
> it's doing something that lacks any real reason but which hurts Edge.

In my own web development activities I can point to hundreds upon hundreds of hidden, invisible, and obscured DOM elements that have no obvious reason to for existing to someone outside the code-base where you find the commen explaining the required work around, browser hack, or legacy constraint. I've also experienced wildly divergent performance on MS browsers compared to others when creating content, often from something as trivial as DOM order or composition.

Clearly Google owes me some money for my part in their ongoing conspiracy to hurt Edge. I'm flexible, I'll accept GCE credit :)

Re:Browsers by magicalist on Tuesday December 18, 2018 @04:05AM (#18705351)
> it's doing something that lacks any real reason but which hurts

Hey, there's a new div in the DOM, the only possible reason for a change like that is so Chrome can advertise about beating Edge on a benchmark nobody cares about? Even though they never beat Edge on it and this "advertising" never took place?

This was the credulity I was talking about. These events didn't happen (you literally wrote the stories plural! about edge winning the benchmark) and the motivations make no sense. I'm not sure why you'd repeat it without even a warning that it may just be a narrative made up from grumblings about fixing a fast path heard third hand.

Re:Browsers by fefe23 on Tuesday December 18, 2018 @08:50AM (#18706347)
Speak for yourself, please.

I do care about video playback battery performance. So much so, in fact, that I bought my current laptop specifically so it would last long when watching videos.

Also note that tablets, smartphones, the Macbook Air and the Surface are sold on their battery stamina, and specifically while watching videos. And how would you measure that? Youtube, of course!

Re:Browsers by magicalist on Tuesday December 18, 2018 @01:05PM (#18708856)
> And how would you measure that? Youtube, of course!

Makes total sense, but if you're over-fitting for Youtube's exact layout in 2016, you're eventually going to have to update your optimizations. Sites don't stay the same forever.

Re:Browsers by sangupta on Wednesday December 19, 2018 @10:17PM (#18722228)
I fail to understand how an empty DIV can break a state-of-the-art video acceleration. Why not add another check to remove such empty HTML tags before hand.

Also, what can explain Edge failing to load Azure dashboard - was that a Google bug too? Ref: https://www.youtube.com/watch?v=5zMbfvEHlTU

Re:Browsers by mcphage on Thursday December 20, 2018 @12:11AM (#18722653)
> Why not add another check to remove such empty HTML tags before hand.

Sure, and they did. And then next month it’ll be something else, and a new check. The next month it’ll be something else yet again, and yet another check. Pretty soon Microsoft’s codebase is littered with checks and guards against the random things Google does, and they’ll still always be a deploy behind. Google could keep this up for years.

Re:Browsers by centurion666 on Tuesday December 18, 2018 @01:48AM (#18704957)
These assumptions truly seem as a random conspiracy theory an intern would write who does not have any idea of how a big company of this sort actually works.

Google of today is a collection of disjointed silos which don't work well together or they work together at all. The leadership of those silos is being aggressively staffed by "industry veterans" VPs and SVPs from Oracle, HP, Motorola and alikes. These folks build their little empires, not products. NIH spreads, internal "competition" starts, etc. This story should sound familiar to more experienced people from Microsoft... they've seen this development phase, they know what I am talking about... Microsoft's name for that was "IBM", Google simply calls that "Microsoft". And when you hear "We are not THAT yet" and people have need to say it, you probably turned into THAT.

Anyway, The idea of Chrome being so aligned with Youtube - over such minor gains over Edge - would today be just a wishful thinking. Until some major, major restructuring and changes to their recent corp "culture", Google will simply remain incapable of driving waaaaay more important product development changes across its product surfaces than this.

Re:Browsers by perilunar on Monday December 17, 2018 @07:48AM (#18698623)
That sort of behaviour should be called out and publicised widely.

Given how easy it is to delete an offending div using the dev tools, it would be easily verified by web developers. There'd be a thousand blog posts and news stories saying "Google deliberately sabotages Edge on YouTube" and the public blowback would be pretty damaging I imagine.

Re:Browsers by aloisdg on Tuesday December 18, 2018 @08:52AM (#18706358)
Re:Browsers by Ascarius on Wednesday December 19, 2018 @06:27AM (#18714915)
The developer which added that invisible div responded: https://medium.com/@jeremy.noring/did-google-cripple-edges-y...
Re:Browsers by nickspag on Wednesday December 19, 2018 @01:44PM (#18718119)
That is random conjecture from someone who also did that for completely different reasons on something else. Admittedly so too is the OP's post, with the added (although unsubstantiated) comment about YouTube refusing to change.

As an aside- his points on why Chrome is a monoculture misses the point. Chrome is a monoculture for the same reason almost every other thing becomes at monoculture. It was, at one point, deserving of it as a product. Whether it was naturally the only one or the best. But now, they might not be the best out there. And when they go on to create barriers to competitors and lock-in, thereby making them artificially dominant, that is an anti trust case in the making, if the U.S. Justice Department had any teeth in that area.

Re:Browsers by jamiekitson on Wednesday December 19, 2018 @09:17AM (#18715721)
That's a developer that added an invisible div.
Re:Browsers by JaRail on Wednesday December 19, 2018 @12:40PM (#18717523)
To clarify, that's to say it's a response by an engineer, but NOT a Google engineer who was involved with YouTube.
Re:Browsers by thatawesomeguy on Wednesday December 19, 2018 @06:32AM (#18714938)
That's not the dev that added it, the article is from someone who has done something similar, not someone who works at Google.

It doesn't confirm Google's reasoning for the div

Re:Browsers by ineedasername on Tuesday December 18, 2018 @06:04PM (#18711431)
I'm a little skeptical... when an intern claims a single empty div tanks performance from hardware acceleration that is presumably robust enough to handle much weirder stuff, this comment starts to look a bit more like a conspiracy theory account if the demise of Edge.
Re:Browsers by joepie91_ on Tuesday December 18, 2018 @06:30PM (#18711582)
It sounds plausible to me. Overlaying something onto a hardware-accelerated thing suddenly adds a compositing step to your rendering pipeline, which - usually - requires moving the compositing to your GPU as well, AFAIK.
Re:Browsers by ineedasername on Tuesday December 18, 2018 @07:20PM (#18711889)
I just don't buy that any halfway decent hardware acceleration isn't robust enough to handle it. In fact they managed to fix whatever the issue was in a later release, which bolsters the argument that their process wasn't robust enough to begin with. With no other evidence here I'm invoking Hanlon's Razor.
Re:Browsers by vidarr on Wednesday December 19, 2018 @02:15AM (#18713788)
Self-defense I would call this move of Google: Some weeks ago I stumbled upon a win 10 laptop I should set up for family. As soon as I installed Firefox, windows started bugging me with popups like "We encountered you use an third party browser. This might pose a serious security thread - do you want to switch to Edge?" and stuff about this browser slowing down the system along with urging me to switch to Edge. Microsoft just still exploits its market share - so why shouldn't Google do the same to counter?
Re:Browsers by JBiserkov on Wednesday December 19, 2018 @11:49AM (#18716964)
>so why shouldn't Google do the same to counter?

Because it's EVIL!

Also, have you tried opening Google.com, GMail, YouTube or Translate in Edge? You are bombarded with prompts to install Chrome. There is no way to disable them, not even when logged in.

Re:Browsers by bjornstar on Tuesday December 18, 2018 @10:18PM (#18712741)
This is the feature where you can scroll down during full-screen videos that they rolled out a few weeks ago. Sure, advertising that their new feature performed better on their own browser is kinda shitty, but I really don't care about supporting Microsoft's garbage web platform that I have to run in a VM. If they had Edge on Linux and MacOS I might feel sorry for them, but nah.

Nothing is going to make me feel bad for Microsoft losing market share. This is the company that silently disabled microphone access for Chrome because it wasn't installed via the Microsoft store. I spent a month trying to figure out why my microphone suddenly wasn't working in any of my web apps. As much as I dislike what Google is doing, Microsoft has been doing far worse for much longer.

Re:Browsers by kipkniskern on Monday December 17, 2018 @09:30AM (#18699111)
These are, however, changes to Chrome and not Chromium, right? Even with a move to Chromium, anyone/everyone is still going to be playing catch up to Google. Having an open source engine means next to nothing if Google plays these kinds of games, abusing its dominant position. Having Edge updates tied to OS updates seems to be more of a problem than EdgeHTML itself, unless there are other issues (and there probably are) in play.
Re:Browsers by Manishearth on Monday December 17, 2018 @03:33PM (#18701903)
Chrome and Chromium share the same engine, and for this stuff it is the engine that matters.
Re:Browsers by WorldMaker on Monday December 17, 2018 @06:03PM (#18703087)
For now, at least. AOSP and Android "share the same engine", supposedly, but API footprint standardized in AOSP is getting drastically distanced from the API footprint moved behind Google Play Services and other proprietary bulkheads. The number of APKs that run on non-Google Play enabled AOSP builds has dwindled fast in the last few years. (Just ask Amazon.)

What's to stop "YouTube needs Genuine Chrome™ with Google Play® Support Services Installed"?

Re:Browsers by bonesss on Tuesday December 18, 2018 @04:27AM (#18705440)
What's to stop that now?

They could throw up a check and have "Youtube requires Chrome XX.X with the Evil-DRM plugin enabled" live whenever they want. It's the relevant market forces and ecosystem.

Re:Browsers by ttty2 on Monday December 17, 2018 @05:29AM (#18698076)
I think it's interesting. Did you investigate why they added that div?
Re:Browsers by ericlaw on Monday December 17, 2018 @08:51AM (#18698891)
Many "irrational" decisions are related to interactions with anti-bot/anti-fraud logic.

I worked on IE in the days when there were many crazy conspiracy theories about silverlight and IE collaborating to ruin the open web. This sounds similar.

Re:Browsers by jansan on Tuesday December 18, 2018 @10:37AM (#18707212)
We often use empty DIVs for catching mouse events.
Re:Browsers by MartinThoma on Saturday December 29, 2018 @03:57AM (#18782730)
> For example, they recently added a hidden empty div over YouTube videos that causes our hardware acceleration fast-path to bail

Correlation does not imply causation: Yes, it might be true that companies make changes to their products that break stuff somewhere else. But to claim that it is done intentionally is very far fetched. Especially when you have to support so many different environments, it is close to impossible to thoroughly check all of them. Demanding that the performance is good even goes one step further than just demanding the service works.

Re:Browsers by AtlasBarfed on Wednesday December 19, 2018 @03:03PM (#18718989)
I have little sympathy for any Microsfot product that gets bullied in this manner. Christ, this has all the oldie hits of microsoft:

- embrace and extend standards - secret apis - advocate for standards, then drop them for proprietary ones - perform hidden changes that make competitors look bad - then tout your advantages loudly

The only thing missing is outright paying people to not support your competitors.

Firefox, however, I feel bad for. Nerd advocacy was partially responsible for Chrome's rise to popularity, but the time has come to advocate for Firefox.

Re:Browsers by TheRealDunkirk on Tuesday December 18, 2018 @06:35AM (#18705829)
I just started a new job at a MASSIVE international conglomerate. I was literally told that an intranet site I needed to use would only work in IE, and that it specifically would fail to render fields if I used Chrome. It's a little disingenuous to hear these kinds of complaints coming from the company which distorted the browser market so badly that the world is still paying for it 20 years later.
Re:Browsers by pitkali on Tuesday December 18, 2018 @07:34AM (#18706016)
So now it's okay because it's done to an actor that you consider deserving of such treatment? People said such behaviour is wrong, so they changed their act. Why wouldn't you hold others accountable to the same standard? What is the point of listening to the criticism and correcting your behaviour if it will be okay for others to keep punishing you?

Seems counterproductive to me.

Re:Browsers by ianrbuck on Friday December 28, 2018 @05:24PM (#18779966)
Exclusive access is exactly why I switched to Chrome back in the day. When they started offering features like offline Gmail access that was only available on Chrome, you bet I was intrigued. And even today, things like copy/paste keyboard shortcuts on Google Docs only working in Firefox still abound.
Re:Browsers by chagolchana on Thursday December 20, 2018 @06:26AM (#18724013)
Re:Browsers by Reziac on Sunday December 23, 2018 @01:10PM (#18747419)
Google Maps has been doing something nasty to non-Chrome browsers for several years now -- started about the time of the Great Interface Overhaul.

So, color me astonished, not.

Re:Browsers by sudovancity on Wednesday December 19, 2018 @11:01AM (#18716531)
I guess I shouldn't be surprised with how shady Google has been over the past couple of years, but this is still pretty wild, thanks for sharing.
Re:Browsers by MkMoksha on Monday December 17, 2018 @07:40PM (#18703633)
Well why microsoft made IE default browser on windows pc and why SharePoint doesn't work well with non IE browsers and why excel still can't Handel vba loops and why Skype takes few seconds when multiple users ping one user and Microsoft still charges for licensing.. Its the battle to be lesser of the evils
Re:Browsers by JaRail on Wednesday December 19, 2018 @12:51PM (#18717637)
As far as SharePoint goes, the current versions should work just as well (usually better) in Chrome. Should be mostly on par since the 2013 release.

The biggest feature difference for SharePoint cross-browser has historically been with the ActiveX controls. Say you had Word installed, there was a control to open documents with Word. As in, you could click save/view/edit rather than just whatever the browser default was. Or with Skype, to see a user's available/busy/away status next to their name on a SharePoint page. So if you're looking at a wiki or calendar for something, you might go "oh, the author is free, I can just ask." Chrome's plug-in model was much stricter than ActiveX. That's why you'd see some features in IE but not Chrome.

Re:Browsers by JohnBooty on Tuesday December 18, 2018 @08:55AM (#18706379)
Thank you for posting this.
Re:Browsers by gregknicholson on Monday December 17, 2018 @06:49AM (#18698379)
Antitrust?
Re:Browsers by technomage82 on Monday December 17, 2018 @04:50PM (#18702561)
didn't MS did the same thing in the past?
Re:Browsers by Tolomir on Tuesday December 18, 2018 @03:50PM (#18710414)
and it was ok with drdos and windows 30 years ago. Now let's eat your own dogfood.....
Re:Browsers by vidarr on Tuesday December 18, 2018 @07:08PM (#18711822)
Self-defense I would call this move of Google: Some weeks ago I stumbled upon a win 10 laptop I should set up for family. As soon as I installed Firefox, windows started bugging me with popups like "We encountered you use an third party browser. This might pose a serious security thread - do you want to switch to Edge?" and stuff about this browser slowing down the system along with urging me to switch to Edge. You guys at Microsoft just still exploit your market share - so why shouldn't Google do the same to counter?
Re:Browsers by dkzlv on Monday December 17, 2018 @09:10AM (#18698980)
The best part of this anti-trust browser conspiracy is that it involves Microsoft — but now, as opposed to the IE dominance in the 00's, Microsoft is the victim. So ironical. How's the taste of your own medicine? :)
Re:Browsers by eganist on Monday December 17, 2018 @09:27AM (#18699086)
> So ironical. How's the taste of your own medicine? :)

How is this productive?

Re:Browsers by quanticle on Monday December 17, 2018 @01:21AM (#18697248)
For example, they may start integrating technologies for which they have exclusive, or at least 'special' access. Can you imagine if all of a sudden Google apps start performing better than anyone else's?

They've already started. Google Meet (their version of Hangouts for enterprise) didn't work on non-Chrome browsers for a very long time. If you tried to do a video call with a non-Chrome browser, you were told to install Chrome and load the page in Chrome. The only reason they were able to get away with this is because Chrome has the high market share that it does. If they'd done this when Chrome had 10% market-share, the response from users would have been to stop using Google Meet. However, because they did this when Chrome has 70% market share (and climbing) there was hardly any outcry; those who didn't already have Chrome installed gave a resigned sigh and installed Chrome in order to participate in their work meetings.

Currently, all of Google's services work on non-Chrome browsers. But will that always be the case? I can very well imagine a world where Google starts making its services Chrome-only, citing, for example, that only V8 has the necessary Javascript performance to run Google's increasingly bloated webapps with adequate performance.

Like you said, it'll start as a slow drip, with the least popular and most obscure applications (for example: Google Play Music) being moved over first. Then, as users fail to object, they'll move over larger and larger applications. Even if they never make the "big-two" of YouTube and Google Search Chrome-only, they'll still be exerting a fair amount of pressure for users to switch to Chrome.

Re:Browsers by pritambaral on Monday December 17, 2018 @06:21AM (#18698270)
> Currently, all of Google's services work on non-Chrome browsers.

Google Earth is Chrome-only, because they use the Chrome-only NativeClient.

Google Hangouts dropped calling support on non-Chrome browsers for quite a while: https://news.ycombinator.com/item?id=15889018

YouTube (and perhaps GMail) is extra slow on non-Chrome browsers because they use a dropped-and-never-standardised feature that is available only on Chrome, and force a slow polyfill on Firefox (and perhaps Edge): https://twitter.com/cpeterso/status/1021626510296285185

Re:Browsers by rictic on Monday December 17, 2018 @03:13PM (#18701765)
> YouTube (and perhaps GMail) is extra slow on non-Chrome browsers because they use a dropped-and-never-standardised feature that is available only on Chrome, and force a slow polyfill on Firefox (and perhaps Edge): https://twitter.com/cpeterso/status/1021626510296285185

I work on the Polymer team at Google, and have worked with YouTube on this. I can promise you that the folks at YouTube are working very hard on porting to the specs that are supported crossbrowser. Switching to the final versions of the specs is super high priority for all of us, there were just some changes between v0 and v1 that are hard to paper over, and as you might imagine, YouTube has a lot of code.

> Google Earth is Chrome-only, because they use the Chrome-only NativeClient

My understanding is that if it weren't for spectre, cross-browser Google Earth would very likely be shipping today. There is a web assembly version of Earth, but it needs threads and SharedArrayBuffer, which is disabled in most browsers today because of spectre-class security issues.

https://medium.com/google-earth/earth-on-web-the-road-to-cro...

https://developers.google.com/web/updates/2018/02/meltdown-s...

Re:Browsers by danShumway on Monday December 17, 2018 @07:19PM (#18703523)
> there were just some changes between v0 and v1 that are hard to paper over

From my point of view, the moral of this story is that Chrome shouldn't be shipping v0 specs that are on by default.

It's not that people like me want to be cynical conspiracy theorists, it's just really frustrating to watch Google ship an unfinished API that's on by default, integrate it so tightly into its core products that it can't be easily updated after the spec changes, and then just kinda... sit on it. And it's really convenient that whenever Google messes up standards, it just happens to mess them up in a way that makes Chrome look better to normal users for all of its core products.

Heck, it's frustrating that Chrome is still shipping the v0 implementation. I don't want to be vindictive or bitter, but engineers on the Polymer team clearly thought the polyfill was fast enough for Firefox. They don't think it's fast enough that Chrome could be using it now?

I don't think I'm being a conspiracy theorist when I say that probably the reason why Chrome still ships with a working v0 implementation is because Youtube uses it. And it makes me feel weird to have a dominant browser deciding to contradict a standard because it makes a Google site fast. I think that's problematic and harmful for the open web.

So even though I know that the team's intentions are good, the intentions do nothing at all to mitigate or fix the harm. And I'm sure you can understand that when people talk about the dangers of a browser monoculture, it is exactly this kind of thing that we're afraid of. A lot of us feel like Google dev teams don't really have much respect for standards or community processes. Google tends to have an attitude that standards will always go the way it wants, and if other browsers are behind on that, we just need a little polyfill or stopgap or something until they catch up. Certainly they won't decide to go in a different direction.

Is that going to get better when Chrome has 95% market share? Won't Google devs feel even more emboldened to ship v0 implementations that disregard the standards process? Are there any new safeguards or internal policies being put into place to prevent devs working on Youtube or Gmail or Maps from building core infrastructure around browser APIs that haven't been standardized yet?

Re:Browsers by pritambaral on Monday December 17, 2018 @11:39PM (#18704559)
> I can promise you that the folks at YouTube are working very hard on porting to the specs that are supported crossbrowser.

I'm sure the folks at YouTube are working very hard on porting to the Web standard, but the truth of the matter is:

1. Non-Polymer YouTube works just fine, and yet isn't served on Firefox and Edge;

2. Chrome shipped and continues to support a Chrome-only "standard", which is never going to be a Web standard, for some reason;

3. YouTube, a sibling product of Chrome, and supposedly a Web app, built a whole redesign around this when it wasn't even a Web standard, or even available in more than one browser, and now apparently can't do without, without dragging every browser that YouTube is not related to down.

On these counts, the apparent favouritism is clear.

> there were just some changes between v0 and v1 that are hard to paper over

I believe you. I also see that there's a polyfill for this. And yet, YouTube doesn't (need to) use it in the one browser that it's parent company makes?

> My understanding is that if it weren't for spectre, cross-browser Google Earth would very likely be shipping today. There is a web assembly version of Earth, but it needs threads and SharedArrayBuffer, which is disabled in most browsers today because of spectre-class security issues.

You mean, if it weren't for Spectre, a Web version of Google Earth would very likely be shipping today, using WebAssembly. Google Earth is currently available for the desktop in these forms: A native version, and a Chrome app. Yes, Chrome also happens to be a browser, but it is not just a browser, and Google Earth does (heavily) depend on its non-browser parts.

So, naturally, questions arise:

1. If it weren't for things like Google Earth and Hangouts, would Chrome's NativeClient still be around?

2. If it weren't for Chrome's NativeClient, could Google Earth and Hangouts have become the products that they have?

The answer to the second is easy: Hangouts did exist as an NPAPI plugin for a while, and does currently work on non-Chrome browsers via WebRTC, so it certainly could have used the exact same features on Chrome, and Google Earth has always had an installable, native, desktop version.

Re:Browsers by rictic on Friday December 21, 2018 @08:24PM (#18738264)
> 2. Chrome shipped and continues to support a Chrome-only "standard", which is never going to be a Web standard, for some reason;

It's going to be unshipped around April.

Chrome shipped the v0 spec in order to prove out that the specifications were valuable and worth implementing. It took time to get the other browsers on board. Writing a major application like YouTube with the specs provided a lot of valuable feedback for the final version of the specification.

Today, the other browsers are very much on board with these specs, Firefox is even rewriting many parts of their UI with these same specs. Three years ago there was more skepticism, and by building real world applications we could figure out what works and what doesn't, and address the (very reasonable) questions that people had about their design.

> I believe you. I also see that there's a polyfill for this. And yet, YouTube doesn't (need to) use it in the one browser that it's parent company makes?

YouTube does actually use the Shadow DOM polyfill today, even in Chrome, and Shadow DOM is definitely the most complicated and arguably the most performance-critical spec involved. Polymer v1 uses the Shadow DOM polyfill by default even in Chrome because if it used native Shadow DOM it would be too easy to write an app that would only work properly in Chrome.

> You mean, if it weren't for Spectre, a Web version of Google Earth would very likely be shipping today, using WebAssembly.

Would you prefer that the NativeClient version of Google Earth not exist at all? The work that went into NativeClient has contributed to the wasm spec, and (I assume, but don't actually know) the NativeClient version of Google Earth was the basis of the wasm version.

Speaking just for myself, like, I get what you're saying, but I'm not sure how to actually translate it into action. If no one had used the v0 web component specs, then the v1 specs might never have gotten adopted at all, or at least would have been specified with way less experience on the table for how they need to work in the real world.

NativeClient is somewhat similar. It was a proposed standard that informed will (hopefully soon) be superceded by a final standard which could build on the lessons learned in building NativeClient.

Someone is going to be the first to ship a new feature. For a while, asm.js applications were really only usable in Firefox. They would technically run in other browsers through what amounted to a JS polyfill, but not very well. But Firefox's asm.js work was really good for the web, because they were able to gather a lot of real world info on how asm.js and similar techniques work in the wild.

Same thing with WebVR. As I recall, for a while Firefox was the only browser shipping experimental support for virtual reality in the web browser (someone correct me if I'm wrong here). Yes it's annoying when something works better in one browser than another, but how do you add new features to the web platform without experimentation and getting real world use?

The important thing is that the insights from shipping the experiment make it into a open specifications that are implemented cross browser.

Re:Browsers by proaralyst on Monday December 17, 2018 @10:08AM (#18699345)
They use a polyfill for Firefox on Youtube because of a never-standardised feature too: https://twitter.com/cpeterso/status/1021649116391075840
Re:Browsers by gsich on Monday December 17, 2018 @07:37AM (#18698564)
Google Earth has a desktop version too.
Re:Browsers by eridius on Monday December 17, 2018 @03:05AM (#18697559)
Google Meet still doesn't work with Safari, with no explanation. Safari supports the latest WebRTC, and AIUI Google Meet uses the current WebRTC standard, so why does Google refuse to let it work on Safari? This has to be deliberate.
Re:Browsers by StudentStuff on Monday December 17, 2018 @05:00AM (#18697963)
Safari has purposefully neutered WebRTC, both Firefox and Google have full codec support while Apple tries to push H.264 only, plus things like web push still doesn't work on iOS: https://webrtchacks.com/safari-webrtc/

Google Meet also appears to have updated to support the WebRTC spec (rather than the oddball implementation Chrome had) so long as your browser supports it: https://blog.mozilla.org/webrtc/firefox-is-now-supported-by-...

Re:Browsers by ksec on Monday December 17, 2018 @10:22AM (#18699452)
I thought H.264 is free for Software Decode? Supported in Firefox as well. There is no reasons why Apple should support VP8 / 9 Which is a Google's Codec, even though it is free of charge.
Re:Browsers by StudentStuff on Monday December 17, 2018 @05:33PM (#18702881)
H.264 isn't free, Cisco is footing the licensing bill for support in most software (including Firefox): https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Implementatio...

This is why Mozilla is pushing AV1 and VP8/VP9 so hard, being stuck with H.264 as the whole industry migrates to H.265 due to bandwidth savings is a major impediment, and the licensing body could easily extract usurious rent for H.265 if it becomes the only reasonable option: https://hacks.mozilla.org/2018/08/the-video-wars-of-2027/

Re:Browsers by ksec on Monday December 17, 2018 @09:28PM (#18704089)
Sorry I got mixed up, but it should be free for anyone which has H.264 hardware decode. Which is like 95%+ of All PC / Tablet / Smartphone sold in the last 5+ years.

And that article from Mozilla, I remember it, worst article from Mozilla for as long as I remember ( That is since Netscape Era ).

Re:Browsers by StudentStuff on Monday December 17, 2018 @09:39PM (#18704137)
Rejecting VP8/VP9 due to Google's involvement is silly and pointless, they're free to use codecs that are much more efficient than H.264. Apple has made its choice to push H.264 & H.265 due to their vested interest in the licensing revenue they stand to gain via the MPEG LA.
Re:Browsers by gruez on Monday December 17, 2018 @11:26PM (#18704522)
Apple has made its choice to push H.264 & H.265 due to their vested interest in the licensing revenue they stand to gain via the MPEG LA.

If that’s true, why are they a member of the AOM, which promotes the royalty free av1?

Re:Browsers by StudentStuff on Tuesday December 18, 2018 @04:11AM (#18705376)
How long can Apple push against all of the major content providers? Google, Netflix, Mozilla, AT&T & the plethora of other streaming providers will not fully support H.265, and Apple doesn't want to not have a seat at the table as they build a codec to supplant it.

I think this is a repeat of the USB C engineering participation by Apple, they may roll it out to their tiny MacOS install base, but it could be years before AV1 is supported on iOS. Safari on iOS is where Apple likes to draw its line in the sand, it also happens to be where they have nearly 1 billion users, versus 70 million on MacOS: https://ngcodec.com/news/2018/10/9/whats-in-a-codec-hevc-ver...

Re:Browsers by eridius on Monday December 17, 2018 @03:04PM (#18701700)
While it's true that Safari only supports H.264, Google already produces quite a lot of H.264 video. In fact, Google has a Google Meet iOS app; I don't suppose you have any idea if they push H.264 to that app, or if they've actually embedded a software VP8/9 encoder/decoder into the app? I sincerely hope it's the former for battery life reasons if nothing else (though we already know Google doesn't seem to care about power efficiency).

What does Web Push have to do with WebRTC?

Re:Browsers by StudentStuff on Monday December 17, 2018 @05:26PM (#18702827)
WebRTC was created to replace the need for apps that handle calling, without web push notifications (like every other WebRTC supporting browser has) there is no way for inbound calls to cause the phone to receive a notification unless Safari is open and has the webpage pulled up.

WRT VP8/VP9, bandwidth is much more of a concern than you make it out to be. Network bandwidth on mobile devices is inconsistent, unstable, and often relatively low (say hello to congested towers, or fringe 700Mhz coverage where 500Kbps is all you get :P), thus the best compression possible ensures that video quality and usability is top notch.

By restricting video to H.264, your stuck with a legacy codec that has relatively poor compression rates compared to the other standardized codecs. Is it good for interop with a 2005 era deskphone? Sure, but not much else.

Re:Browsers by eridius on Tuesday December 18, 2018 @02:43AM (#18705110)
Google Meet is a video conferencing app, not a telephone replacement. AFAIK there's no way to "call" someone. So Web Push seems to be rather irrelevant.

> Network bandwidth on mobile devices is inconsistent, unstable, and often relatively low

I'm not using Google Meet on a cellular network. I'm using it on a wifi network. And if it comes to it, I'd rather have slightly worse video quality with H.264 than slightly better video quality with VP8/9 if it means it preserves my battery life (which is to say, set a network bandwidth target and then use whatever video quality meets that target).

> By restricting video to H.264, your stuck with a legacy codec that has relatively poor compression rates compared to the other standardized codecs.

It's apparently really hard to find an actual practical comparison of compression quality of H.264 vs VP8. What info I did find is about 8 years old now and itself was pretty wishy-washy. My vague impression of all of this is "lots of people think VP8 has better compression quality, but won't say by how much, while other people think you can get about the same results, but either way VP8 is rarely hardware-accelerated on mobile".

In any case, if you want better than H.264, how about H.265, which macOS and iOS both support? I have no idea if WebRTC allows the endpoints to negotiate alternative codecs, and I'm having difficulty finding the answer to that.

Re:Browsers by StudentStuff on Tuesday December 18, 2018 @04:04AM (#18705346)
> Google Meet is a video conferencing app, not a telephone replacement.

Great, I really don't care about Google's WebRTC app of the month, it is unlikely to be with us in 10 years.

Your root question about why Google hasn't supported Safari with their Meet product likely boils down to the codec wars, as without VP8/VP9 support, Safari does not support the WebRTC standard. A reasonable thing Safari could do is rank codecs by power usage, prioritizing H.264 front and center.

Another take is the failing tests listed here, Google could easily depend on a component that Safari has not implemented (once again not WebRTC spec compliant): https://wpt.fyi/results/webrtc?label=stable&aligned

> In any case, if you want better than H.264, how about H.265

H.265 is a patent encumbered, licensed codec that is only supported by Safari & Edge (if you download the H.265 codec manually on Win10). At this point, Apple, Mozilla, Google, Microsoft and others are working on AV1 as a successor: https://headjack.io/blog/hevc-vp9-vp10-dalaa-thor-netvc-futu...

> I have no idea if WebRTC allows the endpoints to negotiate alternative codecs, and I'm having difficulty finding the answer to that.

You can send literally anything in the SDP that you want, WebRTC is a forklift of traditional SIP onto the web, but with things like TLS enforced (otherwise idiots like the entire existing VoIP industry will run all signaling & calls over UDP with no crypto, then claim its "secure"). The only limitations you have are the codecs supported by your device, though you could totally write your own fairly complex codec in javascript :P

Re:Browsers by eridius on Tuesday December 18, 2018 @02:27PM (#18709706)
> once again not WebRTC spec compliant

According to the page you linked, nobody is spec-compliant.

I'm going to guess that Google's lack of support for Safari boils down to video codec and nothing else.

> A reasonable thing Safari could do is rank codecs by power usage, prioritizing H.264 front and center.

Apple does not have any support for VP8/9, period. And I will be extremely surprised if they ever add support for a non-hardware-accelerated video codec. Apple believes in power efficiency over pretty much anything else, which makes hardware acceleration mandatory for something like this.

Re:Browsers by bryanrasmussen on Monday December 17, 2018 @04:21AM (#18697808)
Also if alternate browsers mindshare dips too far they could argue it was too much effort to support such a small part of the market.
Re:Browsers by mirimir on Monday December 17, 2018 @03:38AM (#18697658)
> Currently, all of Google's services work on non-Chrome browsers.

Last time I checked, Google Authenticator only works on Chrome.

Re:Browsers by AsyncAwait on Monday December 17, 2018 @05:36AM (#18698099)
Gmail and YouTube uses Chrome only features that make them slow in other browsers, compared to Chrome.
Re:Browsers by mda on Tuesday December 18, 2018 @10:47AM (#18707338)
You imply they do this deliberately, do you have any evidence? It sounds super unlikely to me.
Re:Browsers by dragonwriter on Monday December 17, 2018 @03:46AM (#18697692)
> Last time I checked, Google Authenticator only works on Chrome.

Google Authenticator is available for Android, iPhone, and Blackberry, and not for any browser; there are a number of third-party implementations, however, including a Chrome/ChromeOS one.

Re:Browsers by mirimir on Monday December 17, 2018 @04:07AM (#18697765)
I don't use any of those things. I just know that I had to install Chrome to get Telegram's desktop app working.
Re:Browsers by mirimir on Monday December 17, 2018 @06:35AM (#18698316)
Thanks.

But I did know that.

It was just that Everpedia used it for chat, and I was curious.

Re:Browsers by ErneX on Monday December 17, 2018 @05:17AM (#18698025)
The new GMail UI is considerably more snappier and responsive on Chrome than the latest Firefox, so I think it's already happening.
Re:Browsers by beatgammit on Tuesday December 18, 2018 @08:44PM (#18712356)
On more than one occasion, changing the user agent in Firefox leads to a faster Google product. It's most definitely happening, but Google hides behind the excuse that it's using "cutting edge" technology and they have compatibility layers for browsers that don't support the new features.

This would be solved if they did feature detection instead of browser sniffing, but given that the user agent hack works, they're very likely doing browser sniffing.

Better yet, they should probably wait to adopt new standards until things are actually standardized, instead of doing things as soon as they hit "experimental" status.

Re:Browsers by darkerside on Monday December 17, 2018 @10:29AM (#18699503)
On one level I agree with you. But... if the problem is later, why can't we solve it later? What kind of hurdles are people fearing Google might introduce here such that it makes switching to another browser impossible in the future?

Put another way, isn't it OK for users to experience temporary discomfort and inconvenience? If it truly gets bad, someone else will eventually eat their lunch, and everyone (except Google!) is happy again. See: Microsoft.

Re:Browsers by thelasthuman on Monday December 17, 2018 @01:42AM (#18697305)
The people should own their own data, and be able to take it with them to other services.
Re:Browsers by the_clarence on Sunday December 16, 2018 @10:37PM (#18696760)
You are right. A monoculture IS a good thing for browsers engine.
Re:Browsers by koonsolo on Monday December 17, 2018 @01:32AM (#18697278)
Exactly. A week ago I read on hackernews how desktop linux failed because of diversity. Now I read the web will fail because of monoculture.
Re:Browsers by _emacsomancer_ on Monday December 17, 2018 @02:13AM (#18697398)
> how desktop linux failed because of diversit

Yes, but that was based on a comment that was twisted out of context, and is, moreover, demonstrably false.

> web will fail because of monoculture

Go ask a banana.

Re:Browsers by la_oveja on Monday December 17, 2018 @03:47AM (#18697697)
do not mix diversity with fragmentation
Re:Browsers by ludston on Monday December 17, 2018 @01:55AM (#18697355)
What do you mean by "fail"?