Merge "Copy extension names to an owning container to prevent use-after-free"