Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Did you know "registerContentScripts" perists across sessions?

63 views
Skip to first unread message

Juraj M.

unread,
Mar 18, 2025, 5:12:20 AMMar 18
to Chromium Extensions
Soooo, using a unique ID when registering content script may have been a mistake...

Screenshot 2025-03-18 100907.png
I blame the docs for not saying anything about it.

Also, does this mean that "activeTab" is enough to permanently get access to a host?

Jackie Han

unread,
Mar 18, 2025, 10:06:53 AMMar 18
to Juraj M., Chromium Extensions
1. There is a `persistAcrossSessions` property in the doc of RegisteredContentScript which decides whether to persist.
2. I think the "activeTab" is not enough for cross browser sessions. It needs host permissions.

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/53a60cae-2bfe-4768-bcd7-1f01290932d5n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages