Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1705 by [email protected]: Firefox support problem
http://code.google.com/p/google-caja/issues/detail?id=1705

What revision of the cajoler exhibits the problem?  On what browser and OS?
I am using the caja server at caja.appspot.com. Running the page in Firefox 20.0.1 on windows 7

What steps will reproduce the problem?
1. The host code
    <script type="text/javascript"
        src="//caja.appspot.com/caja.js">
    </script>

<div id="guest"></div>
    <script type="text/javascript">
        caja.initialize({
            cajaServer: 'https://caja.appspot.com/',
            debug: true
        });
caja.load(document.getElementById('guest'), undefined, function (frame) {
            frame.code('http://abrisrisba.webs.com/TestApp.html',
                       'text/html')
                 .run();
        });
    </script>

2. the guest code
<div id="method2">Clicking here will do something too!</div>
<button id="but">Press</button>

<script type="text/javascript">
function handler2(sender){
document.getElementById('method2').innerHTML = "Method 1 Clicked";
}
var myClickEl2 = document.getElementById('but');
myClickEl2.onclick = handler2;
</script>

3. Run the script in firefox

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

The expected output is that the text in the div will change when you push the button. This works perfectly in Chrome but not in Firefox. I get an error message saying "cannot use the given object as a weak map key in source: "unknown" at line: 0"



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to