Closed Bug 2042805 Opened 1 month ago Closed 11 hours ago

www.roadcard.com.br - The page is stuck in a loading state after clicking on the "Entrar" button (login)

Categories

(Web Compatibility :: Site Reports, defect, P2)

Desktop
Windows 10

Tracking

(Webcompat Priority:P1, Webcompat Score:8, firefox151 wontfix, firefox152 fixed, firefox153 fixed)

RESOLVED FIXED
Webcompat Priority P1
Webcompat Score 8
Tracking Status
firefox151 --- wontfix
firefox152 --- fixed
firefox153 --- fixed

People

(Reporter: rbucata, Unassigned)

References

()

Details

(Keywords: webcompat:needs-diagnosis, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs][webcompat-automation-test])

User Story

platform:windows,mac,linux,android
impact:site-broken
configuration:general
affects:all
branch:release
diagnosis-team:dom
user-impact-score:1000

Attachments

(2 files)

Environment:
Operating system: Windows 10
Firefox version: Firefox 151.0

Steps to reproduce:

  1. Navigate to: https://www.roadcard.com.br/sistemapamcard/?loadGaScript=load
  2. Insert any data into the login fields
  3. Click on the "Entrar" button and observe

Expected Behavior:
The page returns an error message

Actual Behavior:
The page is stuck in a loading state

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/221810

Attached video Chr vs FF

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Wed May 27 2026 10:13:16 GMT-0400 (Eastern Daylight Time) error = TypeError: can't access property "f1", ofdb is null error in the console

Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Priority: -- → P2
User Story: (updated)
Webcompat Priority: P2 → P1
Webcompat Score: 6 → 8
User Story: (updated)
Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs], [webcompat-automation-test]
Whiteboard: [webcompat-source:web-bugs], [webcompat-automation-test] → [webcompat-source:web-bugs][webcompat-automation-test]

Note: both a user name and password need to be entered to reproduce the problem.

(In reply to Ksenia Berezina [:ksenia] from comment #3)

Wed May 27 2026 10:13:16 GMT-0400 (Eastern Daylight Time) error = TypeError: can't access property "f1", ofdb is null error in the console

Here's the relevant JS:

function executeF1() {
	console.log(new Date() + " executeF1 ");
	try {
		var loginType = 'PF';
		var accountParams = {  
			    param1: document.getElementById('login').value,
			    param2: document.getElementById('topazAplicacaoTipo').value,
			    param3: 'NAOSEAPLICA',
			    f10Param: 'NAOSEAPLICA'
		};
		ofdb.f1(loginType, accountParams, executeF1Pos, executeF1Error);

https://www.roadcard.com.br/sistemapamcard/includes/script/gas.js?4=4
ofdb here is indeed null in Firefox, but non-null in chrome.

Working backwards, we diverge from Chrome a bit earlier, here, where ofdb gets assigned:


function setOFDBWrapper(idSessao, sigla) {
	try {
		console.log(new Date() + " setOFDB - INIT");
		if (typeof OFDB !== 'undefined') { 
            ofdb = new OFDB(sigla, idSessao, []); 
        } else { 
            console.warn(new Date() +'Script do OFDB não foi carregado corretamente'); 
        }

In Chrome, typeof OFDB is "function" there, and ofdb = new OFDB( steps into some functionality in https://rdc.dnofd.com/ofdb/OFDB.js .

In Firefox, typeof OFDB is "undefined", because that script got blocked by Firefox's ETP settings.

Aha. So this is an ETP issue.

If I turn off ETP for this site, then the issue goes away (because the OFDB script gets unblocked).

(In reply to Raul Bucata from comment #0)

Notes:

  • Reproduces regardless of the status of ETP

This^ does not match my experience, as I just noted. The issue goes away if I turn off ETP for this site.

Actually, in a brand-new fresh profile in latest Nightly, ETP does not block OFDB.js at all, and the site loads just fine.

But in release, I do still see OFDB.js being blocked. Maybe we (or Disconnect) have added an exemption that's made it into Nightly but not release?

sky, what's the correct way to triage/annotate WebCompat bugs that are due to ETP blockage (in default configuration)? (removing them from the "needs-diagnosis" bucket)

timhuang, do you know why I might be seeing this script ( https://rdc.dnofd.com/ofdb/OFDB.js ) blocked by ETP in release but not in Nightly? (default config in both) Do we use different disconnect lists there (or is Nightly using a more up-to-date-list), and do you know if there's a way to check the status of this script in this list, to confirm that this suspected-fix is on the way to release users?

Flags: needinfo?(tihuang)
Flags: needinfo?(sky)

It's because there is a recent update to move the domain "dnofd.com" from the analytics tracker to the content tracker. The list update hasn't touched the release channel. I can see if I can uplift the changes.

Flags: needinfo?(tihuang)

Thanks! As long as that's on its way to release in some form (whether uplifting or riding the trains), I think we can close this. Is there a bug associated with that change that we can mark this as depending-on / fixed-by?

Flags: needinfo?(sky) → needinfo?(tihuang)

Unfortunately, the changes happen on the delivery server. I've made the change on the server side, and it typically takes a day or two to deploy it to users. So, we can wait a day and verify whether the change fixes the issue, then close this bug.

Flags: needinfo?(tihuang)

This seems to be fixed now, as-expected per comment 12. I now get a "Incorrect username or password" message (as-expected), in Firefox 152.0.4 with a fresh profile, when following the STR here.

Status: NEW → RESOLVED
Closed: 11 hours ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: