I hope there is a way for either SAPUI5 or OpenUI5 as this would ease the development efforts to implement data loss protection. If there isn't, I would be interested to know the best alternative to implement similar behavior. I was thinking of maybe extending the sap.f.routing.Router and checking an application-level dirty flag before handling the navigation.