experimental: Fix chrome 134 regression bug (#5046)

## Description

https://issues.chromium.org/issues/403708813


## Steps for reproduction

Type in Debug Console 
`ScrollTimeline`
for Chrome  134.0.6998.164  >= version  >= 134.0.6998.0 
This would be non native code


## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
This commit is contained in:
Ivan Starkov authored and GitHub committed 2025-03-26 16:27:10 +05:00
1 parent ccba8d9581
commit b787e3d8ee
4 files changed
+10 -4

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ jobs:
const results = [
await assertSize('./fixtures/ssg/dist/client', 352),
await assertSize('./fixtures/react-router-netlify/build/client', 368),
await assertSize('./fixtures/webstudio-features/build/client', 1024),
await assertSize('./fixtures/webstudio-features/build/client', 1028),
]
for (const result of results) {
if (result.passed) {
+6 -1
View File
@@ -1,3 +1,8 @@
interface Navigator {
userAgentData?: { brands: Array<{ brand: string; version: string }> };
userAgentData?: {
brands: Array<{ brand: string; version: string }>;
getHighEntropyValues(hints: string[]): Promise<{
fullVersionList?: Array<{ brand: string; version: string }>;
}>;
};
}
@@ -4,7 +4,8 @@
"src",
"../../@types/**/scroll-timeline.d.ts",
"private-src",
"../sdk/src/schema/animation-schema.ts"
"../sdk/src/schema/animation-schema.ts",
"../../@types/navigator.d.ts"
],
"exclude": ["private-src/perf/**/*"],
"compilerOptions": {