Bug 1038354 - Exit editing mode before quick-switching to tab. r=lucasr