This fixes the local -> remote frame swap when Page.frameDetached arrives before Target.attachedToTarget. Instead of error-prone logic we do currently, new CDP exposes frame detach reason that we can use.
//utils/check_availability.js