bug in Security tests?

17 views
Skip to first unread message

Steve Souders

unread,
Jan 15, 2011, 1:35:25 PM1/15/11
to browse...@googlegroups.com
On iPhone and Firefox 3.6 when I click on run all tests it stops at the end of the Security test with this JS error:
    document.getElementById("csp") is null

Can someone fix please?

-Steve




Mathias Bynens

unread,
Jan 15, 2011, 1:47:17 PM1/15/11
to browse...@googlegroups.com
> On iPhone and Firefox 3.6 when I click on run all tests it stops at the end of the Security test with this JS error:
>     document.getElementById("csp") is null

The error occurs on this page: http://www.browserscope.org/security/test/csp
Source:

<html>
<body>
<!-- the Eval inside xcsp.js should not work -->
<script src='../static/xcsp.js'></script>
<div id="csp">PASS</div>
<!-- The following inline script should not work -->
<script>
document.getElementById('csp').firstChild.nodeValue='FAIL'
</script>
</body>
</html>

It seems to me like the first <script> element should be placed below
<div id="csp"> instead of above it.

Mathias

Collin Jackson

unread,
Jan 15, 2011, 1:52:55 PM1/15/11
to browse...@googlegroups.com
I've checked in a fix in r786 to fix this script error, although I'm
not sure whether it is related to autorun issue you're having.

> --
> You received this message because you are subscribed to the Google Groups "Browserscope" group.
> To post to this group, send email to browse...@googlegroups.com.
> To unsubscribe from this group, send email to browserscope...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/browserscope?hl=en.
>
>

Lindsey Simon

unread,
Jan 15, 2011, 3:41:15 PM1/15/11
to browse...@googlegroups.com
Pushed, and it's working for me here.
This probably crept in an update I pushed @ Thursday or so I think.
http://code.google.com/p/browserscope/issues/detail?id=298 marked as fixed now.
-l

Steve Souders

unread,
Jan 15, 2011, 10:35:30 PM1/15/11
to browse...@googlegroups.com
Thanks!

Dion is doing a comparison of all the browsers that you can now install
on iPhone. ;-)

-Steve

Reply all
Reply to author
Forward
0 new messages