Today I was able to crash Firefox with a very simple JavaScript. That is the JavaScript:

<script type="text/javascript">
function sayHello()
{
    alert('hello');
}
sayHello();
</script>

Well, that script works as expected if you have it in a “normal” view. But it leads to a “Segmentation fault” (and therefore to a crash of Firefox) if the same script is in a view you return with Ajax. I think the problem is the “eval” function of JavaScript as it seems it cannot execute custom functions (I am not a JavaScript expert so that is only a guess). I solved the problem with moving the JavaScript function to the “normal” view. So I have in the view I return with Ajax only the call to my function:

<script type="text/javascript">
sayHello();
</script>

That works :)