Commit Graph

133 Commits

Author SHA1 Message Date
Umberto Toniolo
8bb5c948be
🐛 document proxy in strict sandbox mode replaces receiver with target in methods args (#2450) 2023-04-13 12:09:18 +08:00
Kuitos
4f064a4831
🐛 hasOwnProperty should work well with special [[this]] binding (#2452) 2023-04-03 11:04:51 +08:00
Kuitos
6e5b145046
🐛 compatible with overwritten appendChild by apps themselves (#2449) 2023-03-29 20:37:35 +08:00
Kuitos
601696ad7f
🐛 use const instead of function parameters to cache global variables while speedy mode running (#2447) 2023-03-29 18:37:17 +08:00
whg4
bb40e63089
🐛 invoking nextTick will trigger infinite angular change detection (#2439) 2023-03-16 22:39:47 +08:00
kiloc
c9dff6fe42
🩹 should invoke removeChild on original node while it not calling by micro app 2023-03-10 16:57:21 +08:00
Kuitos
cf7e6b4eb8
🐛 compatible with old browser like chrome55 (#2427) 2023-03-10 16:12:28 +08:00
Kuitos
6732f8b4b0
🐛 speedy mode sandbox should compatible with element-ui popper (#2415) 2023-02-27 22:48:40 +08:00
Kuitos
bcfc96cd62
🐛 compatible with nested sandbox to avoid stack overflow while createElement calling (#2414) 2023-02-27 22:06:41 +08:00
Kuitos
901dac8c7b
🧑‍💻not rebind a bounded function of document (#2412) 2023-02-26 16:49:55 +08:00
Kuitos
42dbcaeabe
🐛 compatible with MutationObserver as document had been wrapped as a proxy (#2407) 2023-02-22 13:58:56 +08:00
Kuitos
dd6aa4a042
patch sandbox document to aviod chaos of dynamic element appending when speedy mode enabled (#2404) 2023-02-22 01:12:43 +08:00
Kuitos
ab2c29737e
🐛 compatible with legacy browser which not support globalThis in speedy mode (#2400) 2023-02-16 21:30:23 +08:00
Kuitos
bac5e2ac69
🐛window variable should in with lexical scope while speedy mode enabled (#2390) 2023-02-10 11:34:09 +08:00
Kuitos
52b1a3c441
🐛 should trigger scripts loading before them executing (#2389) 2023-02-09 21:58:08 +08:00
Kuitos
bd617f70ac
🚚 rename data-sandbox-configuration to data-sandbox-cfg (#2382) 2023-01-31 15:14:26 +08:00
Kuitos
141d86807c
enabled speedy mode by default (#2373) 2023-01-12 18:57:59 +08:00
pshu
68d0e12bdb
🐛 delete defineProperty to recover doc.currentScript (#2372) 2023-01-12 17:31:07 +08:00
Kuitos
4baec4502b
revert default enabled speedy mode (#2321) 2022-10-30 19:44:00 +08:00
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
e5a175caa4
import global variables from https://github.com/sindresorhus/globals/blob/main/globals.json (#2288) 2022-10-05 15:50:57 +08:00
tangxiaomian
7d0116c322
add getContainerXPath test (#2132)
Co-authored-by: Kuitos <kuitos.lau@gmail.com>
2022-09-26 22:10:28 +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
Kuitos
9a343b4074
🐛 isPropertyReadonly support accessor assert (#2284) 2022-09-26 20:57:39 +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
e9e492ba8e 🏷 bring back Navigator.connection type to fix tsc error temporary 2022-08-26 14:51:30 +08:00
Kuitos
a5a0273a11
🐛 fix the counter issue while multiple apps mounting concurrently (#2250) 2022-08-26 14:23:03 +08:00
Kuitos
1be899052d
🐛 dynamic head script should be append to qiankun head (#2181) 2022-07-12 16:14:43 +08:00
Kuitos
c73265db50
🐛 use shadow root element to query qiankun head directlly (#2148) 2022-06-16 00:16:14 +08:00
Kuitos
1faa094eb3
🐛 avoid accidentally deleted for dynamic stylesheet (#2147) 2022-06-15 23:46:02 +08:00
xiaochao
ad5d85d27d
🐛 compatible with lower version chrome that does't support css rule conditionText
Co-authored-by: Kuitos <kuitos.lau@gmail.com>
2022-06-02 21:10:48 +08:00
Kuitos
81861b0b5d 🐛 fix version omit 2022-05-30 10:45:09 +08:00
Kuitos
9c77055535 🐛 fix the simulated head issues (#2121) 2022-05-29 23:06:23 +08:00
gongshun
a885c4ab8a 💚 fix build-error caused by ts check (#2110) 2022-05-27 11:19:41 +08:00
Kuitos
526a3f610c 🐛 simulate micro app head element for dynamic appending styles (#2097) 2022-05-23 12:18:22 +08:00
Zt448143356
7fa3eb28f3 🐛CSS should not process duplicated in experimentalStyleIsolation (#2075) 2022-05-09 15:21:42 +08:00
Kuitos
82f29a8604 filter inexecutable script for dynamic import scenario (#2011) 2022-03-25 12:17:49 +08:00
Cheese
94376f6141 🐛 could pass undefined to Node.contains() (#1863) 2021-12-10 21:09:54 +08:00
Kuitos
ff93c6fd10 🐛 app instance id generator compatible with nested sandbox (#1866) 2021-12-10 16:22:45 +08:00
Kuitos
aa6d4afc27 🐛 init global name map for app instance (#1860) 2021-12-08 21:06:33 +08:00
Kuitos
b8571b2346 use new unique instance name generator (#1859) 2021-12-08 20:36:42 +08:00
Chen Zhouji
07bfd9f38f add autoStart config to loadMicroApp (#1854) 2021-12-02 21:28:44 +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
4691c652ec 🗑 add warning for deprecated apis (#1836)
* 🗑 add warning for deprecated apis

* 💚 remove 12.x version in ci for compatible
2021-11-25 11:43:01 +08:00
叡山电车
e807cbcfb6 🐛 keep toString always return original value for function in sandbox (#1785)
* fix: correct toString for functions

* Update src/sandbox/common.ts

* Update src/sandbox/common.ts

* handle getter in toString descriptor

* toString function predict

Co-authored-by: Kuitos <kuitos.lau@gmail.com>
2021-11-04 17:19:36 +08:00