Skip to content

refactor(nsgotest): own web view configuration snapshots - #1811

Merged
houko merged 2 commits into
mainfrom
refactor/nsgotest-web-config-181
Nov 23, 2026
Merged

houko merged 2 commits into
mainfrom
refactor/nsgotest-web-config-181

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Give nsgotest.View.Web an owned WebConfig snapshot of the source, loading settings and permissions. The model copies request headers and scheme handlers into the record. The record keeps the existing navigation and new-window policy methods.

Remove driver.WebConfig from the public driver allowlist. Add the existing app-facing ImageSampling value, which the guard already reaches through DrawOp.Sampling on main.

Part of #181. Other view records remain tracked there.

Verification

  • All 159 enabled nsgotest tests and the skill check passed locally.
  • The new test checks map isolation, page and app navigation and new-window reports.
  • Local API and TSX verification hit storage limits. CI runs the package suites and cross-target checks.
  • git diff --check passed.
  • Cross-target Build and vet passed.
  • The Linux Test job passed the public API guard, the new snapshot test, the skill check and the WebView and sandbox callers. Other failures in that job were TestMinimalAppLinks and TestVideoChangesPlaybackRateWithoutReloading.

@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. The snapshot copies every field of driver.WebConfig on main and clones both maps. The navigation helpers rebuild only the policy fields they need. The ImageSampling allowlist line matches #1874, so it should rebase cleanly.

@houko
houko enabled auto-merge (rebase) November 22, 2026 04:18
@houko
houko force-pushed the refactor/nsgotest-web-config-181 branch 3 times, most recently from b9cb9cc to 760f45d Compare November 22, 2026 09:39
@houko
houko added this pull request to the merge queue Nov 22, 2026
@houko
houko force-pushed the refactor/nsgotest-web-config-181 branch from 760f45d to 1d3f8cc Compare November 23, 2026 00:36
@houko
houko merged commit 00667b0 into main Nov 23, 2026
18 of 19 checks passed
@houko
houko deleted the refactor/nsgotest-web-config-181 branch November 23, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

base documentation Improvements or additions to documentation size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant