From 244d3a8a584763677c51b3688b741e957b72de44 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 1 Jul 2013 11:25:37 -0700 Subject: [PATCH] Ignore Firefox debug errors --- UI/Instrumentation/ErrorHandler.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/UI/Instrumentation/ErrorHandler.js b/UI/Instrumentation/ErrorHandler.js index bf6caa14a..ba1d8a7d4 100644 --- a/UI/Instrumentation/ErrorHandler.js +++ b/UI/Instrumentation/ErrorHandler.js @@ -21,7 +21,14 @@ var a = document.createElement('a'); a.href = url; - var messageText = a.pathname.split('/').pop() + ' : ' + line + '
' + msg; + var filename = a.pathname.split('/').pop(); + + //Suppress Firefox debug errors when console window is closed + if (filename.toLowerCase() === 'markupview.jsm') { + return false; + } + + var messageText = filename + ' : ' + line + '
' + msg; var message = { message : messageText,