Live data from Hacker News

Firefox 84.0

mozilla.org

281–290 of 328 posts

Re: Firefox 84.0

#281

Earlier quoted context omitted.

What Mozilla is implementing here, I suspect, is RFC 6761 section 6.3 item 3, which says: Name resolution APIs and libraries SHOULD recognize localhost names as special and SHOULD always return the IP loopback address for address queries and negative responses for all other query types. Name resolution APIs SHOULD NOT send queries for localhost names to their configured caching DNS server(s). A few notes: 1) The use…

My reading is that the API Firefox calls into is responsible for not pinging the DNS server.

Yes, but is that what that API _actually_ does if you pass it "foo.localhost" that is not in /etc/hosts?

Re: Firefox 84.0

#282

Earlier quoted context omitted.

What Mozilla is implementing here, I suspect, is RFC 6761 section 6.3 item 3, which says: Name resolution APIs and libraries SHOULD recognize localhost names as special and SHOULD always return the IP loopback address for address queries and negative responses for all other query types. Name resolution APIs SHOULD NOT send queries for localhost names to their configured caching DNS server(s). A few notes: 1) The use…

> There's really no way to win here. Sure there is. Consulting the local hosts file isn't contacting the configured caching DNS server, so there is no SHOULD or SHOULD NOT violated by consulting hosts and then defaulting 127.0.0.1 if a more specific address in the loopback address range is not provided. (Relying on a system-level name resolution API also isn't contacting the caching DNS server, and if that API behave…

> Consulting the local hosts file isn't contacting the configured caching DNS server

Sure, see my comment at https://news.ycombinator.com/item?id=25439154

> and if that API behaves according to spec, including potentially relying on local resources loke hosts but not remote DNS servers for localhost domains

But does it?

Re: Firefox 84.0

#283
post #134

I love Firefox, I use it everyday, I can't imagine using a browser without Tree Style Tab, or all the things that I can do in about:config. At the same time, I can't shake off the dreadful feeling that it will eventually die one day. The market share keeps falling year by year. What is the most realistic future for Firefox?

>What is the most realistic future for Firefox? Realistic isn't a word I see often on HN. It wont die. Google will keep funding it just to say they dont have a monopoly in browser market. But it will continue its path towards irrelevant by mainstream usage. They will continue to shrink the engineering as budgets are cut. Until no more silly 20% project and management goals that drains resources ( they wont have that…

Didn't they shitcan the Servo team?

Re: Firefox 84.0

#284

Earlier quoted context omitted.

My reading is that the API Firefox calls into is responsible for not pinging the DNS server.

Yes, but is that what that API _actually_ does if you pass it "foo.localhost" that is not in /etc/hosts?

It might follow the SHOULD or it might not. It's not Firefox's problem. It's not Firefox's SHOULD.

Re: Firefox 84.0

#285
post #275

Earlier quoted context omitted.

> There's really no way to win here. In theory Firefox could do the resolution as normal and then if it doesn't come back as loopback replace it with 127.0.0.1. That would be perfectly within the letter of the RFC, since noneo f the stuff above it MUST-level requirements, but probably not really within its spirit, since it would violate the "SHOULD NOT" bit. Could a check to see if the name is "localhost" or "*.local…

> Could a check to see if the name is "localhost" or "*.localhost" suffice to satisfy the "SHOULD NOT" requirement? To satisfy that requirement you have to check for those names and if that's what the name is _not_ ask the "configured caching DNS server". Which means you need to do what? Calling OS APIs will do that DNS server thing unless the name is in /etc/hosts. You could manually parse /etc/hosts and see whether…

> Calling OS APIs will do that DNS server thing

Calling the OS APIs isn't calling a DNS server.

If the OS API calls a DNS server, that's not really the higher-level API’s problem. If you've decided to override OS APIs and do your own ground up implementation, then you basically need to do everything an OS-level API would do if it was behaving correctly. So you either need to parse all the appropriate system files (hosts, nsswitch.conf, etc.) with the appropriate special handling of localhost domains, or have your own equivalent, app specific configuration.

The “what are you supposed to do?” complaint seems to be complaining that replacing the core OS-level name resolution facility to avoid the possibility that it doesn't comply with one spec recommendation while avoiding loss of other desirable features involves quite bit of complexity. Which, yeah, it does. The whole reason to have OS level services like that is to prevent every app that does networking from having to reimplement basic services.

Re: Firefox 84.0

#286

> Firefox now uses more modern techniques for allocating shared memory on Linux, improving performance and increasing compatibility with Docker. Anyone know any more details about this one?

Firefox now uses memfd_create: https://bugzilla.mozilla.org/show_bug.cgi?id=1440203

thank you for the link

> .. it should avoid the problems we'd been seeing with overly small /dev/shm in container environments (which were causing serious problems for using Firefox for automated testing of frontend projects).

docker has a 64M default for /dev/shm that can be overridden, but in hosted CIs it is not always accessible. Chrome is a user of the IPC shared memory too and trips over it in pipelines because of the low default. They track memfd_create at https://bugs.chromium.org/p/chromium/issues/detail?id=798221

Re: Firefox 84.0

#287

Earlier quoted context omitted.

Am I incompetent if I thought all browsers all did this already by default? Or was this typically enforced at the OS/networking-stack level, and now Firefox is adding an additional guarantee that it will happen directly in the browser, even if the networking stack would say otherwise?

The latter. You can always set your /etc/hosts or equivalent to map "localhost" to some random IP that is not loopback. Or a proxy could proxy that hostname, etc. In the new setup proxies can't proxy localhost unless you set a pref to explicitly let them do that, and for "localhost" and hostnames ending in ".localhost" Firefox won't even ask the DNS stack for the IP, assuming loopback instead.

It is amazing to behold a comment written in wizard-tongue like the above.

Re: Firefox 84.0

#288
post #134

Earlier quoted context omitted.

>What is the most realistic future for Firefox? Realistic isn't a word I see often on HN. It wont die. Google will keep funding it just to say they dont have a monopoly in browser market. But it will continue its path towards irrelevant by mainstream usage. They will continue to shrink the engineering as budgets are cut. Until no more silly 20% project and management goals that drains resources ( they wont have that…

Didn't they shitcan the Servo team?

They sure did. However Servo now lives on at Linux foundation.

Re: Firefox 84.0

#289
post #30

Earlier quoted context omitted.

The only reason I use Chrome these days is for built in translation. Apart from that it's always FF.

Have you tried the "To Google Translate" Firefox add-on? It's not as seamless as Chrome's built-in translation but it works for me. https://addons.mozilla.org/firefox/addon/to-google-translate...

It's so sad they needed to disable the popup translation due to some changes by Google

Re: Firefox 84.0

#290
post #4

> Additionally we'll ship an accelerated rendering pipeline for Linux/GNOME/X11 users for the first time, ever!

I'm seeing high CPU usage on YouTube after recent updates on Xubuntu. I think it started when they enabled GPU acceleration by default. Previously I could watch even FHD videos without much fan noise, but after recent updates, fans spin at the max speed by playing even 480p quality vids. Anyone else?

[deleted]
Post reply on HN