Firefox DLP scans the pasted content two times (not visible in the UI) doubling the set amount of time for the scanning
Categories
(Firefox :: Data Loss Prevention, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr128 | --- | unaffected |
| firefox132 | --- | unaffected |
| firefox133 | --- | unaffected |
| firefox134 | --- | affected |
People
(Reporter: atrif, Unassigned)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression)
Attachments
(2 files)
Found in
- 134.0a1 (2024-10-29)
Affected versions
- 134.0a1 (2024-10-29)
Tested platforms
- Affected platforms: Windows 10x64, Windows 11
- Unaffected platforms: macOS, Ubuntu 24,
Preconditions
- Download the DLP test assets from https://drive.google.com/file/d/1yjqVRuxdKV3WnO7D2wzMgDXBuYBxUgVw/view
- Create a distribution folder inside the Firefox folder and paste the policies-1.json to it and then rename it to policies.json
- run the DLP agent in CMD using: .\content_analysis_sdk_agent.exe --user --toblock=.\d{3}-\d{2}-\d{4}. --towarn=.warn. --delays=10
Steps to reproduce
- Copy a random string from one Wikipedia page to another.
Expected result
- The total scanning time is 10 seconds as stated in preconditions.
Actual result
- The total scanning time is 20 seconds. The are two scans happening inside the agent.
Regression range
- I cannot reproduce this issue with 133.0b1, so this likely happens after bug 1915351.
Additional notes
- Attached a screen recording.
Comment 1•1 year ago
|
||
:gstoll, since you are the author of the regressor, bug 1915351, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 2•1 year ago
|
||
This is intended behavior after bug 1915351. That bug changed the way we do DLP - it analyzes everything on the clipboard before doing a paste to help the Google Docs case where they will be using multiple formats, as a way of avoiding popping up multiple dialogs. The downside is that in cases like this we will now analyze a format (the HTML one in this example) that the page doesn't end up using. But in a relatively quick running agent, we're willing to make that tradeoff.
| Reporter | ||
Comment 3•1 year ago
|
||
I think this also makes the notification for the content analysis be displayed two times with Firefox 134.0a1 (2024-10-29) when the connection to the DLP Agent cannot be established and a paste event is fired. I cannot reproduce the issue with 133.0b1. Should we file something against this (see screen recording)? Thank you in advance!
Comment 4•1 year ago
|
||
I think you're right that this is the same root cause. Yeah, go ahead and file a new bug for that, although I'd call it S4. Thank you!
Description
•