gecko-dev/browser
Andrew Nicols 8eacaa4fde Bug 1686663: Set the value of buttons based on provided event r=smaug
Currently the default value of buttons is set to
MOUSE_BUTTONS_NOT_SPECIFIED, which defers calculation of the value to
the DOMWindowUtils GetButtonsFlagForButton function. This calculates a
default value based upon the value of the button key.

By specifying a default button value of 0, which has a meaning of
ePrimary, the buttons value is calculated as the
ePrimaryFlag (1), suggesting that a button was pressed.

This patch changes the behaviour to set the value of buttons based on
the original value of button before the default was applied. The value
of buttons also considers the event type to ensure that a mousedown
event has a default value calculated by DOMWindowUtils.

With the new behaviour:
- if a value was explicitly set for buttons, this is used
- if a value was explicitly set for button, then the not-specified
  constant is used to defer calculation to DOMWindowUtils
- if an event type was specified and that event type was not the
  'mousedown' event, then the no-button constant is used
- if an event type was not specified or it was for the 'mousedown'
  event, then the not-specified constant is used to defer calculation to
  DOMWindowUtils

Differential Revision: https://phabricator.services.mozilla.com/D101690
2021-02-04 00:59:54 +00:00
..
actors Bug 1685525 - Update or add a trigger capable of targeting newtab/homepage for messages r=k88hudson 2021-02-01 22:01:52 +00:00
app Bug 1681290 - Enable remote setting backend for top sites by default in Nightly 87. r=mikedeboer 2021-02-03 14:06:16 +00:00
base Bug 1686663: Set the value of buttons based on provided event r=smaug 2021-02-04 00:59:54 +00:00
branding Bug 1677801, adds UTM parameters to about dialog r=bigiri 2020-12-07 21:16:33 +00:00
components Bug 1689055: Avoid autofilling during IME composition. r=mak 2021-02-04 00:15:37 +00:00
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-01-25 15:42:01 +00:00
docs Bug 1681382 - Drop BrowserSearch.record*SearchInTelemetry and call BrowserSearchTelemetry direct. r=daleharvey 2020-12-10 23:40:58 +00:00
extensions Bug 1687944 - log a message to the web console when users opt in to allowing trackers via shims; r=denschub,webcompat-reviewers 2021-01-26 19:49:27 +00:00
fonts Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
fxr Bug 1660848 - Add a check for updates option to application menus r=fluent-reviewers,jaws,harry,Gijs,flod,mkaply 2021-01-15 14:26:58 +00:00
installer Bug 1660198 - Part 3: Document installation_telemetry.json. r=bytesized 2021-01-30 00:06:28 +00:00
locales Bug 1690029, move image related context menu commands into a single section and remove view image info command, r=Gijs,fluent-reviewers 2021-02-03 17:56:25 +00:00
modules Bug 1660198 - Part 2: Record installation telemetry event. r=bytesized 2021-01-30 00:00:26 +00:00
themes Bug 1690359 - Move task manager to help menu r=mconley,fluent-reviewers,flod 2021-02-03 16:46:57 +00:00
tools/mozscreenshots Backed out 2 changesets (bug 1596897) for bc failures on browser_search_discovery.js 2021-01-30 04:01:21 +02:00
.eslintrc.js
LICENSE
Makefile.in
app.mozbuild
build.mk
confvars.sh
defs.mk
l10n-registry.manifest
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
moz.configure Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00