Proposal: Allow specifying frameId
for devtools.inspectedWindow.eval
api
#389
Labels
proposal
Proposal for a change or new feature
supportive: chrome
Supportive from Chrome
supportive: firefox
Supportive from Firefox
supportive: safari
Supportive from Safari
Background
We recently ran into a limitation with the
devtools.inspectedWindow.eval
api where we need to target specific frames in order to send ainspect
command within context of the devtools api to inspect a specific element. This works in most cases as we are able to specify a unique url to target the frame:However, we ran into a limitation where there are identical frames with the same url within context of the page, and have no way to uniquely send commands to distinct frames with identical urls with this api. Normally, we utilize
browser.tabs.sendMessage
with specifying theframeId
of the desired frame, but we need access to the devtools api in order to callinspect
.Proposal
Similar to
browser.tabs.sendMessage
,browser.devtools.inspectedWindow.eval
should support specifyingframeId
in order to target distinct frames without relying on the frame url:The text was updated successfully, but these errors were encountered: