Use more native way to copy history while cloning tab, references #540