From 941364f5dfcb4b7ae99a1be0658523afaa0142d6 Mon Sep 17 00:00:00 2001 From: Gabriel Luong Date: Mon, 12 Aug 2013 15:21:34 -0700 Subject: [PATCH] Bug 872906 - Calls from JS served from file:// urls are greyed out; r=anton --- browser/devtools/profiler/cleopatra/js/parserWorker.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/browser/devtools/profiler/cleopatra/js/parserWorker.js b/browser/devtools/profiler/cleopatra/js/parserWorker.js index e7335af61c17..6b160393cb1c 100755 --- a/browser/devtools/profiler/cleopatra/js/parserWorker.js +++ b/browser/devtools/profiler/cleopatra/js/parserWorker.js @@ -398,6 +398,13 @@ function parseRawProfile(requestID, params, rawProfile) { }); } + if (protocol.startsWith("file")) { + return ensureResource("file_" + host, { + type: "file", + name: host + }); + } + return ensureResource("otherhost_" + host, { type: "otherhost", name: host