#11149 Make sure hitting the close button does not trigger double prevent navigation warnings
Make sure hitting the close button does not trigger double prevent navigation warnings

* origin/pr/11162:
  #11149 Make sure hitting the close button does not trigger double prevent navigation warnings