Closed Bug 1900798 Opened 26 days ago Closed 18 days ago

Firefox is freezing if resizing the window during the transition to the blocked dialog for printing operation

Categories

(Firefox :: Data Loss Prevention, defect)

Firefox 128
Desktop
Windows
defect

Tracking

()

VERIFIED FIXED
129 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 --- unaffected
firefox128 --- wontfix
firefox129 --- verified

People

(Reporter: bhidecuti, Assigned: gstoll)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached video Firefox freezing

Found in

  • 128.0a1 (2024-06-05)

Affected versions

  • 128.0a1 (2024-06-05)

Tested platforms

  • Affected platforms: Windows 10/11
  • 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. Open the Print Preview (ctrl+P) and press the “Print” button
  3. Wait for the OS notification regarding the DLP agent reviewing data to be displayed and then resize the browser during the transition to the “You’re not permitted..” blocked dialog
  4. Observe the behavior

Expected result

  • Firefox is not freezing after resizing the window during the transition to the “You’re not permitted..” blocked dialog

Actual result

  • Firefox is freezing, causing the entire desktop to become unresponsive

Regression range*

  • We suspect that bug 1899714 introduced this issue, but we cannot be sure due to the same bug. This is happening before bug 1898718 as well.

Additional notes

  • See the attached video
  • The issue is fixed after closing Firefox from Task Manager
  • This is only reproducing for the printing operation - and only when resizing the window during the transition to the blocked dialog
  • Not reproducing when resizing the window and printing operation is allowed
  • Not reproducing for blocked paste / upload operation

Changing the severity to S3 as I accidentally selected S4.

Severity: S4 → S3
Assignee: nobody → gstoll
Status: NEW → ASSIGNED

A new attempt to fix these problems - always use asynchronous dialogs, but in the print preview case show the "DLP blocked" dialog on the original browsingContext that displayed the print preview dialog (since the dialog itself is about to close)

Set release status flags based on info from the regressing bug 1899714

Pushed by gstoll@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/99ddc4351882
go back to async "DLP blocked" dialog for print preview r=dlp-reviewers,handyman
Status: ASSIGNED → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

The patch landed in nightly and beta is affected.
:gstoll, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox128 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(gstoll)

No (although we will be uplifting to ESR next cycle)

Flags: needinfo?(gstoll)

Verified as fixed using Firefox Nightly 129.0a1, build ID 20240613215041, using Windows 11. Firefox is no longer freezing after resizing the window during the transition to the “You’re not permitted..” blocked dialog.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: