[Bug]: Click and DOM interaction broken after initial use due to "Passed function cannot be serialized" errors

Author: UM7labCreated Nov 3, 2025Updated Sep 22, 2026
Labelsbug

Nanobrowser Version

0.1.12

Bug Description

After initially installing and using Nanobrowser, all webpage interactions (clicking, extracting elements) work as expected. However, after one day or after Chrome restarts, all clicks fail with errors such as:

Click on first paper to view details
Element no longer available with index XX - most likely the page changed

Additionally, the background logs show repeated errors:

Error: Passed function cannot be serialized!

Even static pages cannot be clicked. Attempts to restart Chrome or reinstall the extension do not resolve the issue. Attempts to unregister or reset the service worker manually result in:

AbortError: Failed to unregister a ServiceWorkerRegistration: Worker disallowed

It seems that Chrome MV3 service worker security restrictions prevent the extension from executing Puppeteer evaluate functions and interacting with DOM elements after some time.

Steps to Reproduce

Install Nanobrowser extension in Chrome (tested on latest stable version).

Open any website and perform click or DOM interactions — they work initially.

Close Chrome or wait for a day.

Reopen Chrome and try the same interactions — all clicks fail.

Check console logs in the background script — see repeated "Passed function cannot be serialized!" errors.

Optional: Attempt chrome.storage.local.clear() or self.registration.unregister() in console — results in "Worker disallowed" AbortError.

LLM Service Provider

Other (please specify in description)

Models Used

LLM Service Provider: Alibabacloud Planner: qwen-plus-latest Navigator: qwen-plus-latest

Screenshots

Image