News for hackers. Stuff that matters.

mathias

Did you know that “old” Chrome Headless (2017–2023) was a separate, alternate browser implementation that just happened to be shipped as part of the same Chrome binary? It doesn’t share any of the Chrome browser code in //chrome.

--headless=new in Chrome 112 on the other hand works the way you'd expect.

Re:A horrifying globalThis polyfill in JavaScript on Monday May 13, 2019 @02:13PM (#19902070)
The article includes a working polyfill that includes old IE support.
Re:A horrifying globalThis polyfill in JavaScript on Monday May 13, 2019 @02:13PM (#19902060)
Author of the referenced article here.

The article includes a working polyfill that includes old IE support, so I’m not sure what you’re complaining about.

Also, saying “jsvu is the justification for the polyfill” doesn’t make much sense. jsvu is just how I happen to test in various standalone JavaScript engines. There are other, non-jsvu ways of getting such binaries, e.g. compiling one yourself, and there are JS engine binaries that jsvu doesn’t provide (Rhino, Ringo, Nashorn). jsvu usage does not correspond to anything you seem to be talking about, and comparing its download count with IE10 usage is one of the more extreme apples-to-oranges comparison I’ve seen. ️

Re:V8: A Year with Spectre on Wednesday April 24, 2019 @05:34AM (#19736804)
Thanks :) Glad to see people appreciate simplicity (and the performance that comes with it).
Re:V8 release v7.2 on Tuesday December 18, 2018 @09:12AM (#18706479)
We do indeed measure improvements against more than one website. We wouldn’t want to improve website X while regressing the rest of the internet. See https://v8.dev/blog/real-world-performance (from 2016):

> We now monitor changes against a test suite of approximately 25 > websites in order to guide V8 optimization. In addition to the > aforementioned websites and others from the Alexa Top 100, we selected > sites which were implemented using common frameworks (React, Polymer, > Angular, Ember, and more), sites from a variety of different geographic > locales, and sites or libraries whose development teams have > collaborated with us, such as Wikipedia, Reddit, Twitter, and webpack. > We believe these 25 sites are representative of the web at large and > that performance improvements to these sites will be directly reflected > in similar speedups for sites being written today by JavaScript > developers.

Re:Public and private class fields on Thursday December 13, 2018 @01:05PM (#18674492)
The article links to the explanation by the proposal champions: https://github.com/tc39/proposal-class-fields/blob/master/PR...
Re:ECMAScript regular expressions are getting better (2017) on Thursday November 29, 2018 @01:13AM (#18558449)
I mean, they have been solved. With the exception of String#matchAll (which is currently a Stage 3 proposal), all these features are part of ES2018 and shipping in Chrome. Other browsers implement some of them already and are working on shipping more.

You can view the implementation status of the various features here: https://kangax.github.io/compat-table/es2016plus/#test-RegEx...

Re:ECMAScript regular expressions are getting better (2017) on Thursday November 29, 2018 @01:10AM (#18558433)
I make sure to keep the article up-to-date. It correctly states the status for each of the features. They’re all part of ES2018 with the exception of String#matchAll which is currently at Stage 3.
Re:ECMAScript regular expressions are getting better (2017) on Thursday November 29, 2018 @01:09AM (#18558431)
Hey, I’m the author of the article. Despite its age, it’s still accurate and up-to-date.

> these features aren't entirely new

Depends on what you mean by that. These features are still not universally supported by all modern browsers, for example, so I can imagine they’re still new to a lot of developers.

Chrome supports all these features (except for String#matchAll, which is currently at Stage 3). Other browsers don’t yet support the full set, but they’re all working on getting there.

Re:The Intl.RelativeTimeFormat API on Tuesday October 23, 2018 @09:53AM (#18283350)
That’s not very JavaScript-y. Where else in ECMAScript are constants used like this?
Re:Ten years of V8 on Wednesday September 12, 2018 @02:45AM (#17966084)
That would be a Chromium feature. V8 only implements ECMAScript and WebAssembly.
Re:About rel=noopener (2016) on Thursday January 25, 2018 @01:04PM (#16232961)
The article is two years old but still up-to-date. The links to the relevant browser bugs are in the document, and the Edge bug is still unresolved. https://wpdev.uservoice.com/forums/257854-microsoft-edge-dev...
Re:Chrome breaks the Web on Monday November 06, 2017 @02:22PM (#15638169)
> In older browsers, useCapture is NOT an optional parameter

Which browsers are those?

Re:Chrome breaks the Web on Monday November 06, 2017 @12:13PM (#15636917)
> Which means you can’t practically use the new form without feature detection.

That does not follow.

`{ capture: true }` works in both, since it’s an object, and thus truthy.

There’s no need for feature detection in the case you describe.

Sadly, that’s the whole premise of this article.

It’s only a problem if you want `capture: false` combined with other options — since you’d need to pass in an object, that would be truthy in the old implementations expecting a boolean instead. But then again, the additional options wouldn’t be supported in those old implementations either.

I’m confused — what’s the actual use case that’s breaking here?

Re:Promise.prototype.finally on Monday October 23, 2017 @04:55PM (#15536860)
That’s not equivalent though — in the article’s example, imagine `element` is `undefined`, for example. `then()` wouldn’t be called in that case.
Re:Promise.prototype.finally on Monday October 23, 2017 @04:53PM (#15536845)
Correct. By Stage 3, the proposal is supposed to be stable enough to start shipping it in stable browsers.
Re:Why does HTML think “chucknorris” is a color? on Sunday April 16, 2017 @03:06AM (#14124755)
Wondering what a given legacy HTML color value (as seen in `bgcolor`, `text`, `link`, `vlink`, and `alink` attribute values) looks like? This tool (which I made for a presentation years ago) shows you: https://mothereff.in/bgcolor#mathiasbynens
Re:Remote code execution vulnerability in ImageMagick on Wednesday May 04, 2016 @02:11AM (#11626556)
Replace `test` with `example.com` et voila.
Re:Craig Steven Wright claims to be Satoshi Nakamoto on Monday May 02, 2016 @07:18AM (#11610504)
+1. Still, code screenshots in Notepad?!
Re:Craig Steven Wright claims to be Satoshi Nakamoto on Monday May 02, 2016 @07:14AM (#11610490)
Nowhere in the blog post does Wright say “this is the proof I’m Satoshi”. The entire write-up reads like he’s just giving an example. Why does everyone think it’s some kind of proof?

Older »