The declarative <all_urls> + document_start content script runs the rrweb bundle on every page the user ever visits, even when idle. Registering it dynamically when recording starts (chrome.scripting.registerContentScripts / executeScript with injectImmediately — https://developer.chrome.com/docs/extensions/reference/api/scripting#method-registerContentScripts) means:
- materially better Chrome Web Store review odds (the
debugger + <all_urls> combo triggers in-depth review)
- smaller install warning
- zero overhead on non-recorded pages
activeTab + scripting are already in the manifest. The e2e suite (e2e/extension.spec.mjs) should pass unchanged — it asserts behavior, not injection mechanics.
The declarative
<all_urls>+document_startcontent script runs the rrweb bundle on every page the user ever visits, even when idle. Registering it dynamically when recording starts (chrome.scripting.registerContentScripts/executeScriptwithinjectImmediately— https://developer.chrome.com/docs/extensions/reference/api/scripting#method-registerContentScripts) means:debugger+<all_urls>combo triggers in-depth review)activeTab+scriptingare already in the manifest. The e2e suite (e2e/extension.spec.mjs) should pass unchanged — it asserts behavior, not injection mechanics.