Open Bug 1899265 Opened 4 months ago Updated 3 months ago

Print preview window can be accessed while DLP dialog is active

Categories

(Firefox :: Data Loss Prevention, defect)

Firefox 128
Desktop
Windows
defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 --- unaffected
firefox128 --- affected

People

(Reporter: bhidecuti, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Found in

  • 128.0a1 (2024-05-27)

Affected versions

  • 128.0a1 (2024-05-27)

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 22.04, macOS 12.6.6

Steps to reproduce

  1. Navigate to wikipedia.org
  2. Open up a document in an external program (for example Notepad) and type “123456789” into it and copy it
  3. Return to Firefox and paste the “123456789” into the search bar
  4. While the content is being analyzed, open the Print preview either by clicking the application menu -> Print option or by using the Ctrl+P keys
  5. Observe the behavior

Expected result

  • Print preview window is not displayed

Actual result

  • Print preview window is displayed in Loading state

Regression range

  • This is not a regression as this is a new feature

Additional notes

  • See the attached video
  • After the scan is finalized, the Print preview window is automatically dismissed
  • Reproducing for the rest of the DLP messages as well

@bhidecuti, a couple of follow up questions:

  1. Does the browser continue to work as expected after the scan is finalized?
  2. Does the cancel button work throughout the process, including while the print preview is displaying the loading spinner?
Flags: needinfo?(bhidecuti)

(In reply to Haik Aftandilian [:haik] from comment #1)

@bhidecuti, a couple of follow up questions:

  1. Does the browser continue to work as expected after the scan is finalized?

Yes, after the scan is finalized the browser works as expected.

  1. Does the cancel button work throughout the process, including while the print preview is displaying the loading spinner?

Yes, the "Cancel" button from "Scan in progress" dialog works. Also, the print preview is automatically dismissed after pressing the "Cancel" button.
Please let me know if I can provide additional details!

Flags: needinfo?(bhidecuti)
No longer blocks: 1882607
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: