fix: address review nits from batch integration follow-ups (#818)
- browser: reject empty Referrer-Policy tokens structurally while still skipping them per W3 fallback semantics. - browser: document that WebMCP keys cannot collapse since unknown frames are excluded before keying. - ghidra: split NativeAOT non-recovery diagnostics into reason-missing vs payload-present variants with exact assertions. - reference: lock secret-patterned exclusion before failure projection so failure messages cannot carry secret paths. - doctor: lock direct-launcher Codex timeout ordering both ways. - native: note plutil -n macOS 12+ requirement; add fat-output control guarding the thin pre-scan. - reconstruction: multi-unknown limitation coverage via shared helper. Tracks #817 for the remaining smol-toml advisory.
This commit is contained in:
@@ -69,6 +69,31 @@ describe("reference import native entry failure details", () => {
|
||||
},
|
||||
);
|
||||
|
||||
it.skipIf(process.platform === "win32")(
|
||||
"excludes secret-patterned paths before failure projection",
|
||||
async () => {
|
||||
const root = await createTestTempDirectory("rea-import-native-secret-");
|
||||
await promisify(execFile)("mkfifo", [join(root, "secret-events.pipe")], {
|
||||
timeout: 2_000,
|
||||
});
|
||||
const imported = await importReferenceSource({
|
||||
root,
|
||||
caller: "native-entry-secret-detail-test",
|
||||
policy: { secretPatterns: ["*secret*"] },
|
||||
});
|
||||
if (!imported.ok) throw new Error(imported.error.message);
|
||||
expect(
|
||||
imported.value.entries.find(
|
||||
(item) => item.path === "secret-events.pipe",
|
||||
),
|
||||
).toBeUndefined();
|
||||
expect(imported.value.exclusions).toContainEqual({
|
||||
path: "secret-events.pipe",
|
||||
reason: "configured-secret",
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
it("preserves an ordinary readable source-file control", async () => {
|
||||
const root = await createTestTempDirectory("rea-import-native-readable-");
|
||||
await writeFile(join(root, "main.ts"), "export const value = 1;\n");
|
||||
|
||||
Reference in New Issue
Block a user