Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #5
Previously when selecting elements in child frames, z-context would not be able to report any information, changes in this PR make is so that we should be able to see stacking contexts on any child iframes.
CleanShot.2021-11-03.at.15.01.56.mp4
Docs are extremely slim here, so this took quite a bit of experimentation. I finally found a decent solution to this. No idea on if this will pass for app review though.
The basic idea is that we also add a content_script.js which is injected in all child pages and iframes. We still have our devtools page, and also a background page to passthrough messages from the content script to the devtools page or vice versa.
After we create a sidebar panel, we tell the content scripts to message back the extension with their current urls.
We can then subscribe to dev tools change events with the right url
TODO