Page MenuHomePhabricator

Bug 1889569 - Disable more print entrypoints when print is disabled. r?gregp
ClosedPublic

Authored by mkaply on Aug 25 2025, 2:29 PM.
Referenced Files
Unknown Object (File)
Sun, Nov 8, 12:55 PM
Unknown Object (File)
Tue, Nov 3, 12:50 PM
Unknown Object (File)
Mon, Nov 2, 11:06 PM
Unknown Object (File)
Sep 26 2026, 12:58 AM
Unknown Object (File)
Aug 21 2026, 12:36 AM
Unknown Object (File)
Aug 11 2026, 2:27 PM
Unknown Object (File)
Jul 18 2026, 7:34 AM
Unknown Object (File)
Jul 15 2026, 10:11 PM
Subscribers

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

I didn't add an automated test for this. It didn't feel necessary.

This wasn't a bug, just missed when this feature was first done.

The changes to QuickActions won't happen unless there is a restart. I think that is fine.

mkaply changed the repository for this revision from rFIREFOXRELEASE firefox-release to Restricted Repository.Aug 26 2025, 12:45 PM
diannaS changed the repository for this revision from Restricted Repository to rFIREFOXBETA firefox-beta.Aug 26 2025, 12:46 PM
Standard8 added inline comments.
browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs
333–338

I think this would probably be better implemented as a isVisible option on the action itself - that way it would be consistent with the rest of the actions.

I think we'd then want to add the preference to UrlbarPrefs.PREF_OTHER_DEFAULTS and use the preference from there, @adw is that correct for our standard urlbar code?

Also, shouldn't the repository be firefox-autoland?

Also, shouldn't the repository be firefox-autoland?

Yeah, I screwed that up when I did the initial patch. I'll fix (although UI won't update - that's a bug)

browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs
333–338

I completely missed the isVisible. That's definitely the right way to do it;

mkaply added inline comments.
browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs
333–338

I'll let @adw chime in on the PREF_OTHER_DEFAULTS. I'll update if necessary

browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs
333–338

IMO it's fine to use Services.prefs directly, especially for a pref that isn't widely accessed in urlbar code, so thumbs up from me. (If you did want to access it via UrlbarPrefs, adding it to that const is the way to do that.)

@mkaply I'll skip setting a testing tag since this patch doesn't have one but I don't know if it needs one? Could you set an appropriate one please?

This revision is now accepted and ready to land.Aug 26 2025, 9:36 PM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!

This revision is now accepted and ready to land.Aug 27 2025, 9:59 PM