Skip to content

Firefox: Google reCAPTCHA v3 initialization fails on form submission even with domain blacklisted #284

Description

@Homecomp

Extension: User-Agent Switcher and Manager
Browser: Mozilla Firefox
Target Site: https://www.lampandlight.co.uk/customer/account/login/

Issue Description:
When the extension is active in Firefox, attempting to submit forms protected by Google reCAPTCHA v3 (using Alpine.js) fails with a client-side JavaScript crash:

TypeError: can't access property "then", Y.A is null
executeGrecaptcha (login:4616)
recaptcha__en.js:1640
submitForm (login:4642)

Root Cause & Observations:

  1. Override of navigator properties causes Google's reCAPTCHA initialisation object (Y.A) to evaluate as null, causing .then() calls to throw a TypeError during form post.
  2. Adding the domain or gstatic.com to Black-List Mode does not prevent this failure, indicating content scripts or navigator property overrides execute before domain exclusion checks resolve.

Expected Behaviour:
Blacklisting a domain should completely bypass user-agent modifications and script injections so reCAPTCHA can execute its handshake cleanly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions