Dat H. Pham
67fa909722
Fix/composer embed code xss ( #5070 )
2026-11-02 11:05:37 +07:00
Dat Dang
5807b75604
2509 Sanitize composer reply/forward, mailto and pasted content ( #5069 )
2026-10-29 15:15:29 +07:00
dab246
65a2acd45c
TF-4882 refactor(composer): Write zero-width chars in isEmptyListItem as unicode escapes
2026-10-14 17:39:25 +07:00
dab246
f4c8daa16c
TF-4882 fix(composer): Skip Tab indent on the first list item to stop stray bullets
2026-10-14 17:39:25 +07:00
Benoit TELLIER and Claude Opus 5.5
e1e0c98899
TF-4882 fix(composer): Skip Tab list handling when list sits inside a table cell
...
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-14 17:39:25 +07:00
Benoit TELLIER and Claude Opus 5.5
810d7e0b99
TF-4882 feat(composer): Tab/Shift+Tab nest list items, Enter on empty nested item outdents
...
Summernote only binds Tab to list nesting when tabDisable is set, and even
then it inserts spaces. Register a keydown handler on the web editor that:
- delegates Tab / Shift+Tab inside a list item to the Summernote
indent / outdent commands (same as the toolbar buttons);
- outdents an empty nested list item on Enter instead of leaving the list,
like Gmail. Enter on an empty top-level item still exits the list.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-14 17:39:25 +07:00
dab246
1d33a46222
TF-4873 fix(eml-preview): drop email @page rules in CssScopeUtils so a mail cannot print text in the page margins
2026-10-12 19:04:35 +07:00
dab246
19ceb4c855
TF-4873 fix(eml-preview): stack the preview subject and attachments above the email body layer
2026-10-12 19:04:35 +07:00
dab246
d658fdfa3c
TF-4873 fix(eml-preview): drop email @font-face rules in CssScopeUtils so a mail font cannot redraw the app header
2026-10-12 19:04:35 +07:00
dab246
b7b1748c74
TF-4873 fix(eml-preview): stack the preview header above an email-body-layer the email styles cannot reach
2026-10-12 19:04:35 +07:00
dab246
3e3430964f
TF-4873 fix(eml-preview): rewrite html and body to :is(:where(:scope), <selector>) in CssScopeUtils to keep their specificity, and accept u+element selectors
2026-10-12 19:04:35 +07:00
dab246
828053e9db
TF-4873 fix(eml-preview): escape </style in CssScopeUtils output so a neutralized brace cannot end the style element
2026-10-12 19:04:35 +07:00
dab246
dd23c0c311
TF-4873 fix(eml-preview): join html and body into one :scope only across CSS whitespace or >
2026-10-12 19:04:35 +07:00
dab246
42a88aa5ba
TF-4873 fix(eml-preview): rewrite html and body type selectors to :scope in CssScopeUtils so mail body rules still apply
2026-10-12 19:04:35 +07:00
dab246
76a108462d
TF-4873 refactor(eml-preview): model CssScopeUtils code units and lookahead as types to clear CodeScene Primitive Obsession
2026-10-12 19:04:35 +07:00
dab246
99c6b6daea
TF-4873 fix(eml-preview): keep a CSS string open across the whitespace a hex escape swallows in CssScopeUtils
2026-10-12 19:04:35 +07:00
dab246
61b786127e
TF-4873 fix(eml-preview): read <!-- as one CDO token in CssScopeUtils so a url( after it cannot hide the brace that closes @scope
2026-10-12 19:04:35 +07:00
Benoit TELLIER and Claude Opus 5.5
0ef8ecff7e
TF-4873 refactor(eml-preview): split CSS tokenizer dispatch into smaller helpers
...
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-12 19:04:35 +07:00
Benoit TELLIER and Claude Opus 5.5
4d4f47851c
TF-4873 fix(eml-preview): scope mail CSS to the email body
...
The EML preview renders the mail content in the same document as the
app-generated header (subject, sender, recipients, date), so global mail
rules such as '* { font-family: ... !important }' restyled that header.
Wrap every mail <style> into '@scope (.email-body) { ... }'. A CSS
tokenizer neutralizes any '}' that would close the @scope block early,
honoring comments, strings, escapes and url() tokens, and drops the CSS
when unicode-range tokenization differs between browsers.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-12 19:04:35 +07:00
dab246
704ecd84b2
TF-4809 Part 3: Align Sentry startup and reporting consent
2026-10-05 12:22:17 +07:00
dab246
e6e9ed633c
TF-4809 Part 3: Add web Sentry fallback and denied consent
2026-10-05 12:22:17 +07:00
dab246
eec2fbab39
TF-4809 Part 3: Harden Sentry ecosystem consent handling
2026-10-05 12:22:17 +07:00
dab246
6f3b757ef6
TF-4809 Part 3: Share Sentry ecosystem opt-in default with web
2026-10-05 12:16:55 +07:00
Dat Vu and Dat H. Pham
c0eb30d2d6
TF-4809 Part 1-C: Apply consent in iOS notification extension ( #4836 )
...
* TF-4809 Part C: Apply consent in iOS notification extension
* TF-4809 Part C: Apply consent in iOS notification extension
* TF-4809 Part C: Harden NSE consent persistence
* TF-4809 Part C: Fix duplicate Mockito mock generation
* TF-4809 Part C: Use rethrow for Sentry errors
* TF-4809 Part C: Fix analyzer warnings
* TF-4809 Move Sentry cleanup to session teardown
* TF-4809 Fix BaseController test isolation
* TF-4809 Add tests for consent reset on session cleanup
* TF-4809 Reset Sentry consent on session cleanup
---------
Co-authored-by: Dat H. Pham <dphamhoang@linagora.com >
2026-10-05 12:15:05 +07:00
dab246
fdda202292
TF-4809 Part B: Persist consent for FCM background
2026-10-05 12:15:05 +07:00
dab246
9f3665eb47
TF-4809 Part A: Gate Sentry SDK lifecycle by consent
2026-10-05 12:15:04 +07:00
Đặng Đạt
8615e7a240
2509 Let ExternalLinkPolicy decide which link schemes survive sanitizing
2026-10-05 10:20:52 +07:00
Đặng Đạt
9510b710aa
2509 Declare webcal and geo schemes and report links no app can open
...
Addresses: 622656
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_622656
2026-10-05 10:20:52 +07:00
Đặng Đạt
770bd30dfc
2509 Cover the noopener decision for links opened from the EML previewer
...
Addresses: 621393, 622054
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621393
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_622054
2026-10-05 10:20:52 +07:00
Đặng Đạt
aecb0fc1db
2509 Allow sms, webcal and geo links and warn when a link is refused
...
Addresses: 621394
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621394
2026-10-05 10:20:52 +07:00
Dang Dat
f541de05de
2509 Route AppUtils.launchLink and ICS conference links through the scheme allow-list
...
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.
2026-10-05 10:20:52 +07:00
Dang Dat
72cdf9900d
2509 Restrict which links open externally from email content
...
Links inside the EML preview opened new windows/tabs with plain
window.open, with no noopener and no scheme check. Pass
noopener,noreferrer and only open http, https and mailto targets.
Add ExternalLinkPolicy (http/https/tel allow-list) and route the mobile
email WebView's external-navigation handler through it, refusing the
app's own custom schemes so a link in received content can no longer
relaunch another app or the app itself.
2026-10-05 10:20:52 +07:00
Dang Dat
9e4152639f
2509 Escape header fields in the EML preview and remove the unused PDF viewer
...
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.
2026-10-01 15:49:46 +07:00
dab246
fdcec1e35c
fix: support domainPart in URL templates
2026-09-29 12:35:41 +07:00
dab246
17fba1bc2a
TF-4672 Reject malformed URL templates
2026-09-29 12:35:41 +07:00
dab246
7711f9e89d
TF-4672 Reduce WebUriParser primitive arguments
2026-09-29 12:35:41 +07:00
dab246
243e289e35
TF-4672 Harden calendar URL template resolution
2026-09-29 12:35:41 +07:00
dab246
4e412c37d6
TF-4672 Add calendar event links to orange bar
2026-09-29 12:35:41 +07:00
vttran
0145eed197
TF-4802 Update Twake Calendar footer separator ( #4846 )
2026-09-23 10:05:08 +07:00
Dang Dat
e3ba148726
TF-4678 fix(mailbox): scope sidebar header icon and gap to touch platforms
...
Pointer keeps the inset assets at the design's 16.67dp and the header's 8dp gap.
Addresses: 5708829855
https://github.com/linagora/tmail-flutter/pull/4832#issuecomment-5708829855
2026-09-17 15:53:22 +07:00
Dat Vu
3debda2ba1
TF-4799 Fix HTML Mail be truncated in width ( #4806 )
2026-09-09 05:02:09 +07:00
Benoit TELLIER
1353436253
Hide Twake Calendar visio section when rendering ICS description ( #4803 )
2026-09-07 09:42:08 +07:00
e300fea934
TF-4728 Drive picker data layer ( #4764 )
...
* TF-4728 Drive picker data layer
* fixup! TF-4728 Drive picker data layer
* fixup! TF-4728 Drive picker data layer
review-comment: 3818227574
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227574
* fixup! TF-4728 Drive picker data layer
review-comment: 3818227592
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227592
* fixup! TF-4728 Drive picker data layer
review-comment: 3818227604
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227604
* fixup! TF-4728 Drive picker data layer
review-comment: 3818227608
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227608
* fixup! TF-4728 Drive picker data layer
review-comment: 3820850595
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3820850595
* fixup! TF-4728 Drive picker data layer
review-comment: r3826862549
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826862549
* fixup! TF-4728 Drive picker data layer
review-comment: r3826914510
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826914510
* fixup! TF-4728 Drive picker data layer
review-comment: r3826922420
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826922420
* fixup! TF-4728 Drive picker data layer
review-comment: r3827010446, r3826926449, r3826947008
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3827010446
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826926449
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826947008
* fixup! TF-4728 Drive picker data layer
review-comment: r3827015957
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3827015957
* fixup! TF-4728 Drive picker data layer
review-comment: 5365193125
https://github.com/linagora/tmail-flutter/pull/4764#issuecomment-5365193125
* test: pin upload-from-url URI gate, hive persist, and empty-body POST
Co-authored-by: Cursor <cursoragent@cursor.com >
* fixup! TF-4728 Drive picker data layer
review-comment: 3829217029
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3829217029
* fixup! TF-4728 Drive picker data layer
review-comment: 3829254358
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3829254358
* fixup! TF-4728 Drive picker data layer
review-comment: 3829298409
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3829298409
* fixup! TF-4728 Drive picker data layer
review-comment: 3840752770, 3840801835
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3840752770
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3840801835
* fixup! TF-4728 Drive picker data layer
review-comment: 3841010607
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010607
* fixup! TF-4728 Drive picker data layer
review-comment: 3841010610
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010610
* fixup! TF-4728 Drive picker data layer
review-comment: 3841010614
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010614
* fixup! test: pin upload-from-url URI gate, hive persist, and empty-body POST
review-comment: 3841010619
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010619
* fixup! test: pin upload-from-url URI gate, hive persist, and empty-body POST
review-comment: 3841010623
https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010623
---------
Co-authored-by: Dat H. Pham <dphamhoang@linagora.com >
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-25 10:15:13 +07:00
Huy Quang Nguyen
b4b73554ed
TF-4744: Inherit typography from design system TwakeInter ( #4749 )
2026-08-14 14:33:17 +07:00
Dat Vu
e9b412dbfa
TF-4664 Fix can't set my break line in my answer where I want ( #4734 )
2026-08-06 18:07:03 +07:00
Dat Dang
129733d6d3
TF-4684 Add drive card hover close button ( #4690 )
2026-07-24 11:51:59 +07:00
Dat Dang
828f64ec34
Optimize Drive link UI ( #4719 )
2026-07-21 18:18:53 +07:00
Dat Dang
082efd797b
HOTFIX Drive link card UI ( #4709 )
2026-07-21 12:02:49 +07:00
Dat Dang
38c1c22759
TF-4661 Improve drive link UI ( #4676 )
2026-07-14 19:39:53 +07:00
dab246
f7e871220b
TF-4482 Fix invitation email content overflowing on narrow mobile screens
2026-05-25 15:50:47 +07:00