How to get current url in android browsers (API23)

I know that current version of API removed this functionality for reading bookmark history, before that I used to use attached function to access current URL, but unfortunately it does not work anymore, do you have any ideas how to achieve this problem?