Chrome doesn't have a way to copy HTML code in Dev Tools which would include contents of all loaded iframes
Reported by
archon...@gmail.com,
Nov 8 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36 Steps to reproduce the problem: Let me give some context here. Ad networks have been plagued by redirect ads for years, and Chrome is finally doing something about them http://www.androidpolice.com/2017/11/08/google-chrome-will-start-blocking-redirecting-ads/. We've been hit by these rogue ads countless times, but finding the culprit ad has proven to be close to impossible because: 1) they only target mobile browsers, which are much harder to inspect and debug for unsuspecting readers 2) the ads redirect, so by the time you attempt to figure out what caused the redirect, the ad code is gone 3) if you hook up to Chrome's Remote Devices tool via adb, the Network tab is empty, and saving .har is impossible because the collection only starts when you open Dev Tools But due to today's developments, we finally found out about a flag in Chrome that prevents redirects from ever occurring (chrome://flags/#enable-framebusting-needs-sameorigin-or-usergesture), which means we now have a real chance to have users with a little bit of knowledge hook up to adb and inspect source, then send it as a report to us. But Chrome's inability to copy content in the Elements tab that would include not just the declaration of each iframe, but the source too, is preventing us from creating instructions for easy reporting of such cases. We can't use .har (as mentioned above), so the easiest instructions to tell people would be load Elements, right click on <html> and do something like "Copy, including iframe sources" - a currently non-existent option. Considering each ad placement is an iframe which could contain many sub-iframes, creating instructions to copy every single iframe source separately would not be feasible. So, here's a feature request to add the ability to copy HTML which would include generated iframe sources too. Steps: 1. Load up any site with iframes. Open up Dev Tools, Elements. 2. Attempt to copy the generated source, including iframe sources. 3. Find no such option. What is the expected behavior? An option to copy HTML which would include generated iframe sources too would be found. What went wrong? Such option is not found. Did this work before? No Chrome version: 62.0.3202.89 Channel: stable OS Version: 10.0 Flash Version: Here is a SO post looking for this functionality: https://stackoverflow.com/questions/13870015/copy-as-html-on-nested-iframe-elements-in-chrome-inspector
,
Nov 8 2017
Marking as 'untriaged' since it's a feature request.
,
Nov 15 2017
Thanks for the report with detailed context. lushnikov@, could you please take a look? |
|||
►
Sign in to add a comment |
|||
Comment 1 by archon...@gmail.com
, Nov 8 2017