Workaround but this can not be always used.

If the alert box is generated by Flash's getURL method instead of method, Firefox does not freeze.

Please click "A" below. This time Firefox does not freeze.

If you change an actionscript within the flash and use method instead of getURL method, you will have a problem. Firefox freezes.

Please see Freeze example.