diff --git a/src/core/frames/frame_controller.js b/src/core/frames/frame_controller.js index 015578b53..3d943266b 100644 --- a/src/core/frames/frame_controller.js +++ b/src/core/frames/frame_controller.js @@ -349,7 +349,7 @@ export class FrameController { frame.delegate.fetchResponseLoaded = async (fetchResponse) => { if (frame.src) { const { statusCode, redirected } = fetchResponse - const responseHTML = document.documentElement.outerHTML + const responseHTML = frame.ownerDocument.documentElement.outerHTML const response = { statusCode, redirected, responseHTML } const options = { response,