Bug 1377254 - gnome-documents opens every google document in new Firefox window
Summary: gnome-documents opens every google document in new Firefox window
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: firefox
Version: 7.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Martin Stransky
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-19 10:05 UTC by Martin Krajnak
Modified: 2018-06-26 11:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-26 11:32:18 UTC
Target Upstream Version:


Attachments (Terms of Use)
alert message (107.33 KB, image/png)
2016-09-19 10:05 UTC, Martin Krajnak
no flags Details
Standalone reproducer (376 bytes, text/plain)
2017-10-17 16:45 UTC, Debarshi Ray
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 1283055 0 None None None 2017-10-17 18:15:43 UTC

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


Note You need to log in before you can comment on or make changes to this bug.