Bug 42554
| Summary: | Web Inspector: elements from iframes should be accessible in the console | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yury Semikhatsky <yurys> |
| Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | burg, bweinstein, chuck, gabriel, glen.little, gramki, joepeck, keishi, montana.harkin, pfeldman, pmuellr, rik, yurys, zachleatherman |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Yury Semikhatsky
Currently evaluation in the console is performed in the context of the main frame in the page and it adheres to the same cross-origin policy as the main frame itself. This means that you cannot access elements in the iframe unless the main frame can. We could provide a mechanism for choosing in which iframe to perform evaluation.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Yury Semikhatsky
There is a user request for this:
http://stackoverflow.com/questions/3275816/debugging-iframes-with-chrome-developer-tools
Timothy Hatcher
Firebug does this with the grossly named cd() function.
George Montana Harkin
+1 for this feature. Pretty useful if developing on a legacy portal that uses iframes for everything.
Gabriel Hernandez
+1 This is badly needed for the new Facebook iframes app canvas. Development in this environment has been notoriously difficult thus far due to the abomination known as FBJS and this new method of making pages actually suffers only on this level, no console for my iframe forces me to use Firefox/Firebug.
Glen
This is badly needed. I have a simple popup window using an iframe (using Highslide), and cannot debug inside of it. Having to resort to IE9 and Firefox :(
ramki
+1
Charles Pritchard
This appears to be available in Firebug:
http://stackoverflow.com/questions/2495313/firebug-and-jquery-selectors-in-an-iframe