diff --git a/app/client/src/constants/WidgetValidation.ts b/app/client/src/constants/WidgetValidation.ts index 3f51bb8902..9edf9b0dfc 100644 --- a/app/client/src/constants/WidgetValidation.ts +++ b/app/client/src/constants/WidgetValidation.ts @@ -200,6 +200,7 @@ export const DEDICATED_WORKER_GLOBAL_SCOPE_IDENTIFIERS = { FinalizationRegistry: "FinalizationRegistry", Float32Array: "Float32Array", Float64Array: "Float64Array", + fonts: "fonts", FontFace: "FontFace", FormData: "FormData", Function: "Function", @@ -253,8 +254,12 @@ export const DEDICATED_WORKER_GLOBAL_SCOPE_IDENTIFIERS = { NetworkInformation: "NetworkInformation", Notification: "Notification", Number: "Number", + onerror: "onerror", onmessage: "onmessage", onmessageerror: "onmessageerror", + onlanguagechange: "onlanguagechange", + onrejectionhandled: "onrejectionhandled", + onunhandledrejection: "onunhandledrejection", origin: "origin", Object: "Object", OffscreenCanvas: "OffscreenCanvas", @@ -263,6 +268,7 @@ export const DEDICATED_WORKER_GLOBAL_SCOPE_IDENTIFIERS = { parseInt: "parseInt", Path2D: "Path2D", PaymentInstruments: "PaymentInstruments", + performance: "performance", Performance: "Performance", PerformanceEntry: "PerformanceEntry", PerformanceMark: "PerformanceMark", @@ -300,6 +306,7 @@ export const DEDICATED_WORKER_GLOBAL_SCOPE_IDENTIFIERS = { Request: "Request", requestAnimationFrame: "requestAnimationFrame", Response: "Response", + scheduler: "scheduler", Scheduler: "Scheduler", SecurityPolicyViolationEvent: "SecurityPolicyViolationEvent", Serial: "Serial", diff --git a/app/client/src/utils/helpers.test.ts b/app/client/src/utils/helpers.test.ts index 1196b04c87..6345e822ea 100644 --- a/app/client/src/utils/helpers.test.ts +++ b/app/client/src/utils/helpers.test.ts @@ -580,6 +580,7 @@ describe("isNameValid()", () => { "clearTimeout", "parseInt", "eval", + "performance", ]; // Some window object methods and properties names should be valid entity names since evaluation is done // in the worker thread, and some of the window methods and properties are not available there.