pdfjs.enableScripting does not exist on all Android browsers
Categories
(GeckoView :: PDF Viewer, defect, P1)
Tracking
(firefox134 verified, firefox135 verified, firefox136 verified)
People
(Reporter: jonalmeida, Assigned: calixte, NeedInfo)
References
(Regression)
Details
(Keywords: regression)
Attachments
(4 files)
60.60 KB,
application/pdf
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
Steps to reproduce
- Open the attached PDF on any of the Android browsers.
- Attempt to play the tetris game by clicking the 'Start game' button.
Expected results
- PDF scripting is enabled and the game continues as expected, similar to desktop.
Actual results
- Clicking the button does nothing.
- The pref in about:config to allow this (
pdfjs.enableScripting
) is not there.
Additional information
- Device: Pixel 8a
- Browsers tested: Focus, Fenix, Reference Browser with 136, 135, and 134.
- calixte investigated this a bit over Slack:
if I create manually the pref pdfjs.enableScripting and set it to true then it works as expected
it used here: https://searchfox.org/mozilla-central/rev/29e186485fe1b835f05bde01f650e371545de98e/browser/installer/package-manifest.in#244-247 [updated to a permalink].
I tested scripting a while back and it worked so it's a regression
Assignee | ||
Comment 1•12 days ago
|
||
I wonder if the regressor could be the bug 1940155.
There are only few use of JS_PREFERENCE_PP_FILES
:
https://searchfox.org/mozilla-central/search?q=JS_PREFERENCE_PP_FILES&path=&case=false®exp=false
so I wonder if it's correct for Android.
:nalexander, what do you think ?
Assignee | ||
Updated•11 days ago
|
Assignee | ||
Comment 2•11 days ago
|
||
Assignee | ||
Comment 3•11 days ago
|
||
Comment 5•7 days ago
|
||
bugherder |
Comment 6•7 days ago
|
||
The patch landed in nightly and beta is affected.
:calixte, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox135
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 7•5 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D233982
Updated•5 days ago
|
Comment 8•5 days ago
|
||
beta Uplift Approval Request
- User impact if declined: Android users aren't able to fill pdf forms containing embedded JS
- Code covered by automated testing: no
- Fix verified in Nightly: no
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: Open the pdf in comment #0
- Risk associated with taking this patch: low
- Explanation of risk level: it's just a matter of embedding a pref file in omni.ja
- String changes made/needed: no
- Is Android affected?: yes
Updated•5 days ago
|
Updated•5 days ago
|
Assignee | ||
Comment 10•2 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D233982
Updated•2 days ago
|
Comment 11•2 days ago
|
||
release Uplift Approval Request
- User impact if declined: Android users aren't able to fill pdf forms containing embedded JS
- Code covered by automated testing: no
- Fix verified in Nightly: no
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: Open the pdf in comment #0
- Risk associated with taking this patch: low
- Explanation of risk level: it's just a matter of embedding a pref file in omni.ja
- String changes made/needed: no
- Is Android affected?: yes
Updated•2 days ago
|
Comment 12•2 days ago
|
||
uplift |
Updated•2 days ago
|
Comment 13•1 day ago
•
|
||
Verified as fixed on the latest builds:
- latest Nightly 136.0a1 from 2025-01-21;
- latest Beta 135.0b7;
- latest RC (134.0.2).
The pdf file can be opened, the game can be played on each build.
Devices used:
- Google Pixel 9 Pro XL (Android 15);
- Lenovo TB X606X (Android 10).
Marking the ticket as verified on 134, 135 and 136.
Updated•1 day ago
|
Description
•