This uses the already-existing ability of the TabDialogManager to show a dialog immediately after the previous one closes. So this code doesn't need to keep track of what dialog to show next - it just displays them all (and closes them appropriately), and the TabDialogManager will show them one at a time. Differential Revision: https://phabricator.services.mozilla.com/D223415