I'm not sure how to even start looking for other extensions doing this. With that said, your comment about
Target.setAutoAttach did lead me down the right road (Thanks for that!).
The only problem left is to map the frame IDs received by
chrome.webNavigation events (accepted by
chrome.scripting.executeScript) to target IDs or frame ID's received with
Runtime.executionContextCreated events so I can use them with
Runtime.evaluate. Any idea how to do that?
I can send a chrome.scripting.executeScript script that set's a property on each frame with it's frame ID then read it with Runtime.evaluate and build a map but I rather do it in a more straightforward way, if one exists.
Thanks.