To repro:

1. Launch an Electron app (hello world/default fiddle will do)
2. Open DevTools
3. Find a minified JS file, e.g. renderer_init.js
4. Click the "Pretty Print" button in DevTools

Expected behavior:
The JS in the DevTools view is replaced with a pretty-printed version of the code

Actual behavior:
The JS in the DevTools view is unchanged


Bisected to https://github.com/electron/electron/compare/v11.0.0-nightly.20200721...v11.0.0-nightly.20200723
shell/browser/ui/devtools_ui.cc
#include "shell/browser/ui/devtools_ui.h"
#include <memory>
#include <string>
#include <utility>
#include "base/memory/ref_counted_memory.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "chrome/common/webui_url_constants.h"
#include "content/public/browser/devtools_frontend_host.h"
#include "content/public/browser/url_data_source.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
namespace electron {
namespace {
std::string PathWithoutParams(const std::string& path) {