Closed Bug 2092195 Opened 15 days ago Closed 4 days ago

"Release Notes" of addons not appearing anymore, devtools claims JavaScript is disabled

Categories

(Toolkit :: Add-ons Manager, defect, P1)

Firefox 160
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dan23, Assigned: robwu)

References

Details

(Whiteboard: [addons-jira])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:160.0) Gecko/20100101 Firefox/160.0

Steps to reproduce

On about:addons , visit any addon you have installed and also patched at least once already, then in F12 (devtools) go to network, then click on "Release Notes" tab of on the about:addons page, now click on the "GET" request (shows status 200 for me, in green) in network tab, then click on "Response" tab.

Actual results

Message "A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser."
appears for every single addon now, in Fx 160.
In DevTools Network tab "Response" tab, "JavaScript is disabled in your browser. Please enable JavaScript to proceed." appears. (JS is **_NOT _**disabled in my browser)
in "Headers" tab, "Reponse Headers" section shows about 850 B, and "content-length:" to be a value of about "3000". (mentioning this here only in hopes that it helps staff in finding the bug)

Expected results

Should display last releasenotes entry from AMO page of the addon.
Also should not display "JavaScript is disabled in your browser. Please enable JavaScript to proceed."

Component: Untriaged → Add-ons Manager
Product: Firefox → Toolkit

I tried with uBlock Origin and looked at the network tab when Release Notes is opened.
A request is sent to https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions/1.76.4/updateinfo/

I suspect that the issue is that the backend serves a captcha challenge of some sort. I'll ask around to see what's going on. This is not intended behavior.

Ok. Hope it's not a malicious actor that intentionally disabled this feature.

I tracked down the root cause of this behavior by inspecting the response returned to about:addons when fetching the release notes.

Root Cause

Mozilla's CDN (Fastly) is intercepting background requests to https://mozilla.org<slug>/versions/<version>/updateinfo/ with a <title>Client Challenge</title> bot-mitigation interstitial instead of returning the changelog XHTML.
• Why DevTools claims JS is disabled: The Fastly challenge page contains a <noscript> block (<span>JavaScript is disabled in your browser.</span>) alongside inline challenge scripts that attempt to load /_fs-ch-1T1wmsGaOgGaSxcX/errors.js and /_fs-ch-1T1wmsGaOgGaSxcX/script.js?reload=true.
• Why about:addons shows the error: When rendered inside the restricted about:addons release notes frame, the external Fastly challenge scripts are blocked from loading/executing. This triggers the inline onerror handler, which unhides #loading-error ("A required part of this site couldn’t load...").
• Direct navigation works: Visiting the exact same /updateinfo/ URL in a normal top-level browser tab allows Fastly's challenge scripts to execute, passes the check, and displays the expected XHTML changelog.

Suggested Fix

Fastly's WAF/bot-protection rules for addons.mozilla.org need an exception for /versions/*/updateinfo/ endpoints (or requests originating from Firefox's Add-ons Manager) so they are not served the JS challenge interstitial.

I already know the root cause and am driving a fix here. Thanks for your patience.

Assignee: nobody → rob
Priority: -- → P1
Whiteboard: [addons-jira]

This should be fixed now. If not, please let me know.

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