Skip to content

Use global DOM types in Fantom tests (#58569) - #58569

Closed
rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D120528709
Closed

rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D120528709

Conversation

@rubennorte

@rubennorte rubennorte commented Sep 17, 2026

Copy link
Copy Markdown
Member

Summary:

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through dispatchNativeEvent.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 17, 2026
@meta-codesync

meta-codesync Bot commented Sep 17, 2026

Copy link
Copy Markdown

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D120528709.

rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 17, 2026
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
@meta-codesync meta-codesync Bot changed the title Use global DOM types in Fantom tests Use global DOM types in Fantom tests (#58569) Sep 17, 2026
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 17, 2026
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
@rubennorte
rubennorte force-pushed the export-D120528709 branch 2 times, most recently from 3d66020 to e3c90e9 Compare September 17, 2026 16:24
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 17, 2026
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
Summary:
Replace eligible React Native deep imports in Fantom tests with package exports, Fantom APIs, DOM globals, and types derived from exported symbols. Keep implementation-specific imports where the public surface does not expose equivalent behavior or compatible Flow types.

Changelog: [Internal]

Differential Revision: D120517166
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
Summary:
Pull Request resolved: react#58569

Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D120528709
@meta-codesync meta-codesync Bot closed this in 652d501 Sep 18, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 18, 2026
@meta-codesync

meta-codesync Bot commented Sep 18, 2026

Copy link
Copy Markdown

This pull request has been merged in 652d501.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant