I've found a quick solution: I have a content scripts that, on load, posts a message to the background page. This message is sent for each single iframe on the page.
This is the code on the content script: chrome.extension.connect().postMessage({ location:location }); On the background page, there is the following code. (The last "if" checks that the page address is the same of the tab) chrome.extension.onConnect.addListener(function(port) { port.onMessage.addListener(function(i) { if (i.code) { if ( i.location.href == port.tab.url ) { -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=.