Fix broken `about:cache` pages on higher security levels

We should allow JavaScript on about:cache as it would break otherwise on higher security levels. This is a spin-off of comment:3:ticket:16485.