The life and fate of a bubble in a geometrically perturbed Hele-Shaw channel