Bug Details
If the player used a water bucket and clicked repeatedly underwater, they would have a small time frame where air is present. This time allows the player's respiration bar to regenerate to full, allowing the player not to need to swim to the surface.
How to Reproduce
Stand underwater for a period of time where you lose air.
Pick up the water in the block where your head is.
Place back down the water block.
Repeat steps 2 and 3 until your respiration bar is full.
Video of The Bug
https://drive.google.com/file/d/1LkfPpYiCyjUaaiYiVy3fdA-tZUMMCZBE/view?usp=drive_link
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue in MC-134622, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or any additional information to the main ticket it would be appreciated.
Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.
Quick Links:
📗 Tracker Guidelines | 🛠 Community Support | 📧 Mojang Support | 🔑 Account Support | ✍️ Feedback Discord