Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] About tampermonkey beta runtime error #2152

Closed
waahah opened this issue Aug 9, 2024 · 7 comments
Closed

[ERROR] About tampermonkey beta runtime error #2152

waahah opened this issue Aug 9, 2024 · 7 comments

Comments

@waahah
Copy link

waahah commented Aug 9, 2024

An error occurred in installation script:

Unchecked runtime.lastError: The page keeping the extension port is moved into back/forward cache, so the message channel is closed.

This error occurs every time a script is installed, and sometimes another error occurs:

Uncaught (in promise) Error: No tab with id: 693405998.

For example: #2138

Suggest

Disable bfcache and roll back the Enhanced back/forward cache navigation handling function

Because the browser suspends any pending timer or unresolved promise for the page in bfcache (including almost all pending tasks in the JavaScript task queue) and continues processing tasks after the page recovers from bfcache. This may affect other open tabs in the same source. As a result, browsers typically do not try to cache pages when using apis that might affect other pages during messaging processing.

Specifications

  • Google Chrome: 126.0.6478.127 (Official Version) (64-bit)
  • TM: Tampermonkey BETA 5.3.6206
  • OS: Window 10
@derjanb
Copy link
Member

derjanb commented Aug 11, 2024

What is the bug besides these console logs? Tampermonkey should detect if a page is moved in bfcache and restore communication when it is moved out of it.

@waahah
Copy link
Author

waahah commented Aug 11, 2024

In addition to the above error, no other error has been found,but I think the above problem is a universal one
屏幕截图 2024-08-09 234923

@derjanb
Copy link
Member

derjanb commented Aug 12, 2024

Unchecked runtime.lastError: The page keeping the extension port is moved into back/forward cache

Where exactly do you see this message? In the console of the script installation page? Can you maybe post a screenshot?
Do you need to do special things to make it appear?

@waahah
Copy link
Author

waahah commented Aug 12, 2024

From greasyfork when I click on the install script button, link to jump to https://www.tampermonkey.net/script_installation.php#url=, Service Worker will be output in the above error

屏幕截图 2024-08-12 160103

@carcigenicate
Copy link

carcigenicate commented Aug 12, 2024

I suddenly started getting this error as well:

image

I'm not sure what the trigger was since I noticed it after doing a bunch of stuff. It doesn't reliably trigger if I do forward/back navigation though. I also didn't noticed any erroneous behavior.

  • Tampermonkey version 5.1.1
  • Chrome Version 127.0.6533.88 (Official Build) (64-bit)
  • Ubuntu 22.04.4 LTS

@derjanb derjanb added this to the 5.3 milestone Aug 13, 2024
@derjanb
Copy link
Member

derjanb commented Aug 13, 2024

I also didn't noticed any erroneous behavior.

Yes, this is just a cosmetic problem.

@derjanb
Copy link
Member

derjanb commented Aug 28, 2024

Should be fixed at 5.3.6208 (crx|xpi in review)

Please download the crx file linked above and drag and drop it to the extensions page chrome://extensions (after you've enabled 'Developer Mode').

For a quick fix please export your settings and scripts as zip or (JSON) file at the "Utilities" tab and import it back at the fixed BETA version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants