Closed Bug 1581966 Opened 6 years ago Closed 6 years ago

GeckoView seems to get stuck in a redirect loop when viewing shortened Google Form links

Categories

(GeckoView :: General, defect)

defect
Not set
normal

Tracking

(firefox70 affected, firefox71 affected, firefox72 affected)

RESOLVED MOVED
Tracking Status
firefox70 --- affected
firefox71 --- affected
firefox72 --- affected

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

STR: Open this link in Firefox Preview: https://forms.gle/x88jfA4hhiqvUooR8

The page gets stuck in a redirect loop. I can't reproduce this on desktop.

Bug sat in the previous component for a month with no action. I'm going to move it to another component to see if someone going to look at it...

Component: Document Navigation → Networking: HTTP

I took a look at the 302 response:

10-21 17:15:48.240  3936  3982 I Gecko   : HTTP/2.0 302
10-21 17:15:48.240  3936  3982 I Gecko   : server: nginx
10-21 17:15:48.240  3936  3982 I Gecko   : content-type: application/binary
10-21 17:15:48.240  3936  3982 I Gecko   : cache-control: no-cache, no-store, max-age=0, must-revalidate
10-21 17:15:48.240  3936  3982 I Gecko   : pragma: no-cache
10-21 17:15:48.240  3936  3982 I Gecko   : expires: Mon, 01 Jan 1990 00:00:00 GMT
10-21 17:15:48.240  3936  3982 I Gecko   : location: intent://forms.gle/x88jfA4hhiqvUooR8#Intent;package=com.google.android.gms;action=com.google.firebase.dynamiclinks.VIEW_DYNAMIC_LINK;scheme=https;S.browser_fallback_url=https://docs.google.com/forms/d/e/1FAIpQLSc5hJ2InKx3WpKZSCu7StFSePy9qKY9707yVEvELW_eE8PNxA/viewform%3Fusp%3Dsend_form;end;
10-21 17:15:48.240  3936  3982 I Gecko   : content-security-policy: script-src 'nonce-c5BrduI9xImOGn0oxCHkvw' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /_/DurableDeepLinkUi/cspreport;worker-src 'self', script-src 'nonce-c5BrduI9xImOGn0oxCHkvw' 'self' 'unsafe-eval' https://apis.google.com https://ssl.gstatic.com https://www.google.com https://www.gstatic.com https://www.google-analytics.com https://www.googleapis.com/appsmarket/v2/installedApps/;report-uri /_/DurableDeepLinkU

The location header shows that the server returns a Firebase Dynamic link and it seems that GeckoView doesn't handle this well.
Hence, change the product to GeckoView.

Component: Networking: HTTP → General
Product: Core → GeckoView

I can reproduce this in Fenix. The form page gets stuck in a redirect loop.

It seems like there is something special about the forms.gle redirects on Android. In Fennec, Focus (GV), and Klar (WebView), tapping the forms.gle link above causes Android to ask if it can open the forms page in my default browser. In Fenix Nightly and R-B, tapping the link shows a brief flash of loading bar animation but the browser stays on this bug page.

This likely just comes down to Fenix not handling intent:// URLs.

Is forms.gle sending a different redirect to Gecko than to Chrome? Kevin recalls a similar Google Sheets bug. He said he'd look for that bug.

Flags: needinfo?(kbrosnan)

This is a Fenix bug. Fenix needs to add support for intent URIs, or at least recognize them so we don't get stuck in an infinite loop.

https://github.com/mozilla-mobile/fenix/issues/5664
https://github.com/mozilla-mobile/fenix/issues/4322

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(kbrosnan)
Resolution: --- → MOVED
You need to log in before you can comment on or make changes to this bug.