Summary
After Network.emulateNetworkConditions with offline: true, the affected target becomes unresponsive: Page.navigate gets no response, no load events fire, and Runtime.evaluate returns an empty result object. The CDP connection itself stays alive (commands to the browser endpoint and session-level Runtime.evaluate before navigation work; after restoring offline: false the target does not recover).
Environment
- moli 1.0.6, also verified on local build a1385e0 (main, 2026-08-30)
- Chromium baseline: chrome-headless-shell 131.0.6778.204, same CDP script
Reproduction (CDP)
- Create + attach target,
Page.enable, Runtime.enable, Network.enable
Network.emulateNetworkConditions {"offline":true,"latency":0,"downloadThroughput":-1,"uploadThroughput":-1} → accepted
Page.navigate {"url":"http://127.0.0.1:8765/page.html"}
Observed (moli)
Page.navigate → no result (response object empty)
- No
Page.frameStartedLoading / loadEventFired events during a 3s window
Runtime.evaluate "1+1" → empty result object ({})
- The browser-level WS connection remains responsive (e.g.
Target.getTargets works), but the target is effectively dead; restoring offline:false does not revive the already-navigated target
Expected (Chromium 131)
- Navigation proceeds under the emulated condition (Chrome doesn't hard-block loopback navigations;
navigator.onLine stays true — a known Chrome quirk — but the page loads and evaluates normally)
Impact
Offline/weak-network testing — a standard agent-scenario simulation — hangs the target. Any harness that toggles offline mode then navigates will deadlock.
Verified on a1385e0: nav_resp=False, eval=None — unchanged.
Summary
After
Network.emulateNetworkConditionswithoffline: true, the affected target becomes unresponsive:Page.navigategets no response, no load events fire, andRuntime.evaluatereturns an empty result object. The CDP connection itself stays alive (commands to the browser endpoint and session-levelRuntime.evaluatebefore navigation work; after restoringoffline: falsethe target does not recover).Environment
Reproduction (CDP)
Page.enable,Runtime.enable,Network.enableNetwork.emulateNetworkConditions {"offline":true,"latency":0,"downloadThroughput":-1,"uploadThroughput":-1}→ acceptedPage.navigate {"url":"http://127.0.0.1:8765/page.html"}Observed (moli)
Page.navigate→ no result (response object empty)Page.frameStartedLoading/loadEventFiredevents during a 3s windowRuntime.evaluate "1+1"→ empty result object ({})Target.getTargetsworks), but the target is effectively dead; restoringoffline:falsedoes not revive the already-navigated targetExpected (Chromium 131)
navigator.onLinestaystrue— a known Chrome quirk — but the page loads and evaluates normally)Impact
Offline/weak-network testing — a standard agent-scenario simulation — hangs the target. Any harness that toggles offline mode then navigates will deadlock.
Verified on a1385e0:
nav_resp=False, eval=None— unchanged.