chore: snapshot main-world globals for no-utility-world contexts#40971
Conversation
yury-s
left a comment
There was a problem hiding this comment.
wait until we can add tests for this?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5f5f350 to
4c03a27
Compare
This comment has been minimized.
This comment has been minimized.
4c03a27 to
ea7596a
Compare
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"7181 passed, 1113 skipped Merge workflow run. |
Test results for "tests 1"129 failed 5 flaky43782 passed, 861 skipped Merge workflow run. |
Summary
PageDelegate.noUtilityWorldso contexts without a utility world (WebKit WebView) route the utility script into the main world.HTMLElement,Document,ShadowRoot,MutationObserver,Event,CustomEvent,EventTarget), JS builtins (WeakMap,WeakSet,Symbol,Error,TypeError,RegExp,Array,Object) and object globals (JSON,Math) — all commonly replaced by Prototype.js / MooTools / core-js / Sentry / XRegExp / Web Components polyfills.