From cf621af96f9dbd5f5ef3c1455d63aa6e9a2c8a52 Mon Sep 17 00:00:00 2001 From: Jonathan Griffin Date: Fri, 5 Apr 2013 15:25:46 -0700 Subject: [PATCH] Bug 853188 - Use the url and line number passed to window.onerror, r=mdas --- testing/marionette/marionette-listener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/marionette/marionette-listener.js b/testing/marionette/marionette-listener.js index ebfe826443df..2a025a01798f 100644 --- a/testing/marionette/marionette-listener.js +++ b/testing/marionette/marionette-listener.js @@ -519,7 +519,7 @@ function executeWithCallback(msg, useFinish) { originalOnError = curWindow.onerror; curWindow.onerror = function errHandler(errMsg, url, line) { - sandbox.asyncComplete(errMsg, 17, null, asyncTestCommandId); + sandbox.asyncComplete(errMsg, 17, "@" + url + ", line " + line, asyncTestCommandId); curWindow.onerror = originalOnError; };