Greg Stoll
07af27b0ac
Bug 1880314 - add a default warn setting to Content Analysis r=dlp-reviewers,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D208039
2024-04-26 22:51:55 +00:00
Greg Stoll
acb7118ea3
Bug 1888713 - move Content Analysis clipboard code into the Content Analysis code r=dlp-reviewers,handyman
...
Got [[ https://treeherder.mozilla.org/jobs?repo=try&revision=e6b8fb3ed7af5b1bd665e376a5917d196327b2d2 | good try builds here ]].
Differential Revision: https://phabricator.services.mozilla.com/D207784
2024-04-22 18:29:52 +00:00
Greg Stoll
37d28f9cf5
Bug 1869868 part 2 - do not consult DLP when copy/pasting items in the same tab r=edgar,dlp-reviewers,credential-management-reviewers,handyman,sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D205744
2024-04-15 12:10:46 +00:00
Greg Stoll
943cfaeee3
Bug 1884003 - make sure Content Analysis log messages aren't too big r=dlp-reviewers,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D206926
2024-04-10 20:44:25 +00:00
Greg Stoll
b32aa334d7
Bug 1875481 - Part 3: Add content analysis support to printing operations r=handyman,spohl,fluent-reviewers,kpatenio,smaug,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D200979
2024-04-10 00:15:47 +00:00
Greg Stoll
d0d35d1366
Bug 1875481 - Part 2: Remove [infallible] from a few nsIContentAnalysis* IDL classes to allow mocking in tests r=handyman,win-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D200978
2024-04-10 00:15:46 +00:00
Stanca Serban
9879879814
Backed out 3 changesets (bug 1875481) for basicWindowDotPrintTest related junit failures.
...
Backed out changeset cd024cb2768e (bug 1875481)
Backed out changeset 6b7be15cd017 (bug 1875481)
Backed out changeset d1da53c0673b (bug 1875481)
2024-04-09 05:56:47 +03:00
Greg Stoll
5626f7b60c
Bug 1875481 - Part 3: Add content analysis support to printing operations r=handyman,spohl,fluent-reviewers,kpatenio,smaug,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D200979
2024-04-08 23:53:58 +00:00
Greg Stoll
e9669485e1
Bug 1875481 - Part 2: Remove [infallible] from a few nsIContentAnalysis* IDL classes to allow mocking in tests r=handyman,win-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D200978
2024-04-08 23:53:58 +00:00
Nika Layzell
a48079cd72
Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8
...
Previously the `boolean` type was also declared using a `bool` typedef in
xpidl, meaning that both were used in various places. This patch standardizes
on the built-in `boolean` type, removing the typedef.
Differential Revision: https://phabricator.services.mozilla.com/D206382
2024-04-04 18:45:21 +00:00
Greg Stoll
9205ca6d2d
Bug 1888291 - mark Content Analysis as not connected in about:support if agent connection has gone away r=dlp-reviewers,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D206031
2024-04-04 01:23:06 +00:00
Greg Stoll
d29ac194b6
Bug 1889094 - fix TV test by resetting some things that get set from the ContentAnalysis policy r=dlp-reviewers,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D206390
2024-04-03 13:04:12 +00:00
Greg Stoll
2bd7572f35
Bug 1888259 - Show a notification when a Content Analysis request is denied for lack of an agent connection r=dlp-reviewers,fluent-reviewers,handyman
...
Note that this also covers the case when the connection initially succeeds but then the agent goes away - we hope to handle this better in bug 1888293. This also shows a message if the signature verification fails.
Differential Revision: https://phabricator.services.mozilla.com/D206024
2024-04-02 11:53:40 +00:00
Greg Stoll
eaf70facf0
Bug 1888662 - add a few missing policies for Content Analysis r=dlp-reviewers,mkaply,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D206112
2024-04-02 11:25:22 +00:00
Greg Stoll
201e512749
Bug 1888915 - initialize mParsedUrlLists to make content analysis URL allow/deny work r=dlp-reviewers,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D206278
2024-04-01 21:36:21 +00:00
Greg Stoll
748e156587
Bug 1888498 - don't pass an empty string to Content Analysis r=dlp-reviewers,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D206053
2024-04-01 18:54:33 +00:00
Greg Stoll
0061631bf7
Bug 1886255 part 2 - Update Content Analysis SDK to new version 9a408736204513e0e95dd2ab3c08de0d95963efc from 2023-09-20 15:27:43 r=dlp-reviewers,handyman
...
Done through `mach vendor` with the new patch
Differential Revision: https://phabricator.services.mozilla.com/D205493
2024-03-27 20:42:20 +00:00
Greg Stoll
23f1b21324
Bug 1886023 - get URL through a smart pointer to avoid leaking r=dlp-reviewers,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D205497
2024-03-26 21:44:27 +00:00
Greg Stoll
5d3a39fdcd
Bug 1882606 - Add about:support information for Content Analysis r=dlp-reviewers,fluent-reviewers,bolsson,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D205121
2024-03-21 01:57:59 +00:00
Cristian Tuns
7560fef6d1
Backed out changeset 5218e0f5277b (bug 1882606) for causing bc failures in browser_Troubleshoot.js CLOSED TREE
2024-03-20 16:34:30 -04:00
Greg Stoll
737730a0e3
Bug 1882606 - Add about:support information for Content Analysis r=dlp-reviewers,fluent-reviewers,bolsson,handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D205121
2024-03-20 19:21:56 +00:00
David P
502bc7d737
Bug 1879181: Unit test ContentAnalysis URL filter lists r=gstoll
...
Would be nice to check all of AnalyzeContentRequest but proper CA unit tests
are still wip.
Differential Revision: https://phabricator.services.mozilla.com/D203509
2024-03-11 23:55:47 +00:00
David P
38e9f69047
Bug 1879181: Allow skipping content analysis for requests that match url list r=gstoll,win-reviewers
...
Check the URLs in the request against the prefs
browser.contentanalysis.allow_url_regex_list and
browser.contentanalysis.deny_url_regex_list, which are space-separated
lists of ECMAscript regexs that match against ASCII-encoded URLs.
Differential Revision: https://phabricator.services.mozilla.com/D203508
2024-03-11 23:55:47 +00:00
Cosmin Sabou
0f00df454f
Backed out 3 changesets (bug 1879181) for causing gtest failures on ContentAnalysisTest.
...
Backed out changeset b2407a14159f (bug 1879181 )
Backed out changeset 78303b2900e9 (bug 1879181 )
Backed out changeset 25521d09c1de (bug 1879181 )
2024-03-09 01:59:45 +02:00
Otto Länd
ebfe61b4bf
Bug 1879181: apply code formatting via Lando
...
# ignore-this-changeset
2024-03-08 21:29:48 +00:00
David P
e6602ebf91
Bug 1879181: Unit test ContentAnalysis URL filter lists r=gstoll
...
Would be nice to check all of AnalyzeContentRequest but proper CA unit tests
are still wip.
Differential Revision: https://phabricator.services.mozilla.com/D203509
2024-03-08 20:28:09 +00:00
David P
c76a1ddc8d
Bug 1879181: Allow skipping content analysis for requests that match url list r=gstoll,win-reviewers
...
Check the URLs in the request against the prefs
browser.contentanalysis.allow_url_regex_list and
browser.contentanalysis.deny_url_regex_list, which are space-separated
lists of ECMAscript regexs that match against ASCII-encoded URLs.
Differential Revision: https://phabricator.services.mozilla.com/D203508
2024-03-08 20:28:09 +00:00
David P
ad262e4950
Bug 1882601: Add content analysis config to enterprise policy r=gstoll,mkaply
...
Differential Revision: https://phabricator.services.mozilla.com/D203339
2024-03-08 19:37:04 +00:00
David P
83d1ecb935
Bug 1862066: Fix line endings in contentanalysis/moz.build r=gstoll
...
No changes beyond using correct line endings.
Differential Revision: https://phabricator.services.mozilla.com/D203333
2024-03-08 18:15:29 +00:00
David P
6c576a2152
Bug 1862066: Test that content analysis is only enabled when it should be r=gstoll
...
Differential Revision: https://phabricator.services.mozilla.com/D203332
2024-03-08 18:15:29 +00:00
David P
137a9b48fe
Bug 1862066: Allow CA enabled when pref is set by enterprise policy or is set alongside command line arg r=gstoll,mkaply,fluent-reviewers,bolsson
...
Content analysis should not be turned on without an enterprise policy
requiring it or the -allow-content-analysis command-line argument is passed
(which is intended to be used for development).
Differential Revision: https://phabricator.services.mozilla.com/D203331
2024-03-08 18:15:28 +00:00
Greg Stoll
063112e8f7
Bug 1879152 - Add confirmation dialog on quit when DLP requests are pending r=handyman,fluent-reviewers,bolsson
...
Differential Revision: https://phabricator.services.mozilla.com/D201154
2024-03-07 17:50:07 +00:00
Cosmin Sabou
bc2c41c77d
Backed out changeset 62ed755b7c5e (bug 1879152) for bc failures on browser_all_files_referenced.
2024-03-07 06:09:47 +02:00
Greg Stoll
74aeb5dbd7
Bug 1879152 - Add confirmation dialog on quit when DLP requests are pending r=handyman,fluent-reviewers,bolsson
...
Differential Revision: https://phabricator.services.mozilla.com/D201154
2024-03-07 03:19:09 +00:00
Sandor Molnar
b54623a2e3
Backed out changeset 5156f24f97bf (bug 1879152) for causing bc failures @ en-US/toolkit/contentanalysis/contentanalysis CLOSED TREE
2024-03-07 04:24:43 +02:00
Greg Stoll
16606764dd
Bug 1879152 - Add confirmation dialog on quit when DLP requests are pending r=handyman,fluent-reviewers,bolsson
...
Differential Revision: https://phabricator.services.mozilla.com/D201154
2024-03-07 01:43:17 +00:00
Greg Stoll
398bc40342
Bug 1882596 - verify signature of content analysis client r=handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D203476
2024-03-05 02:06:32 +00:00
David P
f4b209b4f8
Bug 1882604: Make DLP agent timeout period a config setting r=gstoll
...
Differential Revision: https://phabricator.services.mozilla.com/D203306
2024-03-01 22:37:56 +00:00
Greg Stoll
143dc3245c
Bug 1879182 - add a pref to make Content Analysis allow by default r=handyman
...
This will make DLP requests return Allow if the agent is not present or returns an error.
Differential Revision: https://phabricator.services.mozilla.com/D201277
2024-02-14 16:10:53 +00:00
Greg Stoll
6b9e711a99
Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers
...
When content analysis is on, pastes will be checked by the CA
agent while tab input is blocked. The synchronous nsIClipboard.getData()
method must block until the analysis result is received, so this
requires doing a SpinEventLoopUntil.
Differential Revision: https://phabricator.services.mozilla.com/D196997
2024-02-13 11:26:48 +00:00
Cristian Tuns
2b828fa42e
Backed out changeset 9dfe3fe4ccc5 (bug 1871135) for causing mochitest failures in nsClipboardProxy.cpp CLOSED TREE
2024-02-12 12:04:41 -05:00
Greg Stoll
cbb35c98d7
Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers
...
When content analysis is on, pastes will be checked by the CA
agent while tab input is blocked. The synchronous nsIClipboard.getData()
method must block until the analysis result is received, so this
requires doing a SpinEventLoopUntil.
Differential Revision: https://phabricator.services.mozilla.com/D196997
2024-02-12 16:05:06 +00:00
Cristian Tuns
ea5dd880a4
Backed out changeset 3caca1d10dcc (bug 1871135) for causing build bustages in nsBaseClipboard.cpp CLOSED TREE
2024-02-12 09:59:09 -05:00
Greg Stoll
5a2f92686a
Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers
...
When content analysis is on, pastes will be checked by the CA
agent while tab input is blocked. The synchronous nsIClipboard.getData()
method must block until the analysis result is received, so this
requires doing a SpinEventLoopUntil.
Differential Revision: https://phabricator.services.mozilla.com/D196997
2024-02-12 00:49:39 +00:00
Greg Stoll
0e786b6070
Bug 1872179 - Part 3: File picker file uploads consult content analysis r=rkraesig,win-reviewers
...
File picker upload operations check with any connected content analysis
tool before giving access to the web page.
Differential Revision: https://phabricator.services.mozilla.com/D198456
2024-01-22 13:56:07 +00:00
Greg Stoll
f500773b91
Bug 1872179 - Part 1: Make content analysis fire a "dlp-response" event if analysis is cancelled due to an error r=handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D198453
2024-01-22 13:56:06 +00:00
Greg Stoll
075cba1940
Bug 1871441 - small fixes to ContentAnalysisRequest::GetFileDigest() r=rkraesig
...
Use a bigger buffer for reading file contents, and use MOZ_DIAGNOSTIC_ASSERT to make sure we're not doing file IO on the main thread.
Differential Revision: https://phabricator.services.mozilla.com/D198041
2024-01-16 19:05:54 +00:00
Norisz Fay
eeba8edf67
Backed out changeset 9343b9b9d52e (bug 1871441) for causing hazard failure on analyze.py CLOSED TREE
2024-01-12 21:24:29 +02:00
Greg Stoll
23e246b6b0
Bug 1871441 - small fixes to ContentAnalysisRequest::GetFileDigest() r=rkraesig
...
Use a bigger buffer for reading file contents, and use MOZ_DIAGNOSTIC_ASSERT to make sure we're not doing file IO on the main thread.
Differential Revision: https://phabricator.services.mozilla.com/D198041
2024-01-12 15:06:51 +00:00
Greg Stoll
88b2061bbd
Bug 1871441 - calcuate digest in content analysis code if caller does not r=handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D197096
2023-12-27 16:10:08 +00:00