Fix navigation and CF handling.

Old CF handling didn't work with Firefox due to some auto-focus issue with our
HTML code in the URI/timeout fields.