mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 00:17:47 -10:00
Most devtools code that uses a Debugger actually ends up doing it through modules with a different global from the one the Debugger was instantiated in, and so it gets a CCW. When we pass one of these CCWs to ThreadSafeChromeUtils.saveHeapSnapshot, it would throw NS_ERROR_INVALID_ARG. The most straightforward fix is to have the JS APIs that ThreadSafeChromeUtils.saveHeapSnapshot calls peek through CCWs.