Open Bug 1919755 Opened 11 days ago Updated 4 days ago

The path of the printed PDF from the file system is incorrectly displayed in cmd while DLP is running

Categories

(Firefox :: Data Loss Prevention, defect)

Firefox 132
Desktop
Windows
defect

Tracking

()

ASSIGNED
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- affected
firefox130 --- unaffected
firefox131 --- unaffected
firefox132 --- affected

People

(Reporter: bhidecuti, Assigned: gstoll)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image image.png

Found in

  • 132.0a1 (2024-09-18)

Affected versions

  • 132.0a1

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

Tested platforms

  • Affected platforms: Windows 10/11
  • Unaffected platforms: Ubuntu, macOS

Steps to reproduce

  1. Open a PDF file from your system in Firefox
  2. Open the application menu and select “Print” -> “Microsoft Print to PDF” and click “Print”
  3. Go to the command window where the sample DLP agent is running and observe the line that starts with “URL:..”

Expected result

  • The line displays the path to the pdf under the following form: “URL: file:///path_to_the_pdf”

Actual result

  • “URL: resource://pdf.js/web/viewer.html” is displayed instead

Regression range

Additional notes

  • See the attached ss
  • Leaving the Severity field empty as QA considers this an S3

:gstoll, since you are the author of the regressor, bug 1914068, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(gstoll)
Severity: -- → S3
Flags: needinfo?(gstoll)
Assignee: nobody → gstoll
Status: NEW → ASSIGNED

This was already working for remote PDF files but I went ahead and
added tests for both.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: