mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-13 00:51:45 +01:00
[PM-5189] Implementing jest tests for AutofillInlineMenuContentService
This commit is contained in:
parent
eaeb4e46e9
commit
644dbe251b
@ -9,12 +9,12 @@ import {
|
||||
} from "../../abstractions/autofill-inline-menu-container";
|
||||
|
||||
export class AutofillInlineMenuContainer {
|
||||
private setElementStyles = setElementStyles;
|
||||
private extensionOriginsSet: Set<string>;
|
||||
private readonly setElementStyles = setElementStyles;
|
||||
private readonly extensionOriginsSet: Set<string>;
|
||||
private port: chrome.runtime.Port | null = null;
|
||||
private portName: string;
|
||||
private inlineMenuPageIframe: HTMLIFrameElement;
|
||||
private iframeStyles: Partial<CSSStyleDeclaration> = {
|
||||
private readonly iframeStyles: Partial<CSSStyleDeclaration> = {
|
||||
all: "initial",
|
||||
position: "fixed",
|
||||
top: "0",
|
||||
@ -32,14 +32,14 @@ export class AutofillInlineMenuContainer {
|
||||
padding: "0",
|
||||
colorScheme: "normal",
|
||||
};
|
||||
private defaultIframeAttributes: Record<string, string> = {
|
||||
private readonly defaultIframeAttributes: Record<string, string> = {
|
||||
src: "",
|
||||
title: "",
|
||||
sandbox: "allow-scripts",
|
||||
allowtransparency: "true",
|
||||
tabIndex: "-1",
|
||||
};
|
||||
private windowMessageHandlers: AutofillInlineMenuContainerWindowMessageHandlers = {
|
||||
private readonly windowMessageHandlers: AutofillInlineMenuContainerWindowMessageHandlers = {
|
||||
initAutofillInlineMenuButton: (message) => this.handleInitInlineMenuIframe(message),
|
||||
initAutofillInlineMenuList: (message) => this.handleInitInlineMenuIframe(message),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user