Description of problem: After upgrading from Fedora 30 to 31, Firefox showed two problems. This is one of them. I use the print dialog of FF to save files of web pages rather than sending them to the printer. This seems to save web site pages into PDF files. I need text copied by another application to the clipboard to also paste into the Print to File file name edit control. How reproducible: Steps to Reproduce: 1. Open a text editor and paste any random text you feel like so long as it is valid for a file name. 2. Open the FF browser and browse to any site you wish. 3. Click the File -> Print (Ctl-P) to print the page. 4. Select Print to file. 5. Click the file control to bring up the file name dialog. 6. Move to the text editor and select the random text you typed in step 1. Select all the text and copy it to the clipboard. 7. Back to FF and try to paste the text into the file name of the dialog. *It does nothing on my system.* 8. If you close the print dialog (no need to print anything) then select some text on the web page you are trying to print. 9. Now click the File -> Print menu again to bring up the print dialog. 10. Select Print To File again. 11. Now try to past the text from the web page into the file name control. It works on my system. Actual results: Nothing happens. Expected results: I'm expecting the text from the clipboard to be pasted into the file name edit box of the print to file dialog. Additional info: I disabled all my add-ons and the problem persists.
I meant to say 'type' any random text into your text editor so long as its a valid file name.
The problem persists even after I've upgraded to FC32. Using FC32 "Text Editor" does not exhibit this problem.
It's perhaps because we use gtk_dialog_run() which runs nested main event loop which does not handle our clipboard code.
Moved upstream - https://bugzilla.mozilla.org/show_bug.cgi?id=1635718