jcouyang / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

ErrorReporter does not appear to be working anymore #550

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Create a page that calls the script 

goog.provide('test.use.er');
goog.require('goog.dom');
goog.require('goog.debug');
goog.require('goog.debug.ErrorReporter');

window.onload = function () {
    goog.debug.ErrorReporter.install ("http://url-to-log-script.php");
    throw 'test';
};

2. browse the page

What is the expected output? What do you see instead?
An xhr request to the url http://url-to-log-script.php should be generated. 
For FF, Opera and Closure this doesn't happen.
It does for IE8, though.

Interesting, that if I change goog.debug.ErrorReporter.prototype.setup_ so that 
the IE part (Use "onerror") runs for any other browser, it works.

What version of the product are you using? On what operating system?
Windows XP.
Tested with FF19.0.2, Opera 12.14, Chrome 25.0.1364.172 m.
IE 8.0.6001.18702

Original issue reported on code.google.com by sergey.t...@googlemail.com on 30 Mar 2013 at 6:09