Bug 918797 - Trying to prettify html irrevocably loses the source until the page is refreshed (relanded), r=fitzgen