In an iOS Home Screen web app, opening and closing a link blocks the camera permission prompt until the app is swiped closed.
Report: bugs.webkit.org/show_bug.cgi?id=332895
While it is locked, confirm() still shows and step 1 is still granted.
Reset: swipe the app closed in the app switcher, then open it again. Control: after a reset, do steps 1 and 3 without step 2, and the camera prompt shows.