Pasting an empty clipboard will make the page unresponsive
Categories
(Firefox :: Data Loss Prevention, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox-esr128 | --- | verified |
firefox126 | --- | unaffected |
firefox127 | --- | unaffected |
firefox128 | --- | wontfix |
firefox129 | --- | verified |
People
(Reporter: atrif, Assigned: gstoll)
References
(Blocks 2 open bugs)
Details
Attachments
(5 files)
Found in
- 128.0a1 (2024-05-29)
Affected versions
- 128.0a1 (2024-05-29)
Tested platforms
- Affected platforms: Windows 10x64
- Unaffected platforms: Ubuntu 23, macOS
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
Unfortunately, I don’t have the steps to reproduce this issue. I think that sometimes after Firefox is closed it will delete the clipboard data. This happens very intermittently. I have one deleted clipboard data available on my computer and I can reproduce the issue every time I use it but I don’t know how to share it.
Expected result
- The page does not get unresponsive.
Actual result
- Page becomes unresponsive after pasting deleted clipboard data.
Regression range
- Not a regression. New implementation.
Additional notes
- Attached a screen recording.
- S4 due to intermittency and the low chance of reproducing.
Assignee | ||
Comment 1•4 months ago
|
||
This sounds a lot like bug 1888498, which I thought I had fixed...
Assignee | ||
Comment 2•4 months ago
|
||
:atrif - If you're able to reproduce this, can you turn on logging by:
- Navigating to about:logging
- Set the "New log modules:" field to "contentanalysis:5"
- Under "Logging output", select "Logging to a file"
- Click "Set log modules"
Then reproduce the issue and look at the file listed in the "New file name:" text field - it should have some logging information which might help us see what's going on. Thanks!
Reporter | ||
Comment 3•4 months ago
|
||
(In reply to Greg Stoll :gstoll from comment #2)
:atrif - If you're able to reproduce this, can you turn on logging by:
- Navigating to about:logging
- Set the "New log modules:" field to "contentanalysis:5"
- Under "Logging output", select "Logging to a file"
- Click "Set log modules"
Then reproduce the issue and look at the file listed in the "New file name:" text field - it should have some logging information which might help us see what's going on. Thanks!
Hello!
I tried to make a log file but the only thing logged in the file is [Parent 29344: Main Thread]: D/contentanalysis Local DLP Content Analysis is active
I followed the next steps:
- Navigated to about:logging and set "New log modules:" field to "contentanalysis:5"
- Select "logging to a file" and click "set log modules".
- Clicked "Start Logging" then reproduced the issue
- Clicked "Stop logging" and open the log file.
I have attached a screen recording as well. Am I doing something wrong here? Thank you in advance!
Assignee | ||
Comment 4•4 months ago
|
||
Hmm, it looks like you're doing the right things (and the fact that you see anything in the file means that it's at least sort of working :-) ). If you follow the steps to turn on logging and then paste a non-empty string, do you see more in the log file?
It's possible that something is going wrong so early that nothing is getting logged.
Reporter | ||
Comment 5•4 months ago
•
|
||
(In reply to Greg Stoll :gstoll from comment #4)
Hmm, it looks like you're doing the right things (and the fact that you see anything in the file means that it's at least sort of working :-) ). If you follow the steps to turn on logging and then paste a non-empty string, do you see more in the log file?
It's possible that something is going wrong so early that nothing is getting logged.
Yes, this is working as expected if pasting non-empty content... Nothing is logged when I reproduce the issue with an empty string tho... If more information is needed please let us know.
Assignee | ||
Comment 6•4 months ago
|
||
OK, that is helpful, thank you!
Assignee | ||
Comment 7•4 months ago
|
||
I was able to reproduce this by manually changing the pasted text to empty in the debugger.
Assignee | ||
Comment 8•4 months ago
|
||
Comment 10•4 months ago
|
||
bugherder |
Reporter | ||
Comment 11•4 months ago
|
||
Verified fixed with Firefox 129.0a1 (20240612215151) on Windows 10x64. Pasting an empty string will no longer make the page unresponsive.
Comment 12•4 months ago
|
||
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
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 13•4 months ago
|
||
No (although we will be uplifting to ESR next cycle)
Reporter | ||
Updated•4 months ago
|
Updated•3 months ago
|
Assignee | ||
Comment 14•24 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D212961
Updated•24 days ago
|
Comment 15•24 days ago
|
||
esr128 Uplift Approval Request
- User impact if declined: In weird cases pasting an empty string with DLP active can make Firefox hang
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: n/a
- Risk associated with taking this patch: low
- Explanation of risk level: just affects DLP
- String changes made/needed: no
- Is Android affected?: no
Updated•24 days ago
|
Comment 16•23 days ago
|
||
uplift |
Updated•23 days ago
|
Reporter | ||
Comment 17•19 days ago
|
||
Verified fixed with Firefox 128.3.0esr (20240906145046) on Windows 10x64. The page is responsive after pasting an empty clipboard.
Description
•