Bug 1377254

Summary: gnome-documents opens every google document in new Firefox window
Product: Red Hat Enterprise Linux 7 Reporter: Martin Krajnak <mkrajnak>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: debarshir, jkoten, mkrajnak, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 11:32:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
alert message
none
Standalone reproducer none

Description Martin Krajnak 2016-09-19 10:05:55 UTC
Created attachment 1202420 [details]
alert message

Description of problem:
Select multiple Google documents and click on "Open with Google Docs".
Only one Firefox window is opened, for every other window there is an error message that Firefox is already running. 

Version-Release number of selected component (if applicable):
gnome-documents-3.14.3-3.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.login to Google account via goa
2.open gnome-documents
3.select 2 or 3 google documents with right click
4.Click "Open with Google Docs"

Actual results:
Firefox window with document appears, afterwards 1 or 2 windows with alert message, that you should close Firefox (see screenshot).

Expected results:
Documents should open Firefox window with several tabs for each document.

Additional info:
Make sure that Firefox is not running when you try to open documents, in that case documents are opened in existing Firefox window in new tabs.

Comment 2 Debarshi Ray 2017-10-17 16:45:02 UTC
Created attachment 1339808 [details]
Standalone reproducer

Comment 3 Debarshi Ray 2017-10-17 16:49:32 UTC
Firefox is unable to handle a large number of incoming URI arguments while it is starting up. For example, see the attached standalone reproducer which tries to open 50 URIs one after the other.

I am not sure gnome-documents (or any other application) can reliably work around it. We could add a timeout but that's just going to be racy. Depending on the nature of the system, it will either make things slower than they need to be, or won't be slow enough.

Comment 4 Debarshi Ray 2017-10-17 17:34:03 UTC
I tried the same reproducer with Epiphany on Fedora. While it managed to freeze my system for a while (almost 6 year old laptop with spinning HDD), it did open all 50 of those URIs.

So, I will hesitantly blame Firefox for this one.

Comment 6 Martin Stransky 2017-10-17 18:15:11 UTC
Sure, that's probably Firefox fault and may be fixed by D-Bus implementation - https://bugzilla.mozilla.org/show_bug.cgi?id=1283055

Comment 7 Martin Krajnak 2018-06-26 11:32:18 UTC
Looks fine in 7.6, two windows are successfully opened and documents are viewed

firefox-52.8.0-1.el7_5.x86_64
gnome-documents-3.28.1-1.el7.x86_64