[GH-ISSUE #6677] [Issue]: Expression sprite e2e fails on mobile-webkit (visual-novel) with access-control console errors #3738

Closed
opened 2026-10-21 06:06:43 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6677

Originally assigned to: @kolacheee on GitHub.

Summary

The e2e spec e2e/expression-active-sprites.e2e.ts:11 ("Expression sprite filtering waits for completed results (visual-novel)") fails on mobile-webkit. Its final expect(errors).toEqual([]) (line 328) collects WebKit console errors of the form "Fetch API cannot load … due to access control checks" for app endpoints the page was still fetching when the spec reloaded it.

This is the same WebKit behaviour #6628 reported for the roleplay whisper spec (fixed by https://github.com/Pasta-Devs/Marinara-Engine/pull/6644, which removed a duplicate reload). This spec reloads several times with requests in flight.

Expected behavior

The spec passes on mobile-webkit, as it does on the other projects and in its classic presentation.

Actual behavior

On mobile-webkit, visual-novel variant only, errors holds WebKit's "… due to access control checks" messages for /api/chats, /api/chats/<id>/message-count, /api/chats/<id>/messages?limit=20, /api/chats/<id>/game-state and /api/generate/status/<id>. WebKit reports a fetch that is cut off mid-flight this way, which is what a reload() does to requests still running. So either the spec should wait for the page to settle before each reload, or its console-error collector should ignore aborted fetches on WebKit.

Steps to reproduce

  1. On current staging, run the Playwright spec e2e/expression-active-sprites.e2e.ts under the mobile-webkit project.
  2. Watch the visual-novel variant.
  3. It fails at line 328, expect(errors).toEqual([]). It does not fail every time.

Environment

  • Marinara Engine version: staging 7c03e045e (2.4.6 line)
  • Install type: CI (Release Regression Matrix)
  • OS + version: GitHub-hosted Ubuntu runner
  • Browser or app shell: Playwright mobile-webkit

Logs, screenshots, or video

  • PR 6669, run 36165569763 attempt 1, job "mobile-webkit 7/10": failed with the error list above (/generate/status, /messages, /game-state).
  • PR 6669, run 36171804330, job "mobile-webkit 7/10" (108193509755): failed again, same kind of list (/api/chats, /message-count, /generate/status, /messages).

Additional context

Reported from another PR's CI rather than worked on there. That PR (Game Mode ruleset checks) does not touch expression sprites, chat loading or the visual-novel display.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6677 Originally assigned to: @kolacheee on GitHub. ## Summary The e2e spec `e2e/expression-active-sprites.e2e.ts:11` ("Expression sprite filtering waits for completed results (visual-novel)") fails on mobile-webkit. Its final `expect(errors).toEqual([])` (line 328) collects WebKit console errors of the form "Fetch API cannot load … due to access control checks" for app endpoints the page was still fetching when the spec reloaded it. This is the same WebKit behaviour #6628 reported for the roleplay whisper spec (fixed by https://github.com/Pasta-Devs/Marinara-Engine/pull/6644, which removed a duplicate reload). This spec reloads several times with requests in flight. ## Expected behavior The spec passes on mobile-webkit, as it does on the other projects and in its classic presentation. ## Actual behavior On mobile-webkit, visual-novel variant only, `errors` holds WebKit's "… due to access control checks" messages for `/api/chats`, `/api/chats/<id>/message-count`, `/api/chats/<id>/messages?limit=20`, `/api/chats/<id>/game-state` and `/api/generate/status/<id>`. WebKit reports a fetch that is cut off mid-flight this way, which is what a `reload()` does to requests still running. So either the spec should wait for the page to settle before each reload, or its console-error collector should ignore aborted fetches on WebKit. ## Steps to reproduce 1. On current `staging`, run the Playwright spec `e2e/expression-active-sprites.e2e.ts` under the `mobile-webkit` project. 2. Watch the visual-novel variant. 3. It fails at line 328, `expect(errors).toEqual([])`. It does not fail every time. ## Environment - Marinara Engine version: staging 7c03e045e (2.4.6 line) - Install type: CI (Release Regression Matrix) - OS + version: GitHub-hosted Ubuntu runner - Browser or app shell: Playwright mobile-webkit ## Logs, screenshots, or video - PR 6669, run 36165569763 attempt 1, job "mobile-webkit 7/10": failed with the error list above (`/generate/status`, `/messages`, `/game-state`). - PR 6669, run 36171804330, job "mobile-webkit 7/10" (108193509755): failed again, same kind of list (`/api/chats`, `/message-count`, `/generate/status`, `/messages`). ## Additional context Reported from another PR's CI rather than worked on there. That PR (Game Mode ruleset checks) does not touch expression sprites, chat loading or the visual-novel display. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:06:43 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3738
No description provided.