-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iframe fail #5
Comments
Sorry for the late reply. I will have to look into it. I intentionally avoid iframe because I can't simply use the same scope between the main window and the iframe ones. It will show another WF instance in the iframe, which is not good. |
I also ran into this problem when trying to debug some font usages in my iframe. My iframe is inserted via the chrome extension I'm building (it's basically a toolbar at the top of the page to help users instrument their website with our product). You could use the same method I'm using to talk to the iframe, which is you send messages to your background page for your extension via chrome's extension messaging API, and then the background page sends a message to all frames in the current page like so: In your manifest, specify that the content scripts should run in all frames like so: You will of course have to conditionalize the logic within your content scripts to do different stuff based upon whether they are running in the toplevel or in an iframe, so there is a bit of work involved there. But it may be worth the feature. I know I'd love to see it :-) |
Thanks for this. Very clever and useful. This is something the various Dev Tools Inspectors should really implement natively. Congrats on beating them to it!
One issue: In chrome 21, the plugin doesn't work on text inside an iframe. No bubble pops up at all. Try inspecting the results pane here:
http://jsfiddle.net/Wsmfv/
Any fix greatly appreciated.
The text was updated successfully, but these errors were encountered: