xcv58 / Tab-Manager-v2

Quickly and conveniently manage your open tabs https://tab-manager.vercel.app
https://xcv58.xyz/tabs
MIT License
178 stars 18 forks source link

DataCloneError: Proxy object could not be cloned. #2470

Open noscripter opened 9 months ago

noscripter commented 9 months ago

Describe the bug

Uncaught runtime errors:
ERROR
DataCloneError: Proxy object could not be cloned.

To Reproduce Steps to reproduce the behavior:

  1. Click on the toolbar icon to open the popup;
  2. Click on close icon to close a certain tab;
  3. The above error occurs.

Expected behavior

Close tab successfully and no error was thrown.

Screenshots

image

Desktop (please complete the following information):

Additional context

I'm using the source code, and run pnpm start in debugging mode.

In the debug inspect console, I can see the error and its stack trace as below.

image

Expand the stack trace can see the following image:

image

Click on it can see the source code:

image

I believe it has something to do with firefox itself since the error source is in firefox. But I'm wondering if we could do anything to avoid this.

xcv58 commented 9 months ago

Hi @noscripter,

Thanks for reporting this. I have two questions:

  1. Does this affect the feature if you install it from in Firefox store https://addons.mozilla.org/en-US/firefox/addon/tab-manager-v2/ ?
  2. Can you please share your firefox version since I cannot reproduce?
xcv58 commented 9 months ago

I can reproduce now, the problem happens only in dev model (start command) but not build. I guess it might be related to dev utility like StrictMode.