mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 14:35:58 -10:00
In some cases, we were getting null sourceId, which was causing an exception to be thrown in `getFormattedSourceId` since it expects a string. We add a simple guard in this function so we don't throw anymore. But we shouldn't get null sourceId in the first place. It looks like for some Wasm sources, the SavedFrame sourceId can be 0, which wasn't playing well with some loose check we were doing in the sources manager. Finally, the "Copy metadata" button we display when a console message crash wasn't working. The message now includes the targetFront, which can be serialized in JSON, so we simply ignore it. Differential Revision: https://phabricator.services.mozilla.com/D206105