Closed Bug 1654787 Opened 4 years ago Closed 2 years ago

Support the --disable-pinch command line option

Categories

(Core :: Panning and Zooming, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox-esr91 --- fixed
firefox101 --- fixed

People

(Reporter: alex.fdm, Assigned: mkaply)

References

Details

Attachments

(1 file)

I have an application that runs in --kiosk mode on an unattended kiosk. My problem is that some users are pinch-zooming the app (probably by mistake), and it remains zoomed until someone goes there to fix it.
I suggest you add an equivalent to Chrome's --disable-pinch command line option. And even enable it by default with --kiosk.

Summary: Support --disable-pinch command line option → Support the --disable-pinch command line option

The Bugbug bot thinks this bug should belong to the 'Core::Panning and Zooming' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Panning and Zooming
Product: Firefox → Core

This was filed before we have smooth pinch zooming, so this was filed about reflow zooming.

Although not a command line, can you try setting mousewheel.with_control.action = 0 and apz.allow_zooming = false? That should fix what you describe. (It will also disable zooming when using the mouse wheel + ctrl key if that matters to you.)

Flags: needinfo?(alex.fdm)
See Also: → 1653959

Yes, this would work. As did my workaround of disabling multi-touch on the driver. But this issue is not about a workaround, it is about feature parity. Chrome has a useful command line option that I believe Firefox should have too.

Flags: needinfo?(alex.fdm)

Controlling it via prefs is not a work around any more than having a command line option is a work around. In fact controlling it via prefs has many advantages over a command line option, you don't have to pass the command line every time for one.

Controlling it via prefs is not a work around any more than having a command line option is a work around.

I don't understand this statement. What other option is there?

If you're already passing a kiosk parameter, you can pass a disable-pinch parameter.

(In reply to Mike Kaply [:mkaply] from comment #6)

Controlling it via prefs is not a work around any more than having a command line option is a work around.

I don't understand this statement. What other option is there?

Comment 4 said that using prefs to resolve this issue is a work around. I am saying that using prefs are no more of a work around then having a command line option. They are both ways to change Firefox's behaviour to get what you want. So if one is a work around the other is a work around as well.

In my specific case, I have infrastructure in place to distribute updated startup scripts with new command line options to all of hundreds of kiosks. I would have to change browser configuration by hand on each one.

Mike, you mentioned you might be interested in implementing this. Please feel free to move it to a better component if you'd like. I'm happy to help with getting APZ pinching to respect this option.

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

Yeah, it's on my list. I'm thinking we add a pref explicitly around pinch zooming and then control with the command line param.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/a675665b9a84
Allow disabling pinching from the command line. r=botond
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Comment on attachment 9272387 [details]
Bug 1654787 - Allow disabling pinching from the command line. r?botond

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Parity with Firefox 101
  • User impact if declined: No disable pinch feature
  • Fix Landed on Version: 101
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Sets some prefs based on command line.
Attachment #9272387 - Flags: approval-mozilla-esr91?

Comment on attachment 9272387 [details]
Bug 1654787 - Allow disabling pinching from the command line. r?botond

Doesn't change any default behaviors but allows better lockdown in restricted environments. Approved for 91.10esr.

Attachment #9272387 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: