The server rejects mailbox names containing '.' (hierarchy delimiter),
which surfaced as a raw English toast. Validate it client-side and
replace the generic 'special characters' error with a message listing
the forbidden characters.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
When the loaded content already holds a top-level .tmail-signature,
restoreCollapsibleSignatureButton re-applied it, which consumed the one-shot
draft hash synchronization before the identity signature got inserted. The
baseline hash could then differ from the content and closing the unmodified
composer prompted to save.
Also drop the stray .hee-tmp gitlink accidentally committed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Since TF-4034 the identity signature is inserted with allowCollapsed: false,
so the editor produces a top-level .tmail-signature without any
.tmail-signature-button. synchronizeInitEmailDraftHash still waited for the
button, so on web the baseline hash was never re-taken once the signature
landed and closing an unmodified composer always prompted to save.
Detect the top-level .tmail-signature instead, ignoring signatures nested in
quoted content.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reply, reply all and reply to list were never given a baseline draft
hash, so closing them always prompted.
On web, the identity signature is inserted asynchronously into the
editor, after the baseline hash has been computed. The re-baseline
done on signature insertion was limited to compose, so any
reply/forward/edit-as-new with a signature was seen as modified.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
When the identity is restored from the email header, setupSelectedIdentity
returned early without calling onCompleteSetupComposer on web, leaving the
saved draft hash unset for editAsNewEmail.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
initEmailDraftHash only set a baseline hash for compose and editDraft,
leaving it null for forward and editAsNewEmail. Any close was therefore
considered a modification and triggered the save-to-drafts dialog.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
AppUtils.launchLink was the one shared entry point for opening links
externally, but it launched any URL/scheme unguarded, including its own
Safari<17 branch which called window.open directly and skipped
url_launcher_web's own scheme block and noopener/noreferrer. Route both
paths through ExternalLinkPolicy (now also allowing mailto, since
launchLink already had legitimate mailto callers) and restore
noopener/noreferrer on the Safari branch.
The calendar invite's video-conference extension fields
(X-OPENPAAS-VIDEOCONFERENCE / X-GOOGLE-CONFERENCE) are attacker-controlled
and only checked for non-empty values before reaching the same launch
path via the "join" button; filter them through the same allow-list at
the source.
The EML / full-message preview and the print page build their header
as an HTML string. Subject, sender, recipients, date, attachment names
and the attachment link were inserted unescaped, so a crafted header
value became markup in a same-origin page.
DownloadManager.openDownloadedFileWeb loaded pdf.js/pdfobject from a
CDN and put the file name unescaped into a blob page. Nothing calls it.
PreviewEmlFileUtils and PrintUtils escape every text field at the sink.
Callers pass raw strings and no longer pre-escape them. The attachment
link is attribute-escaped and built with Uri, so file names survive the
round-trip. The inline-image alt and id attributes are attribute-escaped.
openDownloadedFileWeb, its CDN loaders and js_interop_stub.dart are
removed, and DownloadManager no longer takes DeviceInfoPlugin.
Automatic server discovery takes the _jmap._tcp SRV target as the
login server. The plain-DNS client uses a predictable transaction id
and doesn't check that an answer matches the question, so on an
untrusted network a spoofed answer could send discovery, and then
login, to the wrong host. Public UDP and DoH also shared the same
priority, so which one ran first was undefined.
Lookup order is now public DoH -> system -> public UDP -> cloud.
System DNS stays second so VPN users whose _jmap record is only
visible to the internal resolver (#3976) still get discovered. Each
mode has its own priority level, so the order is deterministic, and a
test pins it.