Skip to content
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

"DOM.getFlattenedDocument" -- Different results between the same service sites in two different network environments #178

Open
sxnys opened this issue Nov 3, 2021 · 0 comments

Comments

@sxnys
Copy link

sxnys commented Nov 3, 2021

Chrome Version 95.0.4638.54

When I use devTools protocol "DOM.getFlattenedDocument", I got different results between the same site in two different network environments. The site has two layers of iframes nested.

What steps will reproduce the problem?

Send commad DOM.getFlattenedDocument with parameters {"depth": -1, "pierce": true}, with "Protocol monitor" in DevTools or using chrome.debugger.sendCommand:

chrome.debugger.sendCommand(debuggeeId, "DOM.getFlattenedDocument", {
            depth: -1,
            pierce: true
        }, function (res) {})

THE SAME SITE DEPLOYED IN TWO DIFFERENT ENVIRONMENTS!

  1. Send commad DOM.getFlattenedDocument in env1, I got node list with 14590 items.
    image

  2. Otherwise, send commad DOM.getFlattenedDocument in env2, I got node list with 12779 items.
    image

By comparison, it is found that the innermost iframe is not recognized in the second environment.

More

The document with "DOM.getFlattenedDocument" is following.
image
And I try to use DOMSnapshot.captureSnapshot instead, but I got the same issuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant