For Bug 1591025, I'm moving the strings used in WhyPanel.js onto a new .ftl file (so the
PausedDebuggerOverlay can use them as well).
While making the necessary changes in the debugger, I realized that we are using React context in order to pass shortcuts, the toolbox document and an l10n instances further down the tree (see https://searchfox.org/mozilla-central/rev/65d4d3399afa79c8de5a0cc11752d2ba7c31edc1/devtools/client/debugger/src/components/App.js#299-303)
Unfortunately, if we try to render
<App>, the component sets a new child context, wiping the existing one.
For now, I'll only add the provider directly in
<WhyPanel> , but as we migrate more things to Fluent, we might want to fix this.
l10n won't be needed anymore, but we should find alternatives for other usages (https://searchfox.org/mozilla-central/search?q=.contextTypes&path=devtools%2Fclient%2Fdebugger%2Fsrc%2F&case=true®exp=false)