I'm building a chrome extension and attempting to attach an event listener to this, but I'm not seeing anything in the console of the background page.
chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
console.log('REFERRER', request.ref);
});
This code is in my main.js background page, all my other event listeners (chrome.tabs.onUpdated, chrome.extension.onMessage, etc) are all working fine though.