提交 c281e61a 编写于 作者: M Matt Bierner

Use outerHtml to make sure we write `<html>` element from extensions too

上级 9690e3b1
......@@ -370,8 +370,7 @@
newFrame.contentWindow.addEventListener('DOMContentLoaded', e => {
if (FAKE_LOAD) {
newFrame.contentDocument.open();
newFrame.contentDocument.write('<!DOCTYPE html>');
newFrame.contentDocument.write(newDocument.documentElement.innerHTML);
newFrame.contentDocument.write('<!DOCTYPE html>\n' + newDocument.documentElement.outerHTML);
newFrame.contentDocument.close();
hookupOnLoadHandlers(newFrame);
}
......@@ -496,4 +495,4 @@
} else {
window.createWebviewManager = createWebviewManager;
}
}());
\ No newline at end of file
}());
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册