Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3e68072
fix sandbox ff spec
cyfung1031 Aug 30, 2026
a638910
fix
cyfung1031 Aug 30, 2026
7c54365
vitest: Firefox content world:globalThis 与 window 分属不同 realm
cyfung1031 Aug 30, 2026
f0c7c95
fix
cyfung1031 Aug 30, 2026
970c3e2
♻️ 重構 content sandbox context
cyfung1031 Aug 30, 2026
33c4a38
📝 補回 sandbox context 維護註釋
cyfung1031 Aug 30, 2026
f5b0587
✅ 補齊 Firefox sandbox realm regression 測試
cyfung1031 Aug 30, 2026
5721a6b
♻️ 簡化 sandbox descriptor materialization
cyfung1031 Aug 30, 2026
a4fc4ef
Update create_context.ts
cyfung1031 Aug 31, 2026
8e02a9d
♻️ 簡化 sandbox descriptor 收集
cyfung1031 Aug 31, 2026
b6ba024
♻️ 拆分 realm 与 host descriptor 收集
cyfung1031 Aug 31, 2026
c9cb643
♻️ 簡化 realm 與 host descriptor 收集
cyfung1031 Aug 31, 2026
df3a4a5
✅ 補強 Chrome descriptor 相容性測試
cyfung1031 Sep 1, 2026
829c70c
✅ 補強 pseudo window host identity 測試
cyfung1031 Sep 1, 2026
0b5975e
`const bindFn = Function.prototype.bind;`
cyfung1031 Sep 1, 2026
597464d
📝 補回 sandbox descriptor 註釋
cyfung1031 Sep 1, 2026
c33bd49
✅ 補強 split-realm descriptor regression 測試
cyfung1031 Sep 1, 2026
3ba398a
update vitests
cyfung1031 Sep 2, 2026
b9840fb
Merge branch 'main' into pr/sandbox-ff-spec-fix
cyfung1031 Sep 2, 2026
20f429c
修正合併錯誤
cyfung1031 Sep 2, 2026
65b9bae
userscript test
cyfung1031 Sep 2, 2026
b5c3679
Update sandbox_compatibility_test.js
cyfung1031 Sep 2, 2026
6e52e92
fix `unsafeWindow.globalThis`
cyfung1031 Sep 2, 2026
7b54e85
Update gm-api.spec.ts
cyfung1031 Sep 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions e2e/gm-api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,19 +825,19 @@ test.describe("GM API", () => {
expect(passed, "No test results found - script may not have run").toBeGreaterThan(0);
});

test("Sandbox Test (sandbox_test.js)", async ({ context, extensionId }) => {
test("Sandbox Test (sandbox_function_test.js)", async ({ context, extensionId }) => {
const { passed, failed, logs } = await runTestScript(
context,
extensionId,
"sandbox_test.js",
"sandbox_function_test.js",
`${gmApiMockServer.cspOrigin}/?SANDBOX_TEST_SC`,
8_000,
{ requireOrigin: gmApiMockServer.origin }
);

console.log(`[sandbox_test] passed=${passed}, failed=${failed}`);
console.log(`[sandbox_function_test] passed=${passed}, failed=${failed}`);
if (failed !== 0) {
console.log("[sandbox_test] logs:", logs.join("\n"));
console.log("[sandbox_function_test] logs:", logs.join("\n"));
}
expect(failed, "Some sandbox tests failed").toBe(0);
expect(passed, "No test results found - script may not have run").toBeGreaterThan(0);
Expand Down
Loading
Loading