Cannot download translated PDF files from Google Translate
Categories
(Web Compatibility :: Site Reports, defect, P1)
Tracking
(Webcompat Priority:P2, Webcompat Score:6, firefox-esr128 unaffected, firefox-esr140141+ verified, firefox140+ verified, firefox141+ verified, firefox142+ verified)
People
(Reporter: szakan, Assigned: farre)
References
(Regression, )
Details
(Keywords: regression, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat:sightline])
User Story
platform:windows,mac,linux impact:feature-broken configuration:general affects:all branch:release diagnosis-team:dom user-impact-score:450
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
dmeehan
:
approval-mozilla-release+
dmeehan
:
approval-mozilla-esr140+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Steps to reproduce:
What did you do?
I used Google Translate (https://translate.google.pl/?sl=en&tl=pl&op=translate) to upload and translate a PDF file.
After the translation finished, I clicked the "Download" button ("Pobierz").
What happened?
Nothing happened — the file did not download. No download dialog appeared.
What did you expect?
The translated PDF should be downloaded, like it does in Chrome and stable Firefox.
Affected version:
- Firefox 140.0b8 (and earlier betas, e.g. 140.0b1)
- OS: [Twoja dystrybucja/system np. Ubuntu 24.04 / Windows 11]
Notes:
- In Firefox 127 stable: ✅ works
- In Chrome: ✅ works
- In Firefox 140 beta: ❌ broken
- Same result in Safe Mode and clean profile
Console output:
"JavaScript warning: unreachable code after return statement"
appears multiple times from an injected script.
Comment 1•7 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•7 months ago
|
| Reporter | ||
Comment 2•7 months ago
|
||
I think this may be misclassified. The issue only affects downloading a translated PDF in Google Translate, not general GTK UI behavior. It works in Firefox stable and Chrome. Possibly related to CSP, download handling, or scripting behavior.
| Reporter | ||
Comment 3•7 months ago
|
||
Affected version:
- Firefox 140.0b8 (and earlier betas, e.g. 140.0b1)
- OS (tested on multiple Linux distros):
- Debian 12 Bookworm
- Ubuntu 24.04 Noble Numbat
- Linux Mint 22.1
- MX Linux 23.6
- SparkyLinux 7.7
- LinuxQ83 Chopin 12.11
Comment 4•7 months ago
|
||
Krzysztof, since you claim this is a regression, would you be willing to help us figure out what change exactly broke it? There's a tool called mozregression that allows you to somewhat easily do that, check the linked website for instructions. That would help us a lot! :)
Updated•7 months ago
|
| Reporter | ||
Comment 5•7 months ago
|
||
Zewnętrzny html
<button class="VfPpkd-LgbsSe VfPpkd-LgbsSe-OWXEXe-INsAgc VfPpkd-LgbsSe-OWXEXe-Bz112c-M1Soyc Rj2Mlf OLiIxf PDpWxe LQeN7 sWFiQe" jscontroller="soHxf" jsaction="click:cOuCgd(preventDefault=true); mousedown:UX7yZ; mouseup:lbsD7e; mouseenter:tfO1Yc; mouseleave:JywGue; touchstart:p6p2H; touchmove:FwuNnf; touchend:yfqBxc; touchcancel:JMtRjd; focus:AHmuwe; blur:O22p3e; contextmenu:mg9Pef;mlnRJb:fLiPzd" data-idom-class="Rj2Mlf OLiIxf PDpWxe LQeN7 sWFiQe" jsname="hRZeKc" jslog="172762; track:JIbuQc;" style="--mdc-ripple-fg-size: 116px; --mdc-ripple-fg-scale: 1.7899973566985323; --mdc-ripple-fg-translate-start: 15.91668701171875px, -32px; --mdc-ripple-fg-translate-end: 39.16667175292969px, -40px;"><div class="VfPpkd-Jh9lGc"></div><div class="VfPpkd-J1Ukfc-LhBDec"></div><span class="notranslate VfPpkd-kBDsod uzHXHc" aria-hidden="true"><svg focusable="false" width="18" height="18" viewBox="0 0 24 24" class=" NMm5M"><path d="M4 15h2v3h12v-3h2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2m11.59-8.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5-1.41-1.41z"></path></svg></span><span jsname="V67aGc" class="VfPpkd-vQzf8d">Pobierz tłumaczenie</span></button>
selektor css
button.VfPpkd-LgbsSe:nth-child(2)
ścieżka css
html body#yDmH0d.tQj5Y.ghyPEc.IqBfM.ecJEib.EWZcud.EIlDfe.cjGgHb.d8Etdd.LcUz9d c-wiz.zQTmif.SSPGKf.kXN2zb.BIdYQ div.T4LgNb div.ToWKne c-wiz.MOkH4e.yF6Zo.MFKVse div.R5HjH c-wiz.k5v5Nb div.oLbzv c-wiz div.eTNoGb div div.RiZzuc div.ld4Jde div.PEVemc.FTPuBd button.VfPpkd-LgbsSe.VfPpkd-LgbsSe-OWXEXe-INsAgc.VfPpkd-LgbsSe-OWXEXe-Bz112c-M1Soyc.Rj2Mlf.OLiIxf.PDpWxe.LQeN7.sWFiQe
xpatch
/html/body/c-wiz/div/div[2]/c-wiz/div[3]/c-wiz/div[2]/c-wiz/div/div[1]/div/div[2]/div/button[1]
Comment 6•7 months ago
|
||
I got this regressor: Bug 1941725, which looks suspicious, yes.
However, to be more specific,mozregresson tool gave me this phab commit: https://phabricator.services.mozilla.com/D245896 It's the "test case" for Bug 1941725 that is a bit weird.
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 7•7 months ago
|
||
This is the regression window
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 8•7 months ago
|
||
| Assignee | ||
Comment 9•7 months ago
|
||
Updated•7 months ago
|
Updated•7 months ago
|
Comment 10•7 months ago
|
||
Comment 11•7 months ago
|
||
| bugherder | ||
Comment 12•7 months ago
|
||
Set release status flags based on info from the regressing bug 1941725
| Assignee | ||
Comment 13•7 months ago
|
||
Comment on attachment 9496263 [details]
Bug 1972100 - Only block sandboxed pdfs handled internally. r=smaug!
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Translating PDFs on Google Translate is broken.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See STRs
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small change covered by tests.
- String changes made/needed:
- Is Android affected?: No
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Google Translate is broken.
- User impact if declined: Translating PDFs on Google Translate is broken.
- Fix Landed on Version: 142
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small change covered by tests.
| Assignee | ||
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 14•7 months ago
•
|
||
I have reproduced the issue using Firefox 141.0a1 (20250623065250) on Win10, Ubuntu 24.04 and MacOS 15.5 and verified the fix using 142.0a1 (20250624211752).
Updated•7 months ago
|
Updated•7 months ago
|
Comment 15•7 months ago
|
||
| uplift | ||
Updated•7 months ago
|
Comment 16•7 months ago
|
||
Verified fixed on Beta 141.0b5 (20250701164013).
| Reporter | ||
Comment 17•7 months ago
|
||
In the beta version 141.0b5 it is good, PDF downloads from www.translate.google.com works
Comment 18•7 months ago
|
||
Comment on attachment 9496263 [details]
Bug 1972100 - Only block sandboxed pdfs handled internally. r=smaug!
Approved for 140.0.4
Comment 19•7 months ago
|
||
| uplift | ||
Updated•7 months ago
|
Comment 20•7 months ago
|
||
Verified fixed on Firefox 140.0.4 (20250703182918).
Comment 21•7 months ago
|
||
| uplift | ||
Comment 22•7 months ago
|
||
Comment on attachment 9496263 [details]
Bug 1972100 - Only block sandboxed pdfs handled internally. r=smaug!
Approved for 140.1esr
Updated•7 months ago
|
Comment 23•6 months ago
|
||
Verified fixed on ESR 140.1.0 (20250708174826)
Updated•6 months ago
|
Description
•