Open Bug 1486613 Opened 6 years ago Updated 2 years ago

Provide extensions with a way to handle gestures

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

There are preferences that can be used for this (browser.gesture.twist.left/right, though bug 1478626 kinda broke those and we may need a different mechanism).
(In reply to Boris Zbarsky [:bzbarsky, bz on IRC] from comment #0)
> There are preferences that can be used for this
> (browser.gesture.twist.left/right, though bug 1478626 kinda broke those and
> we may need a different mechanism).

Extensions can switch tabs themselves if we provide them with a way to handle the gesture.
Severity: normal → enhancement
Blocks: 1478626
Product: WebExtensions → Firefox
Product: Firefox → WebExtensions
Summary: Add support for switching tabs via a "twist" gesture on a trackpad or touch device → Provide extensions with a way to handle "twist" gestures
Priority: -- → P5
We should probably prioritize this higher than P5. People are using hidden prefs to do this, which is wrong in several ways:

- it's only available to a minority of users who are comfortable with about:config

- it's limiting because it only works with <command> elements that we happen to ship

- it might break as the future of <command> element support is uncertain (bug 1486888)
Blocks: 1486888
Priority: P5 → --
Why is this a webextension issue? It seems like it is just part of the pointer gesture stuff.

https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events/Pinch_zoom_gestures
(In reply to Shane Caraveo (:mixedpuppy) from comment #3)
> Why is this a webextension issue? It seems like it is just part of the
> pointer gesture stuff.
> 
> https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events/
> Pinch_zoom_gestures

I'm not sure what you're asking. We currently allow customization via the browser.gesture.* hidden prefs and we'd rather let webextensions handle that. I'm pretty sure the API you mention isn't accessible to webextensions in the browser chrome window, is it?
Flags: needinfo?(mixedpuppy)
Summary: Provide extensions with a way to handle "twist" gestures → Provide extensions with a way to handle gestures
I'll set this to P3, because the risks in #c2 are real, but as far as our roadmap is concerned, this isn't a priority unless something about/until <command> elements changes (and since this is only became acute when bug 1478626 was landed).

Setting NI to mconca, in case he wants to prioritize this enhancement in advance. The real driver for this would appear to be bug 1486888, which is a P1.

[There is nothing preventing another team from creating this API (or extending the commands API, which is probably most appropriate), especially if there's other relevant changes coming from that team.]
Flags: needinfo?(mconca)
Priority: -- → P3
Flags: needinfo?(mixedpuppy)
We might need some docs about this at some point.
Keywords: dev-doc-needed
I agree with the P3 priority, given the dependencies.
Flags: needinfo?(mconca)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.