Closed Bug 1899714 Opened 1 month ago Closed 26 days ago

You are not permitted to print this document message is no longer displayed when printing sensitive data

Categories

(Firefox :: Data Loss Prevention, defect)

Desktop
Windows
defect

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 --- unaffected
firefox128 --- verified

People

(Reporter: atrif, Assigned: gstoll)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: perf-alert, regression)

Attachments

(2 files)

Attached image dlp_3.gif

Found in

  • 128.0a1 (2024-05-29)

Affected versions

  • 128.0a1 (2024-05-29)

Tested platforms

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

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. Navigate to https://en.wikipedia.org/wiki/123456789
  2. Print the page.

Expected result

  • After 10 seconds the dialog You're not permitted to print this document is displayed.

Actual result

  • The print preview disappears and nothing happens.

Regression range

Additional notes

  • Attached a screen recording.
  • The document is not printed as expected.
  • The Notification that the DLP agent is reviewing data is displayed.

:gstoll, since you are the author of the regressor, bug 1898718, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(gstoll)

Wow, bug 1898718 did regress this! That's surprising. Gonna take a look.

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

I think the problem is that the call to print is throwing an NS_ERROR_CONTENT_BLOCKED error, which gets caught and then the print preview window gets closed right away, which also closes the "blocked" dialog. This happened to work in the past because the dialog was being shown synchronously, which wouldn't let the window close until it went away I guess?

I verified that quitting while the synchronous version of the dialog is active doesn't hang, so we're not re-regressing bug 1898718.

Pushed by gstoll@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/324e0a8e5a27
make DLP block dialog show up again for print preview window r=dlp-reviewers,handyman
Status: ASSIGNED → RESOLVED
Closed: 26 days ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Regressions: 1900798

Verified fixed with Firefox 128.0a1 (20240605093026) on Windows 10x64 and Windows 11. The DLP block dialog is successfully displayed after following steps from comment 0 and no shutdown hang can be seen when closing Firefox while the DLP block dialog is active. However, this might have introduced a regression, but we are unsure, see bug 1900798 for more details.

Status: RESOLVED → VERIFIED

Perfherder has detected a talos performance change from push 3b98afd40620067845b46a4d7d5c05c010c1b4bc.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
16% about_preferences_basic macosx1015-64-shippable-qr e10s fission stylo webrender-sw 127.52 -> 107.17
8% about_preferences_basic linux1804-64-shippable-qr e10s fission stylo webrender-sw 171.36 -> 157.09

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 633

For more information on performance sheriffing please see our FAQ.

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: