Commit 58a6cb7f authored by Alexandre Poirot's avatar Alexandre Poirot Committed by Pier Angelo Vendrame
Browse files

Bug 2062551 - Allow heapsnapshot records when DevTools are active. a=dmeehan DONTBUILD

parent ecad3f94
Loading
Loading
Loading
Loading
+4 −0
Changes for devtools/shared/heapsnapshot/HeapSnapshotTempFileHelperParent.cpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@

#include "mozilla/devtools/HeapSnapshot.h"
#include "mozilla/devtools/HeapSnapshotTempFileHelperParent.h"
#include "mozilla/dom/ChromeUtils.h"
#include "mozilla/ErrorResult.h"
#include "private/pprio.h"

@@ -23,6 +24,9 @@ static bool openFileFailure(ErrorResult& rv,
mozilla::ipc::IPCResult
HeapSnapshotTempFileHelperParent::RecvOpenHeapSnapshotTempFile(
    OpenHeapSnapshotTempFileResponse* outResponse) {
  if (!dom::ChromeUtils::IsDevToolsOpened()) {
    return IPC_FAIL_NO_REASON(this);
  }
  auto start = TimeStamp::Now();
  ErrorResult rv;
  nsAutoString filePath;
+1 −0
Changes for devtools/shared/heapsnapshot/tests/xpcshell/test_saveHeapSnapshot_e10s_01.js: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,5 +5,6 @@
// Test saving a heap snapshot in the sandboxed e10s child process.

function run_test() {
  ChromeUtils.notifyDevToolsOpened();
  run_test_in_child("test_SaveHeapSnapshot.js");
}