Currently there is Maximum call stack size exceeded error when trusted-json-set or trusted-replace-argument is called with property used inside scriptlet.
Steps to reproduce:
- Add to user rules:
example.org#%#//scriptlet('trusted-json-set', 'Object.prototype.hasOwnProperty', '$.*.foo.bar', '$remove$', '', 'this')
or
example.org#%#//scriptlet('trusted-replace-argument', 'String.prototype.replace', '0', '"Replacement"', 'Foo bar')
- Navigate to - https://example.org/
Website freezes.
This line:
|
isMatchingSuspended = false; |
Probably should be removed, similar for
trusted-replace-argument.
Currently there is
Maximum call stack size exceedederror whentrusted-json-setortrusted-replace-argumentis called with property used inside scriptlet.Steps to reproduce:
or
Website freezes.
This line:
Scriptlets/src/scriptlets/trusted-json-set.ts
Line 1016 in 320efda
Probably should be removed, similar for
trusted-replace-argument.