When navigator is open in the overlay and user presses cancel while renaming a snippet overlay is closed and entered name is committed.
Created attachment 151089 [details] Patch
Committed r121983: <http://trac.webkit.org/changeset/121983>