Reason: navigator.geolocation.getCurrentPosition does not call its success or error callback when run from background.js, although it works as expected from main.js
Current implementation looks at the shortest title within the counted window of history. This has drawbacks, as it will give not so useful titles if the home page hasn't been visited recently. Refer to discussion.
"Starting on September 15th 2015, the URL for Google Calendar Web is moving from www.google.com/calendar to calendar.google.com/calendar. Once the move is complete, users who navigate to www.google.com/calendar will automatically be redirected to the new URL."