Thursday, January 12, 2012

How can a Chrome extension's content script determine the injected page's referrer?


What is the best way to determine a page's referrer within the context of a content script in a Chrome extension?



It looks possible to intercept requests' headers using the chrome.webRequest module, but it would then take some book-keeping and message-passing in order to get it into the content script.



That approach feels kludgy. Is there a better way?

No comments:

Post a Comment