Skip to content

[macOS][Codex Desktop][In-app Browser] Browser Use leaves blob: iframes empty after navigation or reload #42699

Open

Description

@galatanovidiu

What version of the Codex App are you using (From “About Codex” dialog)?

26.901.22334 (build 7746)

What subscription do you have?

Pro plan

What platform is your computer?

Darwin 25.6.0 arm64 arm

What issue are you seeing?

When Browser Use controls a navigation or reload in the Codex built-in browser, an iframe whose src is a browser-generated blob: URL can remain on its initial empty about:blank document.

The parent page loads correctly and its JavaScript continues running. The iframe element receives a valid blob:http://... source, but the generated document never becomes available inside it.

The failed iframe consistently has:

  • HTML length: 39 bytes
  • Body children: 0
  • Stylesheets: 0
  • Content: <html><head></head><body></body></html>
  • Document URL: about:blank
  • The iframe src attribute still contains the expected blob:http://... URL

The behavior depends on how navigation happens:

  • Opening the page manually before Browser Use attaches allows the blob iframe to load.
  • Direct navigation performed by Browser Use leaves the blob iframe empty.
  • Reloading a healthy page through Browser Use leaves the new blob iframe empty.
  • Playwright controlling the same installed system Chrome loads blob iframes correctly after direct navigation and reload.

A srcdoc iframe on the same minimal test page renders correctly during Browser Use navigation. The equivalent blob: iframe remains empty.

This suggests the problem is in the Codex Browser Use iframe navigation or instrumentation lifecycle. It does not appear to be a general Chrome or Playwright problem.

What steps can reproduce the bug?

  1. Save the following as index.html:
<!doctype html>
<html>
	<body>
		<h1>Iframe test</h1>

		<h2>srcdoc</h2>
		<iframe id="srcdoc-frame"></iframe>

		<h2>blob</h2>
		<iframe id="blob-frame"></iframe>

		<script>
			const html = `<!doctype html>
				<html>
					<head>
						<style>
							body {
								color: green;
							}
						</style>
					</head>
					<body>
						<p>Iframe loaded</p>
					</body>
				</html>`;

			document.querySelector('#srcdoc-frame').srcdoc = html;

			document.querySelector('#blob-frame').src = URL.createObjectURL(
				new Blob([html], { type: 'text/html' })
			);
		</script>
	</body>
</html>
  1. Serve the file over local HTTP:
python3 -m http.server 9421 --bind 127.0.0.1
  1. Ask Browser Use to navigate a Codex built-in browser tab to http://127.0.0.1:9421/.
  2. Observe that the srcdoc iframe renders Iframe loaded.
  3. Observe that the blob iframe remains empty.
  4. Inspect both frames from the parent page:
[...document.querySelectorAll('iframe')].map((iframe) => {
	const document = iframe.contentDocument;

	return {
		id: iframe.id,
		src: iframe.src,
		documentUrl: document?.location.href,
		htmlLength: document?.documentElement?.outerHTML.length,
		bodyChildren: document?.body?.children.length,
		stylesheets: document?.styleSheets.length,
	};
});
  1. Observe that the blob iframe has a blob:http://... source while its document remains the empty 39-byte about:blank document.
  2. Reload the page through Browser Use and observe the same result.

What is the expected behavior?

Browser Use navigation and reload should not change iframe loading behavior. A same-origin blob: iframe should load its generated document and fire the normal lifecycle events, as it does in Chrome without Browser Use instrumentation.

Additional information

This was originally discovered in the WordPress Gutenberg editor. Gutenberg uses a generated blob: iframe for the editor canvas. When the failure occurs, the wp-admin shell loads but the complete visual editor remains blank.

The WordPress reproduction was confirmed on WordPress 7.1:

  • Manual opening: 160,527-byte iframe, 21 body children, 60 stylesheets
  • Browser Use navigation: 39-byte iframe, zero body children, zero stylesheets
  • Browser Use reload: 39-byte iframe, zero body children, zero stylesheets
  • Playwright with system Chrome, direct navigation: 160,538-byte iframe, 21 body children, 60 stylesheets
  • Playwright with system Chrome, reload: 160,538-byte iframe, 21 body children, 60 stylesheets
  • The failure reproduces with every WordPress plugin disabled

Gutenberg issue:

Related Codex issues:

Activity

  1. added
    bug
    app
    on Sep 4, 2026
  2. XiaoYangyangs commented on Sep 12, 2026

    @XiaoYangyangs

    Confirmed on Windows with Codex Desktop 26.908.4834.0 and WordPress 7.1. This affects the Gutenberg product editor in a private localhost WordPress preview.

    Observed behavior:

    The desktop application log provides a direct failure signal (local paths and blob UUIDs omitted):

    warning [browser-sidebar-manager] blocked browser-use navigation
    errorMessage="Blocked browser navigation by Browser Use URL policy: blob:http://127.0.0.1:18088/<uuid>"
    errorName=Error
    

    This warning was recorded for the editor canvas both before and after reload. The stack includes getRestrictionError, isRestrictedForPageEntry, isRestrictedForWebContentsId, and isRestrictedBrowserNavigation.

    This appears to extend the reported issue to Windows and provides evidence that Browser Use URL policy is rejecting the generated canvas navigation. We did not modify the policy, disable protections, or change WordPress to bypass the restriction.

    Expected: legitimate same-origin editor canvas behavior should be supported under the intended Browser Use security model, or an actionable message should explain the unsupported canvas instead of leaving the editor silently blank.

  3. willmot commented on Oct 27, 2026

    @willmot

    Reproduced on 27 October 2026 in the Codex in-app browser with a local WordPress Gutenberg editor. This appears to match this issue; the additional observation is an aborted Document navigation in the browser trace.

    Environment

    • Desktop app bundle: 26.1021.31345, build 21828 (com.openai.codex; read from installed bundle metadata).
    • macOS 27.2, Apple Silicon (arm64).
    • WordPress 7.1.3, served over local HTTP.
    • Native Google Chrome comparison: installed version 156.0.8078.48.
    • Subscription was not recorded for this report.

    Reproduction and actual behavior

    1. Open an authenticated local WordPress Page in the in-app browser's Gutenberg editor.
    2. Reload the tab using the supported Browser Use reload operation.
    3. The wp-admin shell and editor controls load, and the WordPress editor store contains the existing blocks, but the visual canvas remains blank.
    4. The iframe[name="editor-canvas"] has a generated blob:http://localhost:<port>/<uuid> source. Its document remains about:blank with an empty head and body.

    The retained CDP events show the following sequence for two generated canvas URLs:

    Page.frameStartedNavigating
      navigationType: differentDocument
      url: blob:http://localhost:<port>/<uuid>
    Network.loadingFailed
      type: Document
      errorText: net::ERR_ABORTED
      canceled: true
    Page.frameStoppedLoading
    

    Reloading again, opening a fresh in-app tab, and switching Code editor → Visual editor did not restore the native blob canvas. Fetching the generated blob URL from its parent page returned the expected HTML successfully.

    Comparison and evidence limits

    The same authenticated editor rendered normally in native Chrome, including after a refresh. Its canvas retained a blob: document URL and displayed the existing content.

    As a diagnostic, loading the exact Core-generated document via srcdoc restored the in-app canvas: 60 block elements rendered and WordPress reported isEditedPostDirty() === false. A temporary theme fallback was subsequently removed; no application workaround is being retained and no Page was saved or published.

    These observations point to the in-app browser's blob navigation path, but ERR_ABORTED alone does not establish which internal policy or lifecycle handler cancels it. This was an application reproduction, not a fresh run of the standalone minimal example in the issue description.

    Expected behavior

    Browser Use refresh should preserve normal loading of the legitimate same-origin editor canvas. If that canvas is unsupported under the browser's security model, please surface an actionable diagnostic rather than leaving it silently blank.

    Private site content, screenshots, credentials, session identifiers and full navigation logs are intentionally omitted.

    - Written by Codex gpt-6.1-sol medium

  4. willmot commented on Oct 28, 2026

    @willmot

    Follow-up to my 27 October report: reproduced again on 28 October with desktop app 26.1023.50603, build 22391 (macOS). This run includes a standalone srcdoc/blob: comparison, independently of WordPress.

    Additional diagnosis

    Fresh application logs explicitly identify the cancellation:

    [browser-sidebar-manager] blocked browser-use navigation
    Blocked browser navigation by Browser Use URL policy: blob:http://127.0.0.1:<port>/<uuid>
    

    Inspection of the shipped JavaScript narrows the path to isRestrictedForPageEntry → getRestrictionError: the ordinary URL validator accepts HTTP, HTTPS and about:blank; the subframe exception additionally accepts data: and about:srcdoc, but omits blob:. With the Browser Use navigation restriction active, the generated blob subframe reaches that restriction and is rejected. This corroborates the Windows policy-log observation above.

    Standalone verification

    Operation Result
    Browser Use initial navigation srcdoc renders; blob frame stays empty
    Normal desktop opening before Browser Use attaches Both render and remain populated after attachment
    Browser Use CDP Page.reload of that healthy tab Blob frame becomes empty again
    Native Chrome 156.0.8078.48, initial navigation and reload Both render

    The blocked blob still fetches successfully from its parent (200), while its iframe remains the 39-byte about:blank document with zero body children/stylesheets. CDP records the blob document navigation followed by net::ERR_ABORTED, canceled: true. Screenshots agree with the frame state.

    The normal-open success in this run was verified on the standalone case only. No application/security settings or WordPress code were changed, and no fix was implemented.

    A useful regression test is normal opening → attach Browser Use → reload, alongside direct Browser Use navigation. The expected fix is legitimate blob-backed subframes working within the intended origin/permission model while retaining top-level navigation restrictions.

    - Written by Codex gpt-6.1-sol high

  5. sean-cortical commented on Nov 11, 2026

    @sean-cortical

    Additional Linux confirmation from 11 November 2026.

    The existing report and comments cover macOS and Windows. This reproduction was observed in the desktop in-app browser on Ubuntu.

    Environment:

    • Ubuntu 24.04.5 LTS, x86_64.
    • Kernel/platform from uname -mprs: Linux 6.17.0-1033-oem x86_64 x86_64.
    • The desktop app update tool reports installed version 26.1103.60933, build 25894, production distribution. The package manager independently reports chatgpt 26.1103.60933. This is not a claim that the installed version is the latest available release.
    • Browser interaction used the supported CUA in-app browser APIs.

    A standalone local HTML page served over loopback compares three iframe documents. Each child contains placeholder text and a script that sends a ready message to the parent.

    Frame method Observed result
    Same-origin HTTP URL Content renders, load event fires, child ready message received
    Inline srcdoc Content renders, load event fires, child ready message received
    URL.createObjectURL(new Blob([html], {type: "text/html"})) Frame stays at about:blank, body has zero children and empty HTML, no blob-frame load/error event or child ready message appears in the parent's event log

    The iframe's DOM src retains its generated blob:http://127.0.0.1:<port>/<uuid> URL while the child document remains about:blank. A screenshot agrees with these observations.

    This also affects a Windmill raw app that embeds its UI using a generated blob URL. Its outer page loads, but the app frame remains empty before the dashboard JavaScript runs. The user reports that the same dashboard works in Firefox; the standalone fixture was not independently tested in Firefox.

    The standalone case requires no authentication, remote resources, Windmill code, or provider API calls. This run adds Linux/platform-version evidence. We did not collect a CDP cancellation trace or application policy logs, so it does not independently establish which internal handler rejects the navigation.

    No private dashboard URLs, account information, credentials, session transcripts, or customer data are included.

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

    appbrowserbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions