Theoretically, what happens if a flight diverts to a foreign country, needs everyone to leave the plane, and a person is found inadmissible to the country (even if they had a visa)?
For example, what would happen if a person from Iran was on the flight to Vancouver that diverted to Seattle? From what I see in news reports, the passengers did go through immigration.