Skip to content

An HTML-artifact frame can send data out through DNS prefetch: switch Blink's DNS prefetching off #662

Closed

Description

@SSFSKIM

Problem & intent

A page in an HTML-artifact frame can send data out of the machine through DNS: a <link rel="dns-prefetch" href="//<name>"> that the page's script (or markup) attaches makes Chromium resolve a name the page chooses. The frame's policy, its sandbox, main's request filter and the store-frame policies do not govern it. Measured by the viewer-frame spike on Electron 44.4.5 / Chromium 152 (spikes/viewer-frame/FINDINGS.md on branch ux-wave/spike-viewer-frame, section "2026-11-14 follow-up: the DNS-prefetch channel"): a 50-byte text arrived whole in one name; 5000 names left in 13 s.

The fix, measured in the same spike to close the channel for that frame, for a sandboxed viewer frame and for a separate view: Blink's setting, set by main before ready: app.commandLine.appendSwitch('blink-settings', 'dnsPrefetchingEnabled=false').

In

  • The switch, before ready, in main's start.
  • A unit guard: the switch is appended before ready, and no later blink-settings value replaces it.
  • An e2e scene on a Mac lane, with no privileges: Chromium's net log shows no resolver job for a name an HTML artifact's script put in a prefetch link, with a positive control in the same log (a name the test resolves on purpose). Run once without the switch; that red run is quoted in the pull request.
  • The spike's tracker row (2026-11-14) cites this landing as its fix.

Not in

Filters of a viewer's markup; the Office preview; the WebRTC row (2026-10-06, E2).

Cost

No page in the app gets DNS-prefetch hints (the in-app browser included); name resolution is untouched. The X-DNS-Prefetch-Control header or meta does not govern an explicit link on Chromium 152.

Review and gates

doperpowers:reviewer-medium; class 1a; e2e:deliverables on the hosted macOS lane.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P1
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 14, 2026
  2. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Built from the ux-wave session today, ahead of U11g, by the architect's ruling; reviewer-medium, class 1a, e2e:deliverables on the hosted macOS lane.

  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 15, 2026
  4. SSFSKIM commented on Nov 15, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR 669: class 1a + e2e:deliverables (hosted and the mini copy) green on the merged head, unit:darwin green, the red variant failed as intended on a hosted Mac

  5. removed
    status:in-review
    on Nov 15, 2026
  6. SSFSKIM commented on Nov 15, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed by PR #669, merge 2c70442 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions