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.
Quota sizes in storage settings were formatted with the filesize package,
which always uses English units and a decimal point. Format them with the
current locale's decimal separator and French byte units (o, Ko, Mo, Go...),
and pluralize 'utilisés' in the French translation.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
text/x-vcard shares carrying MIME parameters (e.g. ";charset=utf-8") or
different casing failed the exact-match check and fell into the content
branch, pasting a raw .vcf file path into the composer body instead of
attaching the contact. Normalize the MIME type (strip parameters, trim,
lowercase) before matching.
Expose the share handler as visibleForTesting and add controller tests for
vCard / text-plain / text-html routing, plus manager coverage that an
EventChannel error is swallowed and later shares still deliver.
Dashboard onClose closed the singleton EmailReceiveManager's BehaviorSubject.
After a close/reopen cycle (logout/login, route recreation) the next dashboard
subscribed to the dead subject; a later live share then landed on a freshly
recreated subject the listener never subscribed to, so the composer never
opened. Clear pending data by emitting an empty list instead of closing, so
the subject lives for the singleton's lifetime and keeps delivering shares.
Subscribe to the live media stream before resolving getInitialMedia, and
apply the cold-start result only when non-empty. A share can land on the
live EventChannel before getInitialMedia resolves; on a normal (non-share)
launch getInitialMedia returns empty, so applying it unconditionally
overwrote the just-arrived share — silently dropping warm-app shares that
land while startup is still settling.
Also add onError/catchError logging to both media sources and a
deterministic regression test that gates getInitialMedia behind a Completer
to reproduce the race.