diff --git a/browser/extensions/shumway/content/ShumwayStreamConverter.jsm b/browser/extensions/shumway/content/ShumwayStreamConverter.jsm index fe85d489c7ca..5eaab67e0ab6 100644 --- a/browser/extensions/shumway/content/ShumwayStreamConverter.jsm +++ b/browser/extensions/shumway/content/ShumwayStreamConverter.jsm @@ -49,8 +49,6 @@ let Svc = {}; XPCOMUtils.defineLazyServiceGetter(Svc, 'mime', '@mozilla.org/mime;1', 'nsIMIMEService'); -let profiler = Cc["@mozilla.org/tools/profiler;1"].getService(Ci.nsIProfiler); - function getBoolPref(pref, def) { try { return Services.prefs.getBoolPref(pref); @@ -222,7 +220,10 @@ ChromeActions.prototype = { }); }, addProfilerMarker: function (marker) { - profiler.AddMarker(marker); + if ('nsIProfiler' in Ci) { + let profiler = Cc["@mozilla.org/tools/profiler;1"].getService(Ci.nsIProfiler); + profiler.AddMarker(marker); + } }, getPluginParams: function getPluginParams() { return JSON.stringify({ diff --git a/browser/extensions/shumway/content/version.txt b/browser/extensions/shumway/content/version.txt index 78480053983b..48c3a626cee6 100644 --- a/browser/extensions/shumway/content/version.txt +++ b/browser/extensions/shumway/content/version.txt @@ -1 +1 @@ -0.7.501 +0.7.502