{
  "format": 3,
  "id": "3.1",
  "title": "Page handlers before context handlers: fallback and terminal decisions",
  "layers": {
    "client": {
      "label": "Client"
    },
    "browser": {
      "label": "Browser"
    },
    "fail": {
      "label": "Fail"
    }
  },
  "lanes": {
    "client": {
      "label": "NODE CLIENT · HANDLER CHAIN",
      "layer": "client",
      "y": 16,
      "h": 625.2,
      "x": 16,
      "w": 836.5619999999999
    },
    "browser": {
      "label": "BROWSER",
      "layer": "browser",
      "y": 669.2,
      "h": 172,
      "x": 16,
      "w": 836.5619999999999
    }
  },
  "frames": {},
  "nodes": {
    "B": {
      "label": "Page B",
      "layer": "client",
      "lane": "client",
      "box": [
        95.82733333333331,
        40,
        68,
        36
      ]
    },
    "A": {
      "label": "Page A",
      "layer": "client",
      "lane": "client",
      "box": [
        177.99399999999997,
        216.6,
        68,
        36
      ]
    },
    "D": {
      "label": "Context D",
      "layer": "client",
      "lane": "client",
      "box": [
        168.49399999999997,
        393.20000000000005,
        87,
        36
      ]
    },
    "C": {
      "label": "Context C",
      "layer": "client",
      "lane": "client",
      "box": [
        597.5619999999999,
        593.2,
        86,
        36
      ]
    },
    "overrides": {
      "label": "Request overrides",
      "layer": "client",
      "lane": "client",
      "box": [
        49.493999999999986,
        593.2,
        138,
        36
      ]
    },
    "continue": {
      "label": "continue()",
      "layer": "client",
      "lane": "client",
      "box": [
        280.49399999999997,
        493.20000000000005,
        89,
        36
      ]
    },
    "error": {
      "label": "Second decision fails",
      "layer": "fail",
      "lane": "client",
      "fail": true,
      "box": [
        410.56199999999995,
        593.2,
        155,
        36
      ]
    },
    "network": {
      "label": "Network",
      "layer": "browser",
      "lane": "browser",
      "box": [
        286.49399999999997,
        693.2,
        77,
        36
      ]
    },
    "response": {
      "label": "Response",
      "layer": "browser",
      "lane": "browser",
      "box": [
        598.0619999999999,
        793.2,
        85,
        36
      ]
    },
    "failed": {
      "label": "Request failed",
      "layer": "fail",
      "lane": "browser",
      "fail": true,
      "box": [
        140.49399999999997,
        693.2,
        114,
        36
      ]
    },
    "worker": {
      "label": "Worker-owned request",
      "layer": "browser",
      "lane": "browser",
      "box": [
        673.5619999999999,
        693.2,
        167,
        36
      ]
    }
  },
  "edges": {
    "ba": {
      "from": "B",
      "to": "A",
      "label": {
        "at": [
          214.99399999999997,
          150.5
        ],
        "text": "fallback"
      },
      "path": "M141.16066666666666,76 L141.16066666666666,86 L211.99399999999997,86 L211.99399999999997,216.6",
      "badge": [
        211.99399999999997,
        110.88333333333334
      ]
    },
    "ad": {
      "from": "A",
      "to": "D",
      "label": {
        "at": [
          214.99399999999997,
          327.1
        ],
        "text": "fallback"
      },
      "path": "M211.99399999999997,252.6 L211.99399999999997,393.20000000000005",
      "badge": [
        211.99399999999997,
        340.475
      ]
    },
    "dc": {
      "from": "D",
      "to": "C",
      "label": {
        "at": [
          643.5619999999999,
          515.4000000000001
        ],
        "text": "fallback"
      },
      "path": "M226.49399999999997,429.20000000000005 L226.49399999999997,439.20000000000005 L640.5619999999999,439.20000000000005 L640.5619999999999,593.2",
      "badge": [
        505.52799999999996,
        439.20000000000005
      ]
    },
    "bo": {
      "from": "B",
      "to": "overrides",
      "label": {
        "at": [
          27.999999999999993,
          327.1
        ],
        "text": "stores changes"
      },
      "path": "M118.49399999999997,76 L118.49399999999999,593.2",
      "badge": [
        118.49399999999999,
        350.76250000000005
      ]
    },
    "cn": {
      "from": "continue",
      "to": "network",
      "label": {
        "at": [
          327.99399999999997,
          615.4000000000001
        ],
        "text": "continue"
      },
      "path": "M324.99399999999997,529.2 L324.99399999999997,693.2",
      "badge": [
        324.99399999999997,
        590.7
      ]
    },
    "cr": {
      "from": "C",
      "to": "response",
      "label": {
        "at": [
          594.3149999999999,
          715.4000000000001
        ],
        "text": "fulfill"
      },
      "path": "M640.5619999999999,629.2 L640.5619999999999,793.2",
      "badge": [
        640.5619999999999,
        690.7
      ]
    },
    "df": {
      "from": "D",
      "to": "failed",
      "label": {
        "at": [
          200.49399999999997,
          515.4000000000001
        ],
        "text": "abort"
      },
      "path": "M197.49399999999997,429.20000000000005 L197.49399999999997,693.2",
      "badge": [
        197.49399999999997,
        561.2
      ]
    }
  },
  "scenarios": [
    {
      "id": "how",
      "label": "How handlers answer",
      "display": {
        "counterLabel": false,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "page-handlers-get-the-first-turn",
          "title": "Page handlers get the first turn",
          "text": "Page handlers run in reverse registration order. Playwright copies their list before walking it.",
          "show": [
            "B",
            "A"
          ],
          "current": [
            "B"
          ],
          "edges": [],
          "defs": [
            "page"
          ],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "unhandled-page-requests-enter-th",
          "title": "Unhandled page requests enter the context list",
          "text": "Context handlers also run newest first from a copied list.",
          "show": [
            "D",
            "C"
          ],
          "current": [
            "D"
          ],
          "edges": [],
          "defs": [
            "context"
          ],
          "sources": [
            {
              "label": "browserContext.ts:390-393",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L390-L393"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "fallback-keeps-the-mock-reachabl",
          "title": "Fallback keeps the mock reachable",
          "text": "fallback() stores changes and lets the next matching handler run.",
          "show": [],
          "current": [
            "C"
          ],
          "edges": [
            "ba",
            "ad",
            "dc"
          ],
          "defs": [
            "fallback"
          ],
          "code": "test",
          "sources": [
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "overrides-stay-on-this-request",
          "title": "Overrides stay on this request",
          "text": "Omitted fields keep earlier values; supplied headers replace the stored header object. A changed URL affects later client matching in this version.",
          "show": [
            "overrides"
          ],
          "current": [
            "overrides"
          ],
          "edges": [
            "bo"
          ],
          "defs": [
            "overrides"
          ],
          "code": "fallback",
          "sources": [
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:292-305",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L292-L305"
            },
            {
              "label": "network.ts:141-143",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L141-L143"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "continue-ends-the-chain",
          "title": "Continue ends the chain",
          "text": "continue() sends the request onward and ends the user handler chain.",
          "show": [
            "continue",
            "network"
          ],
          "current": [
            "network"
          ],
          "edges": [
            "cn"
          ],
          "defs": [
            "continue"
          ],
          "sources": [
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:443-448",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L443-L448"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "network.ts:461-469",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L461-L469"
            },
            {
              "label": "crNetworkManager.ts:702-712",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L702-L712"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "fulfill-supplies-a-response-abor",
          "title": "Fulfill supplies a response; abort fails the request",
          "text": "Both end the chain. Chromium sends separate browser commands for continue, fulfill and abort.",
          "show": [
            "response",
            "failed"
          ],
          "current": [
            "response",
            "failed"
          ],
          "edges": [
            "cr",
            "df"
          ],
          "defs": [
            "response",
            "failed"
          ],
          "sources": [
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:702-712",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L702-L712"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            },
            {
              "label": "crNetworkManager.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L731-L739"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "worker-ownership-is-a-separate-c",
          "title": "Worker ownership is a separate case",
          "text": "Intercepted worker-owned requests in Chromium go directly to context handlers. Page routes miss requests answered by a worker; the docs recommend serviceWorkers: 'block'.",
          "show": [
            "worker"
          ],
          "current": [
            "worker"
          ],
          "edges": [],
          "defs": [
            "worker"
          ],
          "sources": [
            {
              "label": "crServiceWorker.ts:132-139",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crServiceWorker.ts#L132-L139"
            },
            {
              "label": "class-page.md:3758-3760",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/api/class-page.md#L3758-L3760"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "a-second-decision-throws",
          "title": "A second decision throws",
          "text": "Return after the first decision.",
          "show": [
            "error"
          ],
          "current": [
            "error"
          ],
          "edges": [],
          "defs": [
            "error"
          ],
          "sources": [
            {
              "label": "network.ts:450-458",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L450-L458"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        }
      ]
    },
    {
      "id": "fallback",
      "label": "Fallback",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "Fallback reaches the context mock",
        "text": "Newest page handler first, then newest context handler."
      },
      "steps": [
        {
          "id": "page-b-calls-fallback-page-a-get",
          "title": "Page B calls fallback(). Page A gets the next turn.",
          "text": "Page B calls fallback(). Page A gets the next turn.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "B"
          ],
          "edges": [],
          "defs": [
            "example0_0"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "browserContext.ts:390-393",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L390-L393"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "page-a-calls-fallback-the-contex",
          "title": "Page A calls fallback(). The context handlers get a turn.",
          "text": "Page A calls fallback(). The context handlers get a turn.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "A"
          ],
          "edges": [
            "ba"
          ],
          "defs": [
            "example0_1"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "browserContext.ts:390-393",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L390-L393"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "context-d-calls-fallback-context",
          "title": "Context D calls fallback(). Context C is next.",
          "text": "Context D calls fallback(). Context C is next.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "D"
          ],
          "edges": [
            "ad"
          ],
          "defs": [
            "example0_2"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "browserContext.ts:390-393",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L390-L393"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "context-c-supplies-the-response",
          "title": "Context C supplies the response with fulfill().",
          "text": "Context C supplies the response with fulfill().",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "response"
          ],
          "edges": [
            "dc",
            "cr"
          ],
          "defs": [
            "example0_3"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "browserContext.ts:390-393",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L390-L393"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "B",
          "step": "page-b-calls-fallback-page-a-get",
          "log": []
        },
        {
          "node": "A",
          "step": "page-a-calls-fallback-the-contex",
          "log": [],
          "edge": "ba"
        },
        {
          "node": "D",
          "step": "context-d-calls-fallback-context",
          "log": [],
          "edge": "ad"
        },
        {
          "node": "C",
          "step": "context-c-supplies-the-response",
          "log": [],
          "edge": "dc"
        },
        {
          "node": "response",
          "step": "context-c-supplies-the-response",
          "log": [],
          "edge": "cr"
        }
      ]
    },
    {
      "id": "continue",
      "label": "Continue",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "Continue ends the handler chain",
        "text": "The remaining handlers do not get a turn."
      },
      "steps": [
        {
          "id": "page-b-gets-the-first-turn",
          "title": "Page B gets the first turn.",
          "text": "Page B gets the first turn.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "B"
          ],
          "edges": [],
          "defs": [
            "example1_0"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "network.ts:443-448",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L443-L448"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:702-712",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L702-L712"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "page-b-calls-continue-the-reques",
          "title": "Page B calls continue(). The request goes onward.",
          "text": "Page B calls continue(). The request goes onward.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "network"
          ],
          "edges": [
            "cn"
          ],
          "defs": [
            "example1_1"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "network.ts:443-448",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L443-L448"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:702-712",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L702-L712"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "page-a-and-the-context-mock-are",
          "title": "Page A and the context mock are skipped.",
          "text": "Page A and the context mock are skipped.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "continue"
          ],
          "edges": [],
          "defs": [
            "example1_2"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:573-576",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L573-L576"
            },
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "network.ts:443-448",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L443-L448"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:702-712",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L702-L712"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "B",
          "step": "page-b-gets-the-first-turn",
          "log": []
        },
        {
          "node": "continue",
          "step": "page-b-calls-continue-the-reques",
          "log": []
        },
        {
          "node": "network",
          "step": "page-b-calls-continue-the-reques",
          "log": [],
          "edge": "cn"
        },
        {
          "node": "continue",
          "step": "page-a-and-the-context-mock-are",
          "log": []
        }
      ]
    },
    {
      "id": "url",
      "label": "URL change",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "Fallback changes later URL matching",
        "text": "Example: /api and /other share an origin."
      },
      "steps": [
        {
          "id": "page-b-matches-api-and-calls-fal",
          "title": "Page B matches /api and calls fallback({ url }).",
          "text": "Page B matches /api and calls fallback({ url }).",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "B"
          ],
          "edges": [
            "bo"
          ],
          "defs": [
            "example2_0"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:292-305",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L292-L305"
            },
            {
              "label": "network.ts:141-143",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L141-L143"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L731-L739"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "page-a-matches-other-it-calls-fa",
          "title": "Page A matches /other. It calls fallback() without changes.",
          "text": "Page A matches /other. It calls fallback() without changes.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "A"
          ],
          "edges": [
            "ba"
          ],
          "defs": [
            "example2_1"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:292-305",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L292-L305"
            },
            {
              "label": "network.ts:141-143",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L141-L143"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L731-L739"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "context-d-matches-other-and-call",
          "title": "Context D matches /other and calls abort(). Context C is skipped.",
          "text": "Context D matches /other and calls abort(). Context C is skipped.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "failed",
            "worker"
          ],
          "current": [
            "failed"
          ],
          "edges": [
            "ad",
            "df"
          ],
          "defs": [
            "example2_2"
          ],
          "log": [],
          "sources": [
            {
              "label": "page.ts:212-235",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:292-305",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L292-L305"
            },
            {
              "label": "network.ts:141-143",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L141-L143"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L731-L739"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "overrides",
          "step": "page-b-matches-api-and-calls-fal",
          "log": [],
          "edge": "bo"
        },
        {
          "node": "B",
          "step": "page-b-matches-api-and-calls-fal",
          "log": []
        },
        {
          "node": "A",
          "step": "page-a-matches-other-it-calls-fa",
          "log": [],
          "edge": "ba"
        },
        {
          "node": "D",
          "step": "context-d-matches-other-and-call",
          "log": [],
          "edge": "ad"
        },
        {
          "node": "failed",
          "step": "context-d-matches-other-and-call",
          "log": [],
          "edge": "df",
          "fail": true
        }
      ]
    },
    {
      "id": "worker",
      "label": "Worker",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "An intercepted Chromium worker request",
        "text": "Worker-owned request; separate from a page fetch answered by a worker."
      },
      "steps": [
        {
          "id": "this-request-belongs-to-a-servic",
          "title": "This request belongs to a service worker in Chromium.",
          "text": "This request belongs to a service worker in Chromium.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "worker"
          ],
          "edges": [],
          "defs": [
            "example3_0"
          ],
          "log": [],
          "sources": [
            {
              "label": "crServiceWorker.ts:132-139",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crServiceWorker.ts#L132-L139"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "an-intercepted-worker-owned-requ",
          "title": "An intercepted worker-owned request enters context handlers directly.",
          "text": "An intercepted worker-owned request enters context handlers directly.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "D"
          ],
          "edges": [],
          "defs": [
            "example3_1"
          ],
          "log": [],
          "sources": [
            {
              "label": "crServiceWorker.ts:132-139",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crServiceWorker.ts#L132-L139"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        },
        {
          "id": "context-d-falls-back-context-c-s",
          "title": "Context D falls back. Context C supplies a response.",
          "text": "Context D falls back. Context C supplies a response.",
          "show": [
            "B",
            "A",
            "D",
            "C",
            "overrides",
            "continue",
            "network",
            "response",
            "worker"
          ],
          "current": [
            "response"
          ],
          "edges": [
            "dc",
            "cr"
          ],
          "defs": [
            "example3_2"
          ],
          "log": [],
          "sources": [
            {
              "label": "crServiceWorker.ts:132-139",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crServiceWorker.ts#L132-L139"
            },
            {
              "label": "browserContext.ts:242-266",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L242-L266"
            },
            {
              "label": "network.ts:346-350",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
            },
            {
              "label": "network.ts:375-384",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L375-L384"
            },
            {
              "label": "crNetworkManager.ts:715-727",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "3.2 HAR candidates compete on matching headers",
              "href": "/3-network/3-2-har-as-a-response-source/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "worker",
          "step": "this-request-belongs-to-a-servic",
          "log": []
        },
        {
          "node": "D",
          "step": "an-intercepted-worker-owned-requ",
          "log": []
        },
        {
          "node": "C",
          "step": "context-d-falls-back-context-c-s",
          "log": [],
          "edge": "dc"
        },
        {
          "node": "response",
          "step": "context-d-falls-back-context-c-s",
          "log": [],
          "edge": "cr"
        }
      ]
    }
  ],
  "definitions": {
    "page": {
      "term": "Page handlers",
      "text": "Matching page handlers run before context handlers."
    },
    "context": {
      "term": "Context handlers",
      "text": "Matching context handlers run in reverse registration order."
    },
    "fallback": {
      "term": "fallback()",
      "text": "Stores changes and lets the next matching handler run."
    },
    "overrides": {
      "term": "Request overrides",
      "text": "Omitted fields keep earlier values; supplied headers replace the stored header object."
    },
    "continue": {
      "term": "continue()",
      "text": "Sends the request onward and ends the user handler chain."
    },
    "response": {
      "term": "fulfill()",
      "text": "Supplies a response and ends the chain."
    },
    "failed": {
      "term": "abort()",
      "text": "Fails the request and ends the chain."
    },
    "worker": {
      "term": "Worker-owned request",
      "text": "Intercepted worker-owned requests in Chromium go directly to context handlers."
    },
    "error": {
      "term": "Second decision",
      "text": "A second decision without active handling throws Route is already handled!"
    },
    "example0_0": {
      "term": "Example state",
      "text": "Request: /api · Waiting for a decision"
    },
    "example0_1": {
      "term": "Example state",
      "text": "Request: /api · Waiting for a decision"
    },
    "example0_2": {
      "term": "Example state",
      "text": "Request: /api · Waiting for a decision"
    },
    "example0_3": {
      "term": "Example state",
      "text": "Request: /api · fulfill() → response: mock"
    },
    "example1_0": {
      "term": "Example state",
      "text": "Request: /api · Waiting for a decision"
    },
    "example1_1": {
      "term": "Example state",
      "text": "Request: /api · continue() → network"
    },
    "example1_2": {
      "term": "Example state",
      "text": "Request: /api · continue() → network"
    },
    "example2_0": {
      "term": "Example state",
      "text": "Request: /api · Waiting for a decision"
    },
    "example2_1": {
      "term": "Example state",
      "text": "Request: /other · Waiting for a decision"
    },
    "example2_2": {
      "term": "Example state",
      "text": "Request: /other · abort() → request failed"
    },
    "example3_0": {
      "term": "Example state",
      "text": "Worker request: /api · Waiting for a decision"
    },
    "example3_1": {
      "term": "Example state",
      "text": "Worker request: /api · Waiting for a decision"
    },
    "example3_2": {
      "term": "Example state",
      "text": "Worker request: /api · fulfill() → response: mock"
    }
  },
  "code": {
    "test": {
      "title": "In your test · keep the mock reachable",
      "lines": [
        "await page.route('**/api', async r => {",
        "  await r.fulfill({ body: 'mock' });",
        "});",
        "await page.route('**/api', async r => {",
        "  // ✗ continue() skips the mock above",
        "  // await r.continue();",
        "  // ✓ Let the mock answer",
        "  await r.fallback();",
        "});"
      ]
    },
    "fallback": {
      "title": "Inside Playwright · network.ts",
      "source": {
        "label": "network.ts:346-350",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
      },
      "lines": [
        "async fallback(",
        "  options: FallbackOverrides = {}",
        ") {",
        "  this._checkNotHandled();",
        "  this.request()",
        "    ._applyFallbackOverrides(options);",
        "  this._reportHandled(false);",
        "}"
      ]
    }
  },
  "conceptScenario": "how",
  "concepts": [
    {
      "label": "Node client · handler chain",
      "layer": "client",
      "items": [
        {
          "definition": "page",
          "short": "Page handlers run before context handlers.",
          "nodes": [
            "B",
            "A"
          ],
          "step": {
            "step": "page-handlers-get-the-first-turn"
          },
          "source": {
            "label": "page.ts:212-235",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/page.ts#L212-L235"
          }
        },
        {
          "definition": "context",
          "short": "New context routes go first.",
          "nodes": [
            "D",
            "C"
          ],
          "step": {
            "step": "unhandled-page-requests-enter-th"
          },
          "source": {
            "label": "browserContext.ts:390-393",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/browserContext.ts#L390-L393"
          }
        },
        {
          "definition": "fallback",
          "short": "Stores changes and reports the request unhandled.",
          "nodes": [
            "B"
          ],
          "step": {
            "step": "fallback-keeps-the-mock-reachabl"
          },
          "source": {
            "label": "network.ts:346-350",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L346-L350"
          }
        },
        {
          "definition": "overrides",
          "short": "Supplied headers replace the stored header object.",
          "nodes": [
            "overrides"
          ],
          "step": {
            "step": "overrides-stay-on-this-request"
          },
          "source": {
            "label": "network.ts:292-305",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L292-L305"
          }
        },
        {
          "definition": "continue",
          "short": "Sends a final continuation.",
          "nodes": [
            "continue"
          ],
          "step": {
            "step": "continue-ends-the-chain"
          },
          "source": {
            "label": "network.ts:443-448",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/client/network.ts#L443-L448"
          }
        }
      ]
    },
    {
      "label": "Browser · outcomes and ownership",
      "layer": "browser",
      "items": [
        {
          "definition": "response",
          "short": "Supplies status, headers and body.",
          "nodes": [
            "response"
          ],
          "step": {
            "step": "fulfill-supplies-a-response-abor"
          },
          "source": {
            "label": "crNetworkManager.ts:715-727",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crNetworkManager.ts#L715-L727"
          }
        },
        {
          "definition": "worker",
          "short": "Worker-owned requests enter context interceptors.",
          "nodes": [
            "worker"
          ],
          "step": {
            "step": "worker-ownership-is-a-separate-c"
          },
          "source": {
            "label": "crServiceWorker.ts:132-139",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crServiceWorker.ts#L132-L139"
          }
        }
      ]
    }
  ],
  "callouts": {
    "1": [
      "B",
      "A",
      "D",
      "C"
    ],
    "2": [
      "B",
      "A",
      "D",
      "C"
    ],
    "3": [
      "overrides"
    ],
    "4": [
      "response",
      "failed"
    ]
  },
  "deeper": [
    {
      "title": "0.1 API calls leave from Node, page calls from the browser",
      "href": "/0-anatomy/0-1-anatomy-of-a-test/",
      "why": "Where API calls run."
    },
    {
      "title": "3.2 HAR candidates compete on matching headers",
      "href": "/3-network/3-2-har-as-a-response-source/",
      "why": "HAR as a response source."
    }
  ],
  "viewBox": [
    868.5619999999999,
    857.2
  ],
  "measurement": {
    "name": "font-table",
    "labels": {
      "ba": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "ad": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "dc": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "bo": {
        "width": 88.49399999999999,
        "height": 12.6
      },
      "cn": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "cr": {
        "width": 44.24699999999999,
        "height": 12.6
      },
      "df": {
        "width": 31.604999999999997,
        "height": 12.6
      }
    }
  }
}
