fix(extension): support UUID generation on insecure origins - #163
Conversation
7feb4ff to
3c77ef7
Compare
|
Add a regression test for RecordFrameAgent——simulate crypto.randomUUID being unavailable, then verify that recording can still start successfully. |
BrowserSkill fails to start recording on enterprise intranet websites served over HTTP, for example:
Running bsk record start fails with:
The browser console shows the actual error:
The recording content script calls crypto.randomUUID() during initialization. This API may not be available when running on non-secure HTTP pages, causing the recording process to fail before it can start. This is common in enterprise environments, where many internal OA, ERP, administration, and legacy systems are still deployed over HTTP. Therefore, this issue prevents BrowserSkill from recording a significant class of enterprise intranet applications and should be addressed as a recording compatibility issue rather than a site-specific problem. |
You misunderstood what I meant. |
Summary
Fix recording initialization on ordinary HTTP intranet pages where
crypto.randomUUID()is unavailable.Changes
crypto.getRandomValues()as fallback.crypto.randomUUID()call sites.Validation