[v4]: rm redundant routes

Merged
SE
8mo ago
+25-1011

why

  • to reduce bloat by removing routes that are (or will be) functionally the same as other routes

what changed

  • removed:
    • /mainFrame since we already have /mainFrameId
    • /asProtocolFrameTree since we already have /getFullFrameTree
    • /getOrdinal since it is unnecessary (should not really have been exposed in the first place)
    • /waitForMainLoadState since 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)