فهرست منبع

reset doc and win when processing frames

Gildas 7 سال پیش
والد
کامیت
c4f62d7e3c
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      lib/single-file/single-file-core.js

+ 4 - 0
lib/single-file/single-file-core.js

@@ -564,6 +564,8 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 							const options = Object.create(this.options);
 							options.insertSingleFileComment = false;
 							options.insertFaviconLink = false;
+							options.doc = null;
+							options.win = null;
 							options.url = frameData.baseURI;
 							options.windowId = frameWindowId;
 							if (frameData.content) {
@@ -608,6 +610,8 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 					const options = Object.create(this.options);
 					options.insertSingleFileComment = false;
 					options.insertFaviconLink = false;
+					options.doc = null;
+					options.win = null;
 					options.url = resourceURL;
 					if (resourceURL) {
 						if (resourceURL && resourceURL != this.baseURI && DomUtil.testValidPath(resourceURL)) {