Fix development mode hang when iframe is removed (#19220)
Fix development mode hang when iframe is removed (#19220)

* Fix development mode hang when iframe is removed

* Also fix #16734
billfeller/react,cpojer/react,tomocchino/react,camsong/react,facebook/react,mosoft521/react,acdlite/react,mosoft521/react,cpojer/react,tomocchino/react,camsong/react,cpojer/react,facebook/react,trueadm/react,camsong/react,facebook/react,camsong/react,camsong/react,cpojer/react,yungsters/react,tomocchino/react,mosoft521/react,tomocchino/react,terminatorheart/react,trueadm/react,mosoft521/react,billfeller/react,tomocchino/react,acdlite/react,facebook/react,terminatorheart/react,trueadm/react,acdlite/react,mosoft521/react,yungsters/react,trueadm/react,ArunTesco/react,yungsters/react,terminatorheart/react,camsong/react,billfeller/react,terminatorheart/react,terminatorheart/react,yungsters/react,cpojer/react,cpojer/react,acdlite/react,trueadm/react,terminatorheart/react,billfeller/react,yungsters/react,billfeller/react,trueadm/react,tomocchino/react,facebook/react,billfeller/react,camsong/react,ArunTesco/react,facebook/react,mosoft521/react,tomocchino/react,mosoft521/react,cpojer/react,billfeller/react,ArunTesco/react,acdlite/react,trueadm/react,yungsters/react,yungsters/react,acdlite/react,facebook/react,acdlite/react