Closed Bug 1889569 Opened 2 years ago Closed 8 months ago

`Print Frame...` and `Print Selection...` are displayed even if print.enabled is set to false

Categories

(Firefox :: Enterprise Policies, defect, P3)

Firefox 120
defect

Tracking

()

VERIFIED FIXED
144 Branch
Tracking Status
firefox-esr140 --- verified
firefox144 --- verified
firefox145 --- verified

People

(Reporter: 6k64x4ma, Assigned: mkaply)

References

Details

Attachments

(2 files)

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

Steps to reproduce:

  1. Set print.enabled to false in about:config.
  2. Right-click on a frame, or, select some text and right-click.

Actual results:

  • Context menu has Print Frame... and Print Selection....
    I can print pages from these menu items.

Expected results:

  • I think these menu items should be disabled or hidden.
Component: Untriaged → Enterprise Policies
Depends on: 1854298
Assignee: nobody → gregp
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

I noticed that "Print page" and "Save page as PDF" in Quick Actions are also not disabled.

Where are the Quick Actions?

Type "print" or "pdf" in the address bar. (Only enabled in EARLY_BETA_OR_EARLIER)

Severity: -- → S3
Priority: -- → P3

Greg, do you want to do this or do you want me to?

Attachment #9509256 - Flags: approval-mozilla-release?
Attachment #9509256 - Flags: approval-mozilla-release? → approval-mozilla-beta?
Attachment #9509256 - Flags: approval-mozilla-beta?
Pushed by mozilla@kaply.com: https://github.com/mozilla-firefox/firefox/commit/b00dabe7bbf1 https://hg.mozilla.org/integration/autoland/rev/e14fd2f22940 Disable more print entrypoints when print is disabled. r=gregp,urlbar-reviewers,adw
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9dd1ac01f705 https://hg.mozilla.org/integration/autoland/rev/aa60b8bbd1f9 Revert "Bug 1889569 - Disable more print entrypoints when print is disabled. r=gregp,urlbar-reviewers,adw" for causing bc failures @ browser_policy_trackingprotection.js
Flags: needinfo?(gregp) → needinfo?(mozilla)

Amateur hour over here. I accidentally including a different patch with this one.

Fixing.

Flags: needinfo?(mozilla)
Pushed by mozilla@kaply.com: https://github.com/mozilla-firefox/firefox/commit/8904f18be4e3 https://hg.mozilla.org/integration/autoland/rev/50253c0af5d1 Disable more print entrypoints when print is disabled. r=gregp,urlbar-reviewers,adw
Assignee: gregp → mozilla
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
QA Whiteboard: [qa-ver-opt-c145/b144]
QA Contact: oardelean

Issue is reproducible on a 2025-08-26 Firefox Nightly build on Windows 10, using the STR from Comment 0.

Verified as fixed on Firefox Nightly 145.0a1 and Firefox 144.0b2 on Windows 10, Ubuntu 22, macOS 15.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-opt-c145/b144] → [qa-ver-done-c145/b144]
See Also: → 1989252

firefox-esr140 Uplift Approval Request

  • User impact if declined: Consistency on ESR with 140
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: None
  • Risk associated with taking this patch: low
  • Explanation of risk level: Only affects if printing is disabled
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9517883 - Flags: approval-mozilla-esr140?
Attachment #9517883 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+

Verified as fixed on Firefox ESR 140.4.0 on Windows 10, Ubuntu 22, macOS 15.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: