877a65e29b
Tree strucutre of duplicated tabs is broken with a delay, because duplicateTab() applies tab's state asynchronously. The delayed restoration breaks constructed tree. Thus we have to wait all tabs are completely duplicated.