Commit Graph

37 Commits

Author SHA1 Message Date
Kuitos
743473ae51
enable speedy sandbox mode by default (#2320) 2022-10-30 19:37:58 +08:00
李凤宝(Ted)
6544b17f9b
🐛 proxy sandboxshould not delete untouched globals (#2310) 2022-10-20 10:55:40 +08:00
Kuitos
9df1bf9c83
🐛 should keep the property writable while it only have setter accessor (#2302) 2022-10-13 21:37:43 +08:00
Kuitos
b5ad5a4e43
♻️ refactor the global whitelist recovery logic and fix the unit test (#2291) 2022-10-07 16:42:53 +08:00
李凤宝(Ted)
c14ae3f083
🐛 prevent sandbox from deleting an existed whitelisted global variable, should restore it instead (#2287) 2022-10-05 16:22:29 +08:00
Kuitos
73a507f891
🐛 frozen property must be returned its actual value rather than bound value (#2285) 2022-09-26 21:59:24 +08:00
xioozq
0aaf55a77f
🐛 proxy sandbox should not overwrite read-only fields. (#2123) 2022-09-26 20:22:20 +08:00
Kuitos
7f517264bb
️ add speedy mode for sandbox to improve performance (#2271) 2022-09-18 22:28:46 +08:00
Kuitos
526a3f610c 🐛 simulate micro app head element for dynamic appending styles (#2097) 2022-05-23 12:18:22 +08:00
duwonders
908264ccd0 add some bom variables to white list and optimize runtime get trap in sandbox (#1845)
Co-authored-by: zexuan.dzx <zexuan.dzx@myxiaojin.cn>
2021-11-30 22:56:26 +08:00
Kuitos
df24f02e92 🐛 avoid illegal invocation error while using some dom api in nest sandbox (#1768) 2021-10-15 16:55:32 +08:00
Kuitos
ab64a7047b 🎨 rename variable for code readability (#1765) 2021-10-15 14:03:04 +08:00
Kuitos
c4b604228a remove global way for recording current running sandbox to fix nested scenario (#1723)
*  remove global way for recording current running sandbox to support parallel multiple instance

* export internal getCurrentRunningApp API

Co-authored-by: tli4 <a@tianyi.li>
2021-09-15 22:54:44 +08:00
Kuitos
91a238875b support nest sandbox scenario (#1722) 2021-09-15 20:53:17 +08:00
Troy Li
ad7feadd29 add internal getCurrentRunningApp api (#1697) 2021-09-09 17:59:53 +08:00
Kuitos
85ae42adbc hijack document event listener and destroy it after unmount (#1655) 2021-08-16 23:17:56 +08:00
Kuitos
d7e96a02ae ️reduce the invocation times with next tick in sandbox to make qiankun performance in control (#1629) 2021-08-04 13:05:32 +08:00
Kuitos
44ccad92de ️ fix the performance issue in sandbox (#1626) 2021-08-02 21:04:28 +08:00
Kuitos
761287ac3b 🎨 optimize current proxy setting logic (#1486) 2021-07-27 21:14:42 +08:00
Kuitos
08f810a28b 🐛 add getPrototypeOf trap in sandbox to keep the window instanceof Window returns true in microapp (#1465) 2021-05-25 11:50:04 +08:00
Kuitos
0f3c195b4c 🚨 fix tsc error (#1292) 2021-03-01 18:41:42 +08:00
Kuitos
92bddae77c hijack accessing window object with globalThis keyword (#1246) 2021-02-01 14:41:08 +08:00
Kuitos
567f4771e2 🐛 fix the active sandbox count issue (#1210) 2021-01-15 15:35:22 +08:00
Kuitos
aa84eaa289 🚨 upgrade to follow eslint new rules (#1179) 2020-12-24 12:25:36 +08:00
gongshun
69b6d54e0b 🐛 fix uniq function bug with edge (#1065)
Co-authored-by: gongshun <gongshun@gridsum.com>
2020-11-11 12:31:49 +08:00
Kuitos
72d3a40599 add qiankun runtime variable (#1057) 2020-11-06 21:09:39 +08:00
Kuitos
44726a22b6 record latest set property to use to fallback in some incompatible scenario (#1056) 2020-11-06 19:46:17 +08:00
Kuitos
3c40e1b9ad 🐛 keep the iteration order after reassign a non-enumerable value (#1055) 2020-11-06 18:29:16 +08:00
Kuitos
3b98d6d708 🐛 fix nullish bug in proxy sandbox (#1053) 2020-11-05 17:37:04 +08:00
Kuitos
3fa008be96 hijack dynamic document appending in evalling code (#1052) 2020-11-05 17:03:05 +08:00
Kuitos
96ebf72bf0 🎨 format code (#1003) 2020-10-15 23:23:49 +08:00
Kuitos
8ede338a52 ️ use weakmap to instead symbol (#1002) 2020-10-15 20:57:51 +08:00
Kuitos
157cba7a44 support for react hot load (#999) 2020-10-15 20:46:48 +08:00
Kuitos
d537790f7d split dynamic append patcher for loose and strict sandbox (#995)
*  split dynamic append patcher for proxy and non-proxy sandbox

*  change useLooseSandbox to sandbox.loose configuration

*  improve warning message for non-proxy environment
2020-10-14 14:26:58 +08:00
Kuitos
b0f5a73f87 🐛 lazy added non-configurable props should be reported as configurable to avoid TypeError (#953) 2020-09-24 21:17:40 +08:00
Kuitos
cbaad7ed2d 🐛 identify host app dynamic creation (#897) 2020-08-26 11:32:46 +08:00
Kuitos
a889c992b9 revert UIEvent patch (#885) 2020-08-21 15:07:24 +08:00