0

I'm trying to develop a chrome extension that reads a value from an input element inside of an iframe, which src indicates to a completely different domain.

I already tried including

"all_frames": true,

into the manifest.json, but it seems to get called through a script.

I can see it inside of the "inspect elements" tool, so I assumed that would work, but now I am kind of stuck.

1 Answers1

0

If you have a script that is injected with all_frames: true AND matches both domains, then you have 2 separate instances of content scripts.

They can either talk using postMessage, or through the background page using Messaging (unfortunately, Messaging API can't work directly between them).

This question may be useful as well.

Community
  • 1
  • 1
Xan
  • 74,770
  • 16
  • 179
  • 206