[v4]: rm redundant routes
Merged
SE
8mo ago+25+25+01234567890123456789-1011-1011-0123456789012345678901234567890123456789
why
- to reduce bloat by removing routes that are (or will be) functionally the same as other routes
what changed
- removed:
/mainFramesince we already have/mainFrameId/asProtocolFrameTreesince we already have/getFullFrameTree/getOrdinalsince it is unnecessary (should not really have been exposed in the first place)/waitForMainLoadStatesince we already have/waitForLoadState
test plan
- removed associated tests
Summary by cubic
Removed redundant v4 page routes and cleaned up the OpenAPI/spec and schemas to shrink the API surface. Aligns with Linear STG-1635.
-
Refactors
- Removed endpoints: /v4/page/mainFrame, /v4/page/asProtocolFrameTree, /v4/page/getOrdinal, /v4/page/waitForMainLoadState
- Updated OpenAPI, schemas, route registry, and integration tests
-
Migration
- Use /v4/page/mainFrameId instead of /v4/page/mainFrame
- Use /v4/page/getFullFrameTree instead of /v4/page/asProtocolFrameTree
- Use /v4/page/waitForLoadState instead of /v4/page/waitForMainLoadState
- /v4/page/getOrdinal has no public replacement (was internal-only)