I am trying to make an chrome extension that removes element right clicked on using contextMenu, including elements nested within iframes.
chrome.contextMenus.create({
title: 'test',
contexts: ['all'],
onclick: function(info, tab){
console.log(info)
// console.log(tab)
}
}, function(){})
However, the only data I am getting back from my info object is the frameID, and not the element inside of the frame initially clicked on. How would you return the element clicked on from the contextMenu, regardless if it is nested in a frame?