1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 05:53:42 +00:00

Revert "PM-19574 Browser Autofill overlay displays outdated data (#15624)"

This reverts commit 9eceaa3d4c.
This commit is contained in:
Daniel Riera
2025-07-28 16:14:30 -04:00
parent b2770a7eb0
commit 0fc6ec4d0b
2 changed files with 0 additions and 15 deletions

View File

@@ -26,7 +26,6 @@ import {
} from "@bitwarden/vault";
import { BrowserFido2UserInterfaceSession } from "../../../../../autofill/fido2/services/browser-fido2-user-interface.service";
import { BrowserApi } from "../../../../../platform/browser/browser-api";
import BrowserPopupUtils from "../../../../../platform/browser/browser-popup-utils";
import { PopupRouterCacheService } from "../../../../../platform/popup/view-cache/popup-router-cache.service";
import { PopupCloseWarningService } from "../../../../../popup/services/popup-close-warning.service";
@@ -310,19 +309,6 @@ describe("AddEditV2Component", () => {
expect(navigate).not.toHaveBeenCalled();
expect(back).toHaveBeenCalled();
});
it.each<CipherFormMode>(["add", "edit", "partial-edit"])(
"sends the addEditCipherSubmitted message when a cipher is edited, added or partially edited",
async (mode) => {
const sendMessageSpy = jest.spyOn(BrowserApi, "sendMessage");
component.config.mode = mode;
await component.onCipherSaved({ id: "123-456-789" } as CipherView);
expect(sendMessageSpy).toHaveBeenCalled();
expect(sendMessageSpy).toHaveBeenCalledWith("addEditCipherSubmitted");
},
);
});
describe("handleBackButton", () => {

View File

@@ -268,7 +268,6 @@ export class AddEditV2Component implements OnInit {
// Clear popup history so after closing/reopening, Back wont return to the add-edit form
await this.popupRouterCacheService.setHistory([]);
}
await BrowserApi.sendMessage("addEditCipherSubmitted");
}
subscribeToParams(): void {