You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uploading a huge image to the demo site (https://image-library.app/) in the "Upload and Compress Image", it'll take a long time to finish if some extensions or libs change the prototype of RegExp.
Reducing the steps to the minimum to reproduce the problem, I have:
In browser console run the line: globalThis.Object["defineProperty"](globalThis.RegExp.prototype, 'mynewproperty', {});
Click on Upload and Compress Image and chose a huge image (7MB or more)
It'll take almost 30 seconds to conclude. Without the change on RegExp prototype, it takes only 2 or 3 seconds.
Thirdy party products to protect JS code can causes this changes on RegExp.
The problem occurs only on Chrome and Edge. Firefox works fine.
The text was updated successfully, but these errors were encountered:
Uploading a huge image to the demo site (https://image-library.app/) in the "Upload and Compress Image", it'll take a long time to finish if some extensions or libs change the prototype of RegExp.
Reducing the steps to the minimum to reproduce the problem, I have:
globalThis.Object["defineProperty"](globalThis.RegExp.prototype, 'mynewproperty', {});
It'll take almost 30 seconds to conclude. Without the change on RegExp prototype, it takes only 2 or 3 seconds.
Thirdy party products to protect JS code can causes this changes on RegExp.
The problem occurs only on Chrome and Edge. Firefox works fine.
The text was updated successfully, but these errors were encountered: