ejayimperial / google-caja

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

log-to-console.js causes error #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

After loading caja.js and log-to-console.js, call:

caja.log("test");

Then load the page with Firefox with Firebug.

What is the expected output? What do you see instead?

Instead of getting "test" in the log, you will see "uncaught exception:
Permission denied to get property Function.__parent__

I am not sure what is the reason for the message, but a simple fix is to
change log-to-console.js to:

    ___.setLogFunc(function(str) {
      global.console.log(str);
    })

What version of the product are you using? On what operating system?

Jan 9 = r337

Original issue reported on code.google.com by andrea.c...@gmail.com on 9 Jan 2008 at 2:55

GoogleCodeExporter commented 9 years ago
http://groups.google.com/group/google-caja-discuss/msg/6111d9767d2d7878

Original comment by erights on 10 Jan 2008 at 12:31

GoogleCodeExporter commented 9 years ago

Original comment by erights on 15 Jan 2008 at 8:30