The Google Chrome extension API provides info on the currently open window, using chrome.devtools.inspectedWindow, but it doesn\'t provide events for when it changes. I may
Listen to one of the chrome.webNavigation events, and notify the devtools whenever an update occurs.
Another way to detect that the inspected page is being unloaded is to use the chrome.devtools.network.onNavigated event (only available within your devtools extension page).