You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_render_read_state and test_render_sample_visibility: api/state returns a BOM document since #6799 named the thread in the URL #7018
Five journeys have failed since #6799 started naming the thread an entry shows in its URL. They fail with json.decoder.JSONDecodeError: Unexpected UTF-8 BOM in _read_by_the_sample (tests/journeys/test_render_read_state.py, line 245), which reads page.request.get(f"{child.url}api/state").json(). git bisect run over aa34b6b22..e7d5808f3 on test_clipped_sample_cannot_acknowledge_child_viewport names ba22bcc83 (#6799). All five fail on Linux at current main (c076ce9c9). They failed on Linux test in scheduled run 45378690705, and journeys/ doesn't run on pull requests.
A guess I haven't checked: since #6799, the child frame's URL carries the thread, so appending api/state to it no longer addresses the server's API. The request then returns a document, not JSON.
The guess was right, and #7023 fixes it. Since #6799, child.url ends in ?thread=<id>, so f"{child.url}api/state" requested the page document. _read_by_the_sample now resolves api/state against the frame's document.baseURI. All five listed journeys fail on main with the BOM error and pass with the change, run locally. PR CI doesn't run journeys/. Landing is with tend-land.
Activity
leaf-agent commentedon Nov 24, 2026
The guess was right, and #7023 fixes it. Since #6799,
child.urlends in?thread=<id>, sof"{child.url}api/state"requested the page document._read_by_the_samplenow resolvesapi/stateagainst the frame'sdocument.baseURI. All five listed journeys fail onmainwith the BOM error and pass with the change, run locally. PR CI doesn't runjourneys/. Landing is with tend-land.