Closed Bug 1927766 Opened 1 year ago Closed 1 year ago

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)

Desktop
Windows
defect

Tracking

()

RESOLVED INVALID
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

  1. 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.

: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.

Flags: needinfo?(gstoll)

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.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(gstoll)
Resolution: --- → INVALID
Attached video 2024-10-30 09-46-30.mkv

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!

Flags: needinfo?(gstoll)

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!

Flags: needinfo?(gstoll)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: