diff --git a/dom/base/ConsoleAPI.js b/dom/base/ConsoleAPI.js index 03552292a47a..3403d2ad9c5a 100644 --- a/dom/base/ConsoleAPI.js +++ b/dom/base/ConsoleAPI.js @@ -19,6 +19,8 @@ * * Contributor(s): * David Dahl (Original Author) + * Ryan Flint + * Rob Campbell * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -73,7 +75,10 @@ ConsoleAPI.prototype = { }, error: function CA_error() { self.notifyObservers(id, "error", arguments); - } + }, + // many flavors of console objects exist on the web, so calling + // unimplemented methods shouldn't be fatal. See bug 614350 + __noSuchMethod__: function CA_nsm() {} }; }, diff --git a/dom/tests/browser/browser_ConsoleAPITests.js b/dom/tests/browser/browser_ConsoleAPITests.js index e5af4a9a9158..aa82a285809b 100644 --- a/dom/tests/browser/browser_ConsoleAPITests.js +++ b/dom/tests/browser/browser_ConsoleAPITests.js @@ -20,6 +20,7 @@ * * Contributor(s): * David Dahl + * Rob Campbell * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or diff --git a/dom/tests/browser/test-console-api.html b/dom/tests/browser/test-console-api.html index 29552e47b3b1..235275b430e3 100644 --- a/dom/tests/browser/test-console-api.html +++ b/dom/tests/browser/test-console-api.html @@ -4,6 +4,7 @@ + + +

Heads Up Display Demo

+ +
+ +