Is there a way to uniquely identify an iframe that the content script runs in for my Chrome extension?
问题 In my Chrome extension I am injecting the content script into all IFRAMEs inside a page. Here's a part of the manifest.json file: "content_scripts": [ { "run_at": "document_end", "all_frames" : true, "match_about_blank": true, "matches": ["http://*/*", "https://*/*"], "js": ["content.js"] } ], So a single web page having multiple IFRAMEs will end up running that many copies of my injected content.js . The logic inside content.js collects data from each IFRAME it's injected into, or from the