cd /news/developer-tools/a-fake-server-outage-was-chrome-tran… · home › topics › developer-tools › article
[ARTICLE · art-180606] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

A Fake Server Outage Was Chrome Translate: 78 Font Tags Told Us

A developer automating a ProseMirror-style rich text editor with Playwright traced a recurring "server outage" error screen to Chrome's auto-translate feature, which rewrote the editor's text nodes and caused a client-side crash rather than any backend failure. The team identified the cause by hooking page.on('framenavigated') and logging editor presence per step, showing the editor vanished with no navigation, and detected translation via the translated-ltr class, 78 <font> elements and a changed lang attribute. Standard opt-outs failed, and only editing the profile's Preferences file disabled translation.

recommendation

Before automating a rich editor, assert zero <font> elements and no translated-ltr class on the document root, and log editor presence plus framenavigated counts per step to distinguish client crashes from server errors.

more in playbook: Running AI in production
by read6 min views10 publishedDec 2, 2026

While automating a ProseMirror-style rich editor with Playwright, the page kept flipping to a "server outage" message the moment we selected text or typed. The server was fine. Chrome's auto-translate was on, it rewrote the editor's text nodes, and the editor crashed on its own. If you see an error screen with no page navigation, suspect the client, not the backend, and measure before you wait.

This post covers the one-event test that separates the two cases, a three-value check for translation, and the part that surprised us: the usual opt-outs did nothing, and only editing the profile's Preferences file worked. The longer write-up, with the full recovery procedure, is in the original post.

The symptom was oddly specific: reading worked, editing died. We could read all 36 blocks of the document from the DOM. The instant we started a selection or typed, the editor was replaced by an apology screen. Our script logged this:

GATE FAIL: selection is off (selected: '\nSorry, an outage is happening right now.\nRecover')

Our automation profile had a per-site "always translate" setting (translate_allowlists), so Chrome translated the editing page and swapped the text nodes for translated ones. The editor's document model and the real DOM no longer matched. On selection extension or typing, the position mapping threw, and the framework's error boundary replaced the screen with its failure notice.

We read it as rate limiting, which is an easy story to believe. Here is the path we actually took:

Step What we concluded Why it was wrong
Observe Public page returns 200, only editing fails True, but incomplete
Diagnose "We opened 15 edit sessions too fast and got throttled" Based on circumstance only; the server rejected nothing
Treat Cool down and wait A client-side crash does not heal with time
Instrument Add framenavigated , log state per step The conclusion flipped here

Step three was the expensive one. A wrong cause means waiting and retrying, and the wrong cause also gets written into your notes. One instrumented run is cheaper than hours of cooldown.

If the server or a redirect were responsible, the browser would navigate to a new page. A translation-induced crash only swaps the DOM inside the same page, so no navigation fires. Hook page.on('framenavigated') and log, per step, whether the editor element still exists:

page.on('framenavigated', f => {
  if (f === page.mainFrame()) navCount++;
});

async function snap(label) {
  const editor = await page.locator('.ProseMirror').count();
  console.log(label, { editor, navCount });
}

Our run looked like this:

Step Editor present Navigation
After load yes 3 at first load
Click in body yes none
Mouse down yes none
Right after drag release no none

The last row is the verdict. The editor vanished with no navigation, which no server response can explain.

Chrome wraps translated text in <font> tags and adds a translated-ltr class to the document root. One evaluation covers it:

({
  cls:  document.documentElement.className,        // contains translated-ltr when translated
  font: document.querySelectorAll('font').length,  // > 0 when translated
  lang: document.documentElement.lang              // differs from the source language when translated
})

With translation on, we got the translated-ltr class, 78 <font> elements and lang=ko. After turning it off, 0 <font> elements and lang=ja. Make this the gate at the start of your automation: if the font count is not 0, do not touch the rich editor on that page. Stopping before the crash beats tracing it afterward.

We tried the standard fixes first. A per-site "always translate" entry stored in the profile beat all of them:

Attempt Result
Inject <meta name="google" content="notranslate"> before the document starts Failed: translated-ltr still set, 78<font> elements
Launch flag --disable-features=Translate,TranslateUI Failed: same result
Edit the profile Preferences while Chrome is closed Worked: 0 <font> elements,lang=ja

Our script does four things to Preferences:

sites = {"note.com": "0", "editor.note.com": "0"}
for scope in (d, d.get("account_values", {})):
    if "translate_allowlists" in scope:
        scope["translate_allowlists"] = {}          # clear "always translate"
    bl = scope.get("translate_blocked_languages")
    if isinstance(bl, list) and "ja" not in bl:
        bl.append("ja")                             # never translate this language
    if "translate_site_blocklist_with_time" in scope:
        scope["translate_site_blocklist_with_time"].update(sites)
d.setdefault("translate", {})["enabled"] = False
d.setdefault("account_values", {}).setdefault("translate", {})["enabled"] = False

Swap ja and the site names for your own source language and domains. The setting also exists under account_values, so patch both places. Do this only with Chrome fully closed. Our script checks /json/version first and aborts with GATE FAIL if Chrome is running, because on exit Chrome overwrites the file with its in-memory settings. Back the original up first; we use Preferences.bak_notranslate.

Browser.close. Killing by process name also kills unrelated work.--user-data-dir, window placed off-screen (--window-position=-2400,0) so it does not take over your display.<font> elements and the original lang. For selection we stopped dragging. We now focus with a real click in the body, place the caret with the Selection API, and extend with Shift plus arrow keys. No coordinates are involved, so phrases spanning two lines select correctly.

The side finding: the real click is required. With only the Selection API moving the caret, Enter and typing did nothing at all (still 36 blocks, 0 anchors inserted). After the change, all 6 previously failing edits went through, and a logged-out check returned HTTP 200 for all 6 pages with exactly one target link each.

This fix only helps if translation is the cause. If the gate shows 0 <font> elements and no translated-ltr and you still crash, look at other DOM mutators: extensions, ad blockers, accessibility tools. If framenavigated did fire, it is not a client crash, so check response codes first. If translation returns after the patch, Chrome was probably running while you edited the file, so close it and redo it, including account_values.

The key names such as translate_allowlists are what we saw in our environment. Other Chrome versions or operating systems may structure Preferences differently. The mechanism, translation replacing text nodes, applies to rich editors broadly, but which operations crash differs by implementation; we confirmed selection extension and typing only.

If you want the full walkthrough, including the failure table and FAQ, it is in our original post on the Chrome auto-translate editor crash. The same symptom-versus-cause pattern shows up in a connect_over_cdp hang caused by a single tab.

Free tools I keep on my own site: 34 calculators and how-to guides - loans, severance pay, take-home salary, savings vs deposits. New ones go out in one email, no ads.

── more in #developer-tools 4 stories · sorted by recency
── more on @chrome 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/a-fake-server-outage…] indexed:0 read:6min 2026-12-02 · —