Commit Graph
203 Commits
Author SHA1 Message Date
dab246 341f678982 TF-4985 Test hasNoTextContent on a tag whose name only starts with img 2026-11-05 10:07:57 +07:00
Dang Dat f1bc60bddc TF-4985 Make hasNoTextContent linear on an unclosed angle bracket
Addresses: 4397522269
https://github.com/linagora/tmail-flutter/pull/5050#discussion_r4397522269
2026-11-05 10:07:57 +07:00
dab246 7063c6b148 TF-4985 Cover upper-case images, bare nbsp and escaped markup in hasNoTextContent tests 2026-11-05 10:07:57 +07:00
Dang Dat fecbefaf40 TF-4985 Reject a vacation message with no text content
Ref: https://github.com/linagora/tmail-flutter/issues/4985
2026-11-05 10:07:57 +07:00
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
Dat Dang 94869ef006 Check every HTML pipeline on its own viewer with named rule sets (#5020) 2026-10-22 13:04:45 +07:00
Dat H. Pham fe148f2f81 Test HTML email display rules on every viewer and pane width (#4966) 2026-10-21 05:01:30 +07:00
Dat H. Pham 57d1dabb12 Name the empty-reply test for what it checks: the signature is blocked 2026-10-20 10:03:55 +07:00
dab246 66edc914d0 Test that the mobile responsive layout applies only when the view opts in 2026-10-20 10:03:55 +07:00
Dat H. Pham 1ae14aa53b Find every pipeline, reject sidecar typos, and keep one HTML corpus in core 2026-10-20 10:03:55 +07:00
dab246 484d7f020e Lay out RTL corpus fixtures right to left in the Chrome layout test 2026-10-20 10:03:55 +07:00
dab246 61f1a74832 Test that the web viewer acts only on messages posted by its own iframe 2026-10-20 10:03:55 +07:00
Dat H. Pham 05ae9e4ce3 Cover pipeline call sites and quote escaping; drop tests that prove nothing 2026-10-20 10:03:55 +07:00
Dat H. Pham 49255f6b69 Drop the unread iframe sandbox constant and its test 2026-10-20 10:03:55 +07:00
dab246 107a42231c Test that the web viewer loads the document built from its own options 2026-10-20 10:03:55 +07:00
Dat H. Pham f4c7f927aa fixup! Lock HTML sanitizer policy and transform pipelines with golden files 2026-10-20 10:03:55 +07:00
Dat H. Pham fda6d8a0a2 fixup! Cover every HTML pipeline from one registry 2026-10-20 10:03:55 +07:00
Dat H. Pham 75d41a05c3 fixup! Cover untested HTML DOM transformers and corpus structure 2026-10-20 10:03:55 +07:00
Dat H. Pham 0e43aa01d8 fixup! Add a generated HTML email corpus for display regression 2026-10-20 10:03:55 +07:00
Dat H. Pham 54834fa2f1 fixup! Assert corpus layout and content survive HtmlTransform 2026-10-20 10:03:55 +07:00
Dat H. Pham 7759388e20 fixup! Record the empty-reply XSS gap in the pipeline registry until it is fixed
x
2026-10-20 10:03:55 +07:00
Dat H. Pham b7bf0d5cc4 Record the empty-reply XSS gap in the pipeline registry until it is fixed 2026-10-20 10:03:55 +07:00
Dat H. Pham fab93b0678 Build viewer HTML documents in one tested builder; name plain-text pipeline 2026-10-20 10:03:55 +07:00
Dat H. Pham 047adddcf4 Lock HTML sanitizer policy and transform pipelines with golden files 2026-10-20 10:03:55 +07:00
Dat H. Pham 26b6139e76 Assert corpus layout and content survive HtmlTransform 2026-10-20 10:03:55 +07:00
Dat H. Pham 9ddb4d4ee7 Add a generated HTML email corpus for display regression 2026-10-20 10:03:55 +07:00
Dat H. Pham 5a689001b0 Cover every HTML pipeline from one registry 2026-10-20 10:03:55 +07:00
Dat H. Pham 62a67bd10f Add quote-wrap, provenance, viewer, and Chrome layout tests 2026-10-20 10:03:55 +07:00
Dat H. Pham d6d0d11d18 Cover untested HTML DOM transformers and corpus structure 2026-10-20 10:03:55 +07:00
Dat H. Pham 484937fdd6 Add TransformConfiguration input-trust contract tests 2026-10-20 10:03:55 +07:00
dab246 94083efede TF-4882 test(composer): Cover every ListKeyboardHandlerScript guard in the Chrome test 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 TELLIERandClaude 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 410977d67a TF-4874 fix(html): drop scheme-added hrefs that SanitizeUrl fails to decode 2026-10-14 16:23:21 +07:00
dab246 07c3d7e1f7 TF-4874 fix(html): keep www. and protocol-relative hrefs as https links, drop them when SanitizeUrl rejects 2026-10-14 16:23:21 +07:00
dab246 349ec96884 TF-4874 test(html): cover padded, unparsable and badly percent-encoded hrefs in SanitizeHyperLinkTagInHtmlTransformer 2026-10-14 16:23:21 +07:00
dab246 c30b68aae7 TF-4874 test(html): assert exact anchors in relative-href test so the kept <base> no longer fails it 2026-10-14 16:23:21 +07:00
Benoit TELLIERandClaude Opus 5.5 28dc354bce TF-4874 fix(html): drop relative hrefs instead of rewriting them to a bogus host
SanitizeUrl prefixed any scheme-less href that looked like a domain
with https://, so <a href="page.html"> became https://page.html.
Relative links cannot be resolved since <base> is stripped: remove
their href to make them inert. In-page fragments are kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 16:23:21 +07:00
dab246 c8632a5aba TF-4892 Keep folder tree parent semantics stable when expanding 2026-10-14 15:25:25 +07:00
Benoit TELLIERandClaude Opus 5.5 69e588e824 TF-4877 Prompt for password when previewing encrypted PDF
pdfrx supports a PasswordProvider but TwakePdfPreviewer does not expose
it, so encrypted PDFs failed with "No password supplied by
PasswordProvider". Render the PDF through a password-aware previewer
that reuses the upstream building blocks, prompt for the password with
retry and a localized error on wrong password, and show a localized
message (download stays available) when the prompt is cancelled.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 08:20:53 +07:00
dab246 bf7dd9c91d TF-4878 test(attachment): assert MiddleEllipsisText also fits horizontally, not only on one line 2026-10-13 05:42:13 +07:00
dab246 f846395db1 TF-4878 fix(attachment): search extension-keeping candidates separately in MiddleEllipsisText 2026-10-13 05:42:13 +07:00
dab246 eb048f03ec TF-4878 test(attachment): split MiddleEllipsisText tests out of main and apply ambient styles inside Scaffold 2026-10-13 05:42:13 +07:00
dab246 30f6ae910f TF-4878 test(attachment): cover MiddleEllipsisText style inheritance and one-line fit 2026-10-13 05:42:13 +07:00
dab246 1e97169ea0 TF-4878 test(attachment): cover MiddleEllipsisText file extension edge cases 2026-10-13 05:42:13 +07:00
dab246 5fb769cefd TF-4878 test(attachment): cover MiddleEllipsisText cache invalidation on preserveFileExtension change 2026-10-13 05:42:13 +07:00
dab246 513b98af01 TF-4878 test(attachment): cover the trailing-dot guard of MiddleEllipsisText extension detection 2026-10-13 05:42:13 +07:00
dab246 efcc2e2a9f TF-4878 fix(attachment): apply the system text scale when measuring MiddleEllipsisText 2026-10-13 05:42:13 +07:00
dab246 bd9d7da1d4 TF-4878 fix(attachment): measure MiddleEllipsisText with the style Text renders 2026-10-13 05:42:13 +07:00