Closed Bug 1941030 Opened 12 days ago Closed 7 days ago

pdfjs.enableScripting does not exist on all Android browsers

Categories

(GeckoView :: PDF Viewer, defect, P1)

All
Android
defect

Tracking

(firefox134 verified, firefox135 verified, firefox136 verified)

VERIFIED FIXED
136 Branch
Tracking Status
firefox134 --- verified
firefox135 --- verified
firefox136 --- verified

People

(Reporter: jonalmeida, Assigned: calixte, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached file pdftris.pdf

Steps to reproduce

  1. Open the attached PDF on any of the Android browsers.
  2. 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

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&regexp=false
so I wonder if it's correct for Android.
:nalexander, what do you think ?

Flags: needinfo?(nalexander)
Assignee: nobody → cdenizet
Severity: -- → S2
Status: NEW → ASSIGNED
Flags: needinfo?(nalexander)
Priority: -- → P1
Regressed by: 1940155
Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d7613d0e977a Add the pdfjs prefs file to omni.ja when building for Android r=geckoview-reviewers,nalexander,calu
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

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 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(cdenizet)
Attachment #9460132 - Flags: approval-mozilla-beta?

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
Flags: qe-verify+
Attachment #9460132 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9460491 - Flags: approval-mozilla-release?

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
Attachment #9460491 - Flags: approval-mozilla-release? → approval-mozilla-release+

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.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: