Live data from Hacker News

Headless mode in Firefox

developer.mozilla.org

21–30 of 191 posts

Re: Headless mode in Firefox

#23
post #5
post #3

As a UI designer, I dream of strike headless strike chromeless browsers, where the UI appears when you need it, intuitively, even when NOT in full screen. The top bar simply takes too much unnecessary space. If there's any dev that wants to collaborate on this, let me know :)

From a security POV, the URL being displayed at all times is absolutely necessary in order to avoid phishing.

No it isn't, the URL is unreliable source of truth with Unicode spoofing attacks and things like that. Safari only shows the domain at this point; the URL is an unimportant implementation detail.

Re: Headless mode in Firefox

#24
post #23
post #5

Earlier quoted context omitted.

From a security POV, the URL being displayed at all times is absolutely necessary in order to avoid phishing.

No it isn't, the URL is unreliable source of truth with Unicode spoofing attacks and things like that. Safari only shows the domain at this point; the URL is an unimportant implementation detail.

It would be cool if browsers could highlight URLs that contain the kind of characters which are commonly used to spoof, though I suppose it would lead people to a false sense of security.

Re: Headless mode in Firefox

#25
post #3

As a UI designer, I dream of strike headless strike chromeless browsers, where the UI appears when you need it, intuitively, even when NOT in full screen. The top bar simply takes too much unnecessary space. If there's any dev that wants to collaborate on this, let me know :)

Granted, this is not the "headless" they're talking about, but rather "chrome-less" (chrome being the browser UI frame around the page itself)..

JavaScript Fullscreen API: https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_...

Cross-browser polyfill: https://github.com/sindresorhus/screenfull.js

Re: Headless mode in Firefox

#26
For all of you old fogies working on angular 1 apps and are running browser tests with karma you can run your tests in firefox with headless mode with a customer launcher. Add the snippet below to your karma conf

``` browsers: ['FirefoxHeadless'], customLaunchers: { FirefoxHeadless: { base: 'Firefox', flags: [ '-headless', ], }, }, ```

Note you need to be running the beta version of firefox, I needed to download it from here https://www.mozilla.org/en-US/firefox/channel/desktop/

Re: Headless mode in Firefox

#27
post #23

Earlier quoted context omitted.

No it isn't, the URL is unreliable source of truth with Unicode spoofing attacks and things like that. Safari only shows the domain at this point; the URL is an unimportant implementation detail.

It would be cool if browsers could highlight URLs that contain the kind of characters which are commonly used to spoof, though I suppose it would lead people to a false sense of security.

Just set your browser to always show punycode. On Firefox,

  network.IDN_show_punycode = true
URLs are no place for unicode characters to hide in. An xn-- prefix is all the warning you need.

Re: Headless mode in Firefox

#29

This is very nice. What's the recommended way to run end-to-end tests in headless firefox _and_ headless chrome? Can't wait for a cross-platform headless Edge :-)

I'm currently evaluating testcafe which is pretty nice, and headless chrome was easy to setup. I'm interested to see what people recommend for browser testing, I'm also using preact.
Post reply on HN