Update background and manifest files. Finally works correctly because Chrome fixed the double calling of events chrome.windows.getCurrent()