Has anyone built a WaaS yet ? (Web-browser as a service.)
Like browsershots?
Headless mode in Firefox
91–100 of 191 posts
Re: Headless mode in Firefox
#92Now if only Firefox also implemented the Chrome Remote Debugging Protocol... https://chromedevtools.github.io/debugger-protocol-viewer/to...
Re: Headless mode in Firefox
#93Earlier quoted context omitted.
Wait, why did you need to use XVFB with PhantomJS? Isn't Phantom headless as is?
Still requires a X server, which docker containers won't necessarily have.
Re: Headless mode in Firefox
#94Earlier quoted context omitted.
No, this has been in the works for a while https://bugzilla.mozilla.org/show_bug.cgi?id=1338004 So not in reaction to Chrome. In fact, the first attempt for this was almost a decade ago ( https://bugzilla.mozilla.org/show_bug.cgi?id=446591 )
Thanks for the info, that's good news.
Re: Headless mode in Firefox
#95Has anyone built a WaaS yet ? (Web-browser as a service.)
Re: Headless mode in Firefox
#96I've use them before to make screenshots of webpages, and I have noticed that many NPM packages come (or came) with PhantomJS as a dependency, but I have no idea why one would need that.
Re: Headless mode in Firefox
#97Earlier quoted context omitted.
You don't need to set all your environment variables in your bashrc, if that's not obvious. They're not global state. You can change them on a per-terminal basis, and that only effects the environment of that one terminal. Firefox does some weird stuff with multiprocessing, where if you run the firefox command twice you only get one process. I don't know how that would effect things, but I imagine just setting the en…
Additionally, it's also possible to turn it on using the CLI flag `--headless`, if setting env vars is a concern.
Re: Headless mode in Firefox
#98It would be cool if mozilla and google would standatalize the headless API and command line flags as llvm and gcc has done, so you would perform headless cross browser testing.
Re: Headless mode in Firefox
#99Earlier 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.
In the end, you would just highlight nearly everything. A more useful approach would be to highlight when you switch script inside a domain name. That seems to be what firefox does for non-whitelisted domains (with some more rules to allow eg www.stマイクロ.jp (ST Microelectronics in japanese))
Re: Headless mode in Firefox
#100Can someone do an ELI5 on why headless browsers are useful? I've use them before to make screenshots of webpages, and I have noticed that many NPM packages come (or came) with PhantomJS as a dependency, but I have no idea why one would need that.
You spin up a copy of your server, point the headless browser at it, run some JavaScript to simulate some user interactions, and verify the page contains the right strings / screenshot doesn't deviate too much from a golden image.
I guess the ELI5 way of saying that would be: "Making sure your website still works."
People also headless browsers for content generation inside larger systems. (I saw one team make videos by creating CSS animations, and then capturing screenshots from the headless browser at 30 fps.)