[browser] Firefox: one extension source for Firefox, Edge and Chrome; frames, public suffixes, the caller check, 2FA codes and saving logins; v0.20.0
- custos-browser: fill_allowed (a frame gets a login only when its page would too), public suffixes match exactly only (psl), ports digits only, caller (which extension started the host); spoof tests. - custos-native: answers not_allowed to anything but the Custos extension, browser_totp and browser_save, the frame's and the page's origins, a random session per connection (its match code on Custos's cards). - extension/: manifest.firefox.json (gecko id custos@marek-novak.cz) and manifest.chromium.json, one set of scripts; the popup shows 2FA codes, the save offer and the connection's code; tools/extension.mjs builds each browser and reproducible zips; tools/extension-test.mjs runs the background against a fake browser.
This commit is contained in:
@@ -69,9 +69,62 @@ main {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.logins li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.logins button.login {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.logins button.code {
|
||||
display: block;
|
||||
width: auto;
|
||||
flex: none;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid var(--line);
|
||||
color: var(--accent);
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
.offer {
|
||||
margin: 4px 4px 10px;
|
||||
padding: 10px;
|
||||
border: 1px solid #c9a96e;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.offer p {
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.buttons {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
.buttons button {
|
||||
padding: 5px 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 7px;
|
||||
background: var(--panel);
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.buttons button.primary {
|
||||
border-color: #c9a96e;
|
||||
}
|
||||
footer {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
padding: 8px 14px 12px;
|
||||
border-top: 1px solid var(--line);
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.code-line {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user