Closed Bug 1712044 Opened 5 years ago Closed 4 years ago

Firefox crashes on windows when pasting with an empty clipboard

Categories

(Core :: DOM: Editor, defect, P3)

Firefox 88
Desktop
Windows 10
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: pixartist.de, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

Steps to reproduce:

  • Have an empty clipboard
  • Paste into the firefox address bar

Actual results:

Firefox crashes (This application does not respond...)

Expected results:

Nothing
PS: No crash report file is generated, it's a hard crash and it's reproducable.

The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Address Bar

I'm not able to reproduce this. I'm using Firefox 88.0.1 on Windows 10. Could you describe what you mean by an empty clipboard? If the clipboard is truly empty, then the paste command is disabled, so pressing Ctrl+V doesn't do anything, and opening the context menu shows that the Paste command is disabled. When I press Ctrl+V in this state, nothing happens, as expected.

Or do you mean that the clipboard has a string that only contains spaces or line feeds or carriage returns? I tried different strings but couldn't get it to crash.

If there are any concrete steps to reproduce the problem that you left out, please comment on them. Please also try reproducing the problem in safe mode and a new profile.

https://support.mozilla.org/en-US/kb/diagnose-firefox-issues-using-troubleshoot-mode?redirectslug=troubleshoot-firefox-issues-using-safe-mode&redirectlocale=en-US
https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles

Flags: needinfo?(pixartist.de)

I think there might be a state in windows where the clipboard is technically empty but essentially contains zero text. Some programs allow copying of no characters. Windows clipboard view still shows no data in the clipboard and pasting in other applications did not do anything, but firefox still crashes. I am trying to reproduce this currently with no success but I have had this issue many times before. I will try to find a way today and if I do I will post it here.

Flags: needinfo?(pixartist.de)

PS: I realized I forgot to mention, pasting into ANY text field in firefox (also in websites) crashed the browser. Pasting into other applications did not do anything.

I could not yet reproduce this, but it did occur multiple times in the past for me. Maybe somebody else has had this issue as well?

Component: Address Bar → General
OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop

Still did not happen again, I will keep this ticket in a tab, as soon as I can reproduce it I will update the ticket.

Attached image clipboard.png

This was the content of my clipboard when I could reproduce this bug. Not sure ehat exactly it means but I could not restore it via "windows+v" as it was not logged by windows as "official" clipboard content. I have no clue how it got into my clipboard but pasting this into firefox immidiately crashes the entire application.

Hi pixartist.de,

In order to investigate this bug, I opened a txt document in Windows 10, typed some spaces and then copied it in Firefox browser. But I was unable to reproduce the issue reported.
As per your last comment it seems the issue is no longer reproducible on your end. I'll mark this bug as Resolved - Works for me in the meantime, but please feel free to reopen it in case you can reproduce it again. If you do, a screen-recording or more specific info (like steps to reproduce) will be very useful.

Thanks and regards,
Virginia

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME

Thanks Virginia, but let's keep this open for now -- pixartist says it happens intermittently, and the screenshot might be helpful.

I'll reopen this and move it to Core :: DOM: Editor since it's reproduceable in every text field in Firefox. I'm not sure if DOM: Editor is the right component ultimately but hopefully someone there can triage it further.

Status: RESOLVED → REOPENED
Component: General → DOM: Editor
Ever confirmed: true
Product: Firefox → Core
Resolution: WORKSFORME → ---

Some steps to reproduce here would be super useful.

Severity: -- → S3
Priority: -- → P3

reporter, do you happen to have crash reports for this issue?
See page about:crashes
If there are some which are related, could you paste the url here?

Flags: needinfo?(pixartist.de)

Couldn't reproduce this on Ubuntu with $ echo -n "" | xclip -t text/plain to mimic the behavior. Might be Windows-specific.

pixartist.de: did this occur again?

Error did not occur for a while now, I have a suspicion that it was a windows bug with corruped data in the clipboard.

Flags: needinfo?(pixartist.de)

(In reply to pixartist.de from comment #13)

Error did not occur for a while now, I have a suspicion that it was a windows bug with corruped data in the clipboard.

Firefox should gracefully handle also corrupted data. I'll close this issue since it didn't reoccur.

Feel free to reopen it, if it occurs again.

Status: REOPENED → RESOLVED
Closed: 5 years ago4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: