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

Sometimes GM_setValue() does not work #2261

Open
shopkeeperV opened this issue Nov 24, 2024 · 1 comment
Open

Sometimes GM_setValue() does not work #2261

shopkeeperV opened this issue Nov 24, 2024 · 1 comment

Comments

@shopkeeperV
Copy link

lemur browser 2.7.0.035 (127.0.6533.144)
tampermonkey beta 5.3.6216
Android 14

Sometimes, after opening a page, switching to other tabs, or switching to other applications and then coming back, you may find that Tampermonkey reports errors on some pages, as shown in the figure. It will cause GM_setValue on the current page to fail. At this time, simply refreshing the page can restore everything to normal.
Screenshot_2024-11-24-15-10-24-30_32cba261fc08a501ce70de75bdbe2575

@derjanb
Copy link
Member

derjanb commented Nov 24, 2024

This happens when the background context is closed. Usually the page context waits for the background to start again and then re-establishes the ports. This doesn't seem to work on Lemur Browser. So either it doesn't send port disconnect, or pagehide and pageshow events...

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

2 participants