Fix rebase integration regressions

This commit is contained in:
Mohamed Boudra
2026-07-16 15:46:07 +00:00
parent 375df61714
commit 8e936daa9e

View File

@@ -209,28 +209,4 @@ describe("browser webview attachment", () => {
expect(getPaseoBrowserIdForWebContents(guest)).toBeNull();
expect(guest.backgroundThrottlingCalls).toEqual([false]);
});
test("unregisters a browser only from its requesting host", () => {
const firstContents = new FakeRegisteredWebContents(9003);
const secondContents = new FakeRegisteredWebContents(9004);
registerPaseoBrowserWebContents({
contents: firstContents,
browserId: "browser-shared-hosts",
hostWebContentsId: 1001,
});
registerPaseoBrowserWebContents({
contents: secondContents,
browserId: "browser-shared-hosts",
hostWebContentsId: 1002,
});
unregisterPaseoBrowserFromHost(1001, "browser-shared-hosts");
expect(getPaseoBrowserIdForWebContents(new LiveWebContentsIdentity(9003))).toBeNull();
expect(getPaseoBrowserIdForWebContents(new LiveWebContentsIdentity(9004))).toBe(
"browser-shared-hosts",
);
unregisterPaseoBrowser("browser-shared-hosts");
});
});