Related with 'loosing previously typed info' will be handled here https://bugzilla.mozilla.org/show_bug.cgi?id=878735 (checked with Ayman)

On the other hand I will try to extract the code from '#new' part. Thanks!