1596 points · by nachtigall · 7y ago · 286 comments
This currently has 1215 points, and the link is no longer valid. It now just shows an image of Firefox's devtools and the sentence "Replay is an early experiment. We'll let you know on @FirefoxDevTools when it's ready for input." That's not useful, interesting, or informative. The MDN docs seem like an appropriate replacement.
Firefox removed the content that tells you this. It's odd that they did that...
My guess is that all this attention was a premature launch, and they were hoping to make news with Firefox Replay later. (US Thanksgiving day isn't exactly ideal...)
I also get the same for all the other snapshots, maybe Mozilla applied for a takedown?
Edit: I found it on archive.is: http://archive.is/0ei35 Though it seems a bit broken.
https://megalodon.jp/2019-1128-2050-51/https://firefox-repla...
http://cc.bingj.com/cache.aspx?q=url:https%3A%2F%2Ffirefox-r...
http://cache.yahoofs.jp/search/cache?c=ULQkH25vOxAJ&p=https%...
http://210.89.172.69/search2.naver?group=web&mtype=web_doc&w...
``` // Recording and replaying works by controlling non-determinism in the browser:
// non-deterministic behaviors are initially recorded, then later replayed
// exactly to force the browser to behave deterministically. Two types of
// non-deterministic behaviors are captured: intra-thread and inter-thread.
// Intra-thread non-deterministic behaviors are non-deterministic even in the
// absence of actions by other threads, and inter-thread non-deterministic
// behaviors are those affected by interleaving execution with other threads.
```
Brian Hackett collaborated early on with ROC. Here are the basic principles of Replay (https://developer.mozilla.org/en-US/docs/Mozilla/Projects/We...).
In a nutshell, replay records Firefox's OS system calls, so that that Firefox can read from the recording when replaying.
It also looks like a maintenance burden which will increase the difficulty of supporting an OS for Firefox. Stuff like that causes Firefox to drop support for an OS, and it makes developers hesitant to add support for an OS.
System calls can do all sorts of crazy stuff behind your back. Think of ioctl and fcntl. Just knowing what memory they modify is difficult. It's been lots of trouble for tools like strace and rr. Hopefully you won't encounter worse, like vfork and clone.
It's random numbers, the system clock, data off the internet, and input events from the user.
What it sounds like is that Mozilla has come up with a debugging environment that bottles all that nondeterminism up into a neat little package so that it can replay a specific run of your program any time you want.
It probably varies slightly, due to the entangled nest of dependencies that is responsive HTML rendering...
If you have an ordered map of pointers (e.g. std::map<void*>), iterating over the map will not be deterministic because the pointers given by a (regular) allocator are not deterministic.
Firefox definitely managed to catch up but not before lots of devs switched to chrome and stopped checking for compatibility with Firefox.
It’s happened with IE, Chrome before and will swing back away from Chrome eventually.
I may not like the Chrome monoculture happening at the moment but that doesn't mean Chrome is the same dumpster fire that was IE. And Google are hardly going to let Chrome stagnate when Chrome is the perfect vehicle to local users into Google's non-free ecosystem (I say "non-free" because you pay with your privacy)
Not only among our family and friends, but also because our choices create a lock-in effect due to the nature of our work.
When you use Chrome day in and out, your work is going to be optimized for Chrome and will work best on Chrome. This led to a Chrome-optimized web and while Google isn't necessarily to blame, we're back to the days of "works best in IExplorer 6".
Companies and products that attract developers will eventually attract regular people as well. You could say that this is a chicken and egg problem, developers following the users, but with few exceptions (like the iPhone) in my experience thus far it's usually the developers that come first.
---
It's worth mentioning that Chrome isn't popular only because of its technical excellence, but also because of Google's incessant marketing and bundling. But if we remember Microsoft and their declining browser market share, marketing and shoving your products down people's throats isn't enough. The product, especially if it's a platform, has to not suck and to be used by developers as well.
So yes, if other browsers like Firefox want to stay relevant and grow, a major requirement is to provide excellent developer tools.
Kudos to Mozilla for understanding that.
The consumerization of technology happened a long time ago.
Uh that seems to imply that Google has not been striving to accomplish exactly that. Because they surely haven't been working to prevent a browser engine mono culture. Which is kind of your only option, if your browser engine holds an absolute majority of usage and you don't want to be "to blame" for the browser engine mono culture.
Seriously it puzzles me, how is this not Google's doing.
I mean it's understandable they would do it. They're doing it. Who else would be doing it, the informed preference of millions of users? That would be a first ...
I find myself switching between browsers just to take advantage of the different features each one provides which is slighly annoying. I would sincerely love some kind of unified DevTools.
That said, the Firefox DevTools have been progressing really fast since the rewrite to React was completed, so I'm hopeful that it'll practically be the unified DevTools soon.
What is the point of promoting this to everyone at this stage?
Cross platform support will absolutely be a priority when Replay is on the official roadmap.
Thanks for the feedback, firefox-replay.com is also a work in progress. We did not plan an official release today.
We'll be sure to make the Mac OS limitation more clear.
Here is some more context on the mac specific functionality (https://searchfox.org/mozilla-central/source/toolkit/recordr...).
A question about how you develop / roll this out. Do you keep the code private, or do you commit it to the open source repo as you're working with a small amount high touch users?
I guess the question is do you want a full working product when you open source it? Do you tie your PR / forum posts with publicly shipping the source code? Or is all development out in the open?
Everything is in firefox and open source
Here are the bugs: https://bugzilla.mozilla.org/buglist.cgi?cmdtype=runnamed&na...
Here's the primary directory: https://searchfox.org/mozilla-central/source/toolkit/recordr...
The debugger API is implemented in JS here https://searchfox.org/mozilla-central/source/devtools/server...
Just to clarify, I don't fault Mozilla for having that attitude, but that doesn't mean I prefer it. I would prefer that they prioritize FOSS platforms like Linux and \*BSD, as well as getting Firefox on platforms like Plasma Mobile, PostmarketOS, and other GNU/Linux-based mobile operating systems. Developer adoption is a necessary (but probably not sufficient) precondition for general adoption, which is why developing for these platforms is important even though they are new/unpopular.
"Almost all implementation work so far has been on macOS. Windows port work is underway, but is not yet working. The difficulties are in figuring out the set of system library APIs to intercept, in getting the memory management and dirty memory parts of the rewind infrastructure to work, and in handling the different graphics and IPC pathways on different platforms."
[0]: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/We...
One of my favorite books starting out was the Stevens book about Unix. It only covers the differences in system call availability and behavior across Unix OSes. It doesn’t even touch graphics. It’s a big fat book just covering file, network, processes, and memory operations. No Mac, no Microsoft, just Unix.
https://en.m.wikipedia.org/wiki/Advanced_Programming_in_the_...
This makes me think that it's not a feature on the roadmap of firefox sponsored by Mozilla, but an experimentation/side project.
I can't quite remember when I had a bug where a tool like this would've been useful, but I'm sure I would've been (and will be) very thankful for it.
Our #1 use-case at the moment is bug reports with a recording attached. We think that will really help when it comes to understanding the specifics of a bug when STRs are often not clear.
Is it not supported on Linux and Windows? Why?
From https://developer.mozilla.org/en-US/docs/Mozilla/Projects/We...
From: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/We...
> Currently only macOS is supported.
As for why - no idea.
Windows 47.5%
MacOS 26.8%
Linux-based 25.6%
----
Total non-Macs: 73.1%These are not just web developers though, they're full stack developers; perhaps pure frontend developers are more prone to use Apple products?
I always felt that the price/quality ratio was way off with MacOS, compared to a good regular laptop. By good I mean top 10% ranked by price/quality. Even if it wasn't, Apple's general hostility towards consumers is infuriating. Right-to-repair is a banal example.
It gives you a well rounded OS with a Unix terminal. I think MacOS is more consistent than Windows or Linux with a better attention to details (though I haven't used Linux for almost a decade so things might have changed a bit) which make it more pleasant to use.
Also, the previous generation of Macbook Pros was just really good, sturdy hardware. Hopefully the new update will fix the flaws of the new design.
Lastly, a lot of people get laptops from their company, and companies don't mind a one time extra cost of a few hundred dollars.
I'm currently writing this from a Dell laptop, and I have to say, while the hardware has caught up with the Macbooks in terms of build quality, I still miss MacOS.
Yes, and seemingly in the web backend crowd too (Ruby, PHP, Python but not as much AFAICT).
If you go to a web conference and don't pull out a Mac, you do get comments and/or questions (depending if you're running Windows or Linux).
At Python conferences I've seen fewer Macs and more of the good old ThinkPads running Linux. My feeling is that community has a more "Computer sciencey" taste in laptops, because they're not all web programmers.
Or maybe just because they _can_ be bothered to spend a few days setting up their laptop just right and actively maintain it.
I'm a fairly advanced user but I can't be bothered to do so on a laptop and would rather have a Mac to carry around and GNU/Linux on my desktop.
Once you're price-insensitive, the quality looks good for macs, keyboard issues notwithstanding.
Unfortunately, Replay hooks into low-level OS system calls to do the recording, which makes it non-trivial to support other platforms.
I have started using a Chromebook with 8G of memory and like it much more ... but I am probably in the minority. :(
EDIT: sibling comment cleared things up, so mine is irrelevant
Replay is in the user-research and validation phase and still quite experimental.
firefox-replay.com is a work in progress. We're still sorting out the best way to communicate record and replay debugging and the new use cases.
We'll share more on @firefoxDevTools when we have something to report.
"Replay is an early experiment. We'll let you know on @FirefoxDevTools when it's ready for input."
For anyone who missed what it was, it allows you to derterministically record and replay your browsing for debugging purposes, and you can export these recordings to others.
https://web.archive.org/web/20191128111509/https://firefox-r...
I also get the same for all the other snapshots, maybe Mozilla applied for a takedown?
Edit: I found it on archive.is: http://archive.is/0ei35 Though it seems a bit broken.
$0; Essential features; Up to 3 users
$50 / month; All features; Unlimited reports; Up to 10 users
...
A new option in settings will be added to enable a Toolbox Button named "Enable WebReplay", but pressing that button will replace the entire tab content with an about:blank
I'm pretty happy to see Firefox pushing its dev tools in this direction. They've done a really great job with layout and styling tools, but their JS dev tools have lagged behind Chrome's. So even if this particular effort doesn't pan out for some reason, it's still very encouraging.
They're not just carbon-copying Chrome, and they're not just sitting back and ignoring the dev tools; they're trying to push them forward in some interesting ways.
[Link to the editor](https://github.com/abdusamed91/realtime-codeeditor)
I implemented it in my real time code editor coursework project where I made use of [Ace Editor](https://ace.c9.io/)'s CRDT. The time machine slider does the job and looked remarkable when it ran.
1. I installed the nightly build as told.
2. Open nightly build
3. Went to the "Save Recording" option
4. The first two times, I got a [javascript error] saying I could not record.
5. The remaining couple of times - after I open a "New Recording Tab", whatever that is - I didn't see the javascript error but the website whose clickthru I wanted to record using this tool didn't even load in that new recording tab.
Just this morning I recorded a clickthru like caveman using Quicktime. Can't wait for FF to iron out the kinks in this feature.
If the tab crashed, you can get the report in about:crashes
To be clear, I use both Chrome and Firefox for development but just to the surface level, so I'm probably missing the point here.
I had built a poor mans version of this where I worked with puppeteer for automated tests. It'd basically record the full dim any time it changed, along with console logs, network request metadata, images and css and output it as a test recording. You could then view that and walk through it in an Electron app.
This'll blow it out of the water. I hope for e2e testing's sake that linux support comes soon.
[1] https://paleotronic.com/software/microm8/help/web-debugger/
Does Replay work on the Firefox Dev build?
Why is this something Firefox seems to be struggling with? All the Blink based browsers seem to be much better in this regard.
I suppose 'rewind' would mostly be useful for Javascript applications? But in Javascript you can already debug pretty well. It's been a while, but I suppose Javascript debuggers can drop frames, like debugging other languages, so you already have a kind of rewind?
Does anyone have a good example use case for this?
If your app is something that takes time to react on events to unroll, then this could save you lots of time. I made a music player and just by the nature of timed events it took quite a long time to catch edge cases I did not foresee in the prototyping phase.
Or even more mundane: accidentally hitting "Step over" twice in a row.
Example: https://stackoverflow.com/questions/2367816/when-using-the-j...
"Using the "Drop Frame" functionality you can "fall back" to a previous stack frame, in a sense going back in time."
This video has a good intro: https://www.youtube.com/watch?v=ytNlefY8PIE
I’m going to give this a shot today!
Over time we will be adding more tools for developers. It will be interesting to see how Firefox will approach this compared to us.
Strange days indeed. Just giving some thanks where it's due.
Also the timeline in Cypress didn't actually work too well for us.
> An error occurred when connecting to firefox-replay.com. PR_CONNECT_RESET_ERROR
https://news.ycombinator.com/newsguidelines.html
We detached this subthread from https://news.ycombinator.com/item?id=21657475 and marked it off-topic.
When Chrome does add this capability(strange they haven't added it to date given the prior art from years ago), I can see it being used by actual devs inside Google and thus being actually useful.
Contrast that with Firefox dev tools which seem to fall behind the priority list compared to new shiny flashy tech projects they concoct.
If people want to see many examples of what Chrome's webtool can do and FF can't, just take a look at this page "What's New In DevTools" for each Chrome release.
Releasing with Firefox 71. https://hacks.mozilla.org/2019/10/firefoxs-new-websocket-ins...
https://news.ycombinator.com/newsguidelines.html
We detached this subthread from https://news.ycombinator.com/item?id=21656533 and marked it off-topic.
As for 1.77% (excluding ChromeOS and Android based desktop apps, of course), I'm going to guess those people are more significant in terms of software development and user advocacy, on their own and in networks, than the bulk of users. Certainly constantly compromising and taking the enclosed garden path has its drawbacks for the larger community.
My story is freebsd 4.x-7.0, then debian (codenames I forgot), then OSX 10.5-10.9, then unbuntu/mint since ~ 2014-2016 maybe (when gpu and os updates broke it again). I also supervised an entire office of debian/ubuntu + printers & scanners for few years. I’m not what you would call a regular linux hater, and it has it’s own unquestioned throne at the server side.
But struggling with the drivers, laptop battery health, suspend issues, lack of business software, configuration, etc etc etc is too much for a regular user who wants things to be done. I was trying to create a scalable solution of win->linux transition for small offices at our company, and it failed. I was converting simple (non-gaming) home users to linux, and it failed most of the times.
I’m not even going into partition and breaking changes in DE teams here, which are de-facto your walled garden version of corp, inc.
>constantly compromising and taking the enclosed garden path has its drawbacks for the larger community
This I am not doing though. I’m using all the software you’re using, including bash, ls, soffice, gcc, etc. I’m all gnu, all unixway, but just not linux kernel & DE and that only on a desktop.
>those people are more significant in terms of software development and user advocacy
But I am one of them, except probably 20x of average experience and real advocacy attempts.
That doesn't mean everything is perfect, or even good. I'll complain about HDPI scaling, touchscreen support, and security all day. There's some real stuff to improve.
But, I also take that criticism with a bit of perspective, and the truth is that Desktop Linux overall is really good, and it makes me more productive, and it makes my life better, and the overall direction that the desktop is moving is positive. There are things that Linux does better than any other modern OS, and I find that using it as a daily drive is un-complicatedly, un-idoiologically, purely-practically nice.
It wasn't nice in the past. When I was growing up, using Linux required pretty substantial sacrifices. I don't have the same reservations recommending something Ubuntu or Manjaro now that I used to have.
Even on the nontechnical side, if I'm going to provide computer support for someone, I usually stick them on Linux, because I have more control to simplify their environment and it's easier for me to quickly solve their problems. It's really good, I appreciate all the hard work that's gone into getting it here, and I'm optimistic about its future.
It's actually 25.6% for developers (Firefox Replay is a developer tool after all) according to the StackOverflow survey: https://insights.stackoverflow.com/survey/2019#technology-_-...
Except, of course, software freedom.
https://insights.stackoverflow.com/survey/2019#technology-_-...
Windows 47.5%
MacOS 26.8%
Linux-based 25.6%
BSD 0.1%
2% of yahoos and nobodies run Linux on the desktop 1 in 4 developers do.
Linux like Mac has never had and will never have perfect support for all hardware. Much like you can buy a Mac from the store you can buy a well supported system that comes with Linux.
Unlike Mac you can install it on a lot of systems and go.
Partly it's little usability things:
- There was one time when an HTTP request was failing and I couldn't figure out why, and in the Network tab Firefox wouldn't show any information about it, even the request that went out (other than the URL), whereas Chrome not only showed the headers, it surfaced that it was a 404.
- There's no way to view all source files. You have to go to "Style Editor" for stylesheets and "Debugger" for JS files. I'm not sure how to view the other files that were loaded, outside of the Network tab.
- I do enjoy how Chrome's inspector puts the box layout directly above the computed styles, instead of in a separate tab.
Those all feel like nitpicks, though. It could just have more to do with me not being used to it. Maybe I haven't given it enough of a chance and should give it another try.
Lately though I haven't found myself needing to switch over to Chrome for anything devtools related. This new replay feature makes FF even more compelling (once it comes to Linux that is).
So if you haven't used FF for development recently, you should definitely give it a try.
Would people be interested in us open sourcing that part for regular debugging? I have considered it but I didn't think people would be interested in using this in a non-test case.
So, no need to over-react. If Mozilla decides it's worth shipping, they'll port it to other plaforms.
* this is still open source. Fully open source.
* this is currently only available on MacOS
All that looks to have happened is the developers of this single feature that is in the nightly build are using Macs. It is wholly reasonable for them to only support one platform at this point. If it is a good feature they, or other devs attracted by this preview will port it.
"Windows port work is underway, but is not yet working. The difficulties are in figuring out the set of system library APIs to intercept, in getting the memory management and dirty memory parts of the rewind infrastructure to work, and in handling the different graphics and IPC pathways on different platforms."
In fact, their documentation makes a specific call-out to TTT (Time-Travel Debugging) on Windows; so, I suspect that this is the API that they would like to use but are unable to do so at present (presumably because many of the features are still lacking in the API, which Microsoft could - and most probably would - enable).
[0] - https://developer.mozilla.org/en-US/docs/Mozilla/Projects/We...
Looks to me like this is an experimental feature in Nightly. If it's highly system-dependent I can't blame them for testing the feedback as early as possible, before other systems are supported.
Question for Mozilla people here, if anyone sees it - is there a plan to bring this feature across all systems in time for regular Firefox release?