debugger-protocol-viewer
debugger-protocol-viewer copied to clipboard
"DOM.getFlattenedDocument" -- Different results between the same service sites in two different network environments
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!
-
Send commad
DOM.getFlattenedDocumentin env1, I got node list with 14590 items.
-
Otherwise, send commad
DOM.getFlattenedDocumentin env2, I got node list with 12779 items.
By comparison, it is found that the innermost iframe is not recognized in the second environment.
More
The document with "DOM.getFlattenedDocument" is following.
And I try to use DOMSnapshot.captureSnapshot instead, but I got the same issuse.