DevTools: contentDocument should build with DOMDocument instead of DOMNode
Originally, payloads with 'contentDocument' created a new SDK.DOMDocument on the frontend. When we prepared DevTools to render iframes inline [1], we switched it to use SDK.DOMNode, which lacks - isInShadowTree reset - documentURL, baseURL 'contentDocument' differs from 'templates' and 'importedDocuments' in that the latter two do not affect shadow tree/documentURL/baseURL. [1] https://crrev.com/d16260bf91889bb7ead1fe490d087bc2ed02d58b Bug: 836849 Change-Id: I9c242720c3d0c37bf8170b1b87d8b31a2f52d2ff Reviewed-on: https://chromium-review.googlesource.com/1102156 Commit-Queue: Erik Luo <luoe@chromium.org> Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#570122}
Showing
Please register or sign in to comment