Skip to content

Unable to do social login in latest Firefox browsers #6477

@apremkumar1989

Description

@apremkumar1989

[REQUIRED] Describe your environment

  • Mac OS, Mojave version 10.14.6
  • Firefox 102.0.1 (64-bit)
  • firebase js sdk version: 7.24.0
  • firebase auth

[REQUIRED] Describe the problem

When trying to do signin with redirect (social login: google/facebook) in Firefox with "Enhanced Tracking Protection" enabled(Default setting), not able to login successfully. But if we disable "Enhanced Tracking Protection" , we are able to login successfully.

While debugging, we found(in the following code) that we are getting result as user with null object after calling firebase auth getRedirectResult() post login with "Enhanced Tracking Protection" enabled. If we disable "Enhanced Tracking Protection", we are getting valid result object and able to login successfully.

var p = firebase.auth().getRedirectResult();
   p.then(function (result) {
      ...
   });

As observed in Firefox 102.0.1, "Enhanced Tracking Protection" is enabled by default. Our application users using latest Firefox browsers are impacted due to the default setting.

Steps to reproduce:
In firefox browser, open the application with "Enhanced Tracking Protection" enabled. Now try to login with a social login provider(google/facebook). After getting redirected to the application from firebase and social login provider, login fails.

Image: "Enhanced Tracking Protection" enabled
Screenshot 2022-07-27 at 1 22 59 PM

Image: "Enhanced Tracking Protection" disabled
Screenshot 2022-07-27 at 1 19 58 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions