heycam

Joined 13 years ago

Karma
138
Submissions
25
Member since
May 21
https//twitter.com/heycam
View on Hacker News

Recent submissions

Comment · 6 years ago
Support for font-variation-settings has been on by default since Firefox 62, which was released almost two years ago. Are you using a Firefox older than that?
Comment · 6 years ago
Comment · 7 years ago
Comment · 7 years ago
On https://codetribute.mozilla.org/ you can find mentored Mozilla project bugs to work on (not just Firefox) indexed by language.
Comment · 7 years ago
Comment · 7 years ago
Comment · 9 years ago
Comment · 9 years ago
Comment · 11 years ago
Cheers!
Comment · 11 years ago
There are minor benefits without ABP. For each page/iframe that is created, we can avoid running the CSS cascade (and share those data structures) for the UA style sheets. It's saves something like 100 KiB per document.

If other add-ons insert a common style sheet into all documents (it's plausible Stylish does something like this? though I've never checked) then we'll again be able to avoid running the cascade and having duplicate data structures for the cascade across different documents.

Comment · 11 years ago
Comment · 11 years ago
I just did some poking around, and it looks like uBlock does insert a couple of <style> elements into the document. I'm not sure if this is how all style-based blocking is done in uBlock, but since these are document-level style sheets, they are not shared like user agent-level sheets are. (We will in the future be investigating whether we can share more data between common document-level style sheets across multiple documents, though.)
Comment · 11 years ago
Thank you!
Comment · 11 years ago
I can't see where on that page it talks about using style sheets. Last week I searched the µBlock sources for use of the nsIStyleSheetService, which is Gecko's internal interface for adding style sheets without manipulating individual documents, and the only use of that interface is for adding css/legacy-toolbar-button.css, which I assume is for some UI.
Comment · 11 years ago
µBlock does not use the same technique of creating a style sheet and inserting it into all loaded documents, so the type of sharing done as part of this work does not help µBlock.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton