Commit Graph

3543 Commits

Author SHA1 Message Date
Makoto Kato
4c21ee5564 Bug 1606885 - Add control+backspace/delete shortcut. r=geckoview-reviewers,snorp
According to [*1], Android's text control now supports ctrl+backspace and
ctrl+delete shortcut. So we should support it since Chrome already have this.

*1 f2b233d44c

Differential Revision: https://phabricator.services.mozilla.com/D71736
2020-04-21 14:55:16 +00:00
Coroiu Cristina
43be71277d Backed out 2 changesets (bug 1625500) for multiple failures on a CLOSED TREE
Backed out changeset 7d80233bcfcd (bug 1625500)
Backed out changeset 0a35b13dfcde (bug 1625500)
2020-04-17 15:36:05 +03:00
Gijs Kruitbosch
cc39a339a0 Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D68614
2020-04-17 11:41:49 +00:00
Jon Coppeard
e8f20aa073 Bug 1629843 - Mark XMLHttpRequestMainThread and CustomEvent classes as containing pointers to JS GC things in multiple zones r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D70901

--HG--
extra : moz-landing-system : lando
2020-04-14 16:28:29 +00:00
Emilio Cobos Álvarez
142b7d3c57 Bug 1629096 - Always honor scroll-margin / scroll-padding from nsFocusManager. r=masayuki
We should always do this, otherwise stuff may not end up being visible which is
not acceptable for focus navigation.

Differential Revision: https://phabricator.services.mozilla.com/D70541

--HG--
extra : moz-landing-system : lando
2020-04-13 11:34:48 +00:00
Edgar Chen
eef74ae73a Bug 1612821 - Remove pointerevent_pointerlock_after_pointercapture-manual.html test; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D69984

--HG--
extra : moz-landing-system : lando
2020-04-08 11:23:31 +00:00
Tom Tung
3d9adc5e80 Bug 1586761 - P4 - Use new methods in dom/file and dom/events; r=baku
For the usecases in dom/file, I'm not so sure how to get the global at
callsites, so I let aIsSystemPrincipal and aCrossOriginIsolated to be false for
now.

Differential Revision: https://phabricator.services.mozilla.com/D63905

--HG--
extra : moz-landing-system : lando
2020-03-25 14:14:37 +00:00
Andreas Farre
9e36af2ab6 Bug 1620594 - Part 3: Use default target for timers using SystemGroup. r=nika
Depends on D67632

Differential Revision: https://phabricator.services.mozilla.com/D67633

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:46 +00:00
Makoto Kato
9db27b76b5 Bug 1424284 - Part 3. mHTMLInputType should set valid value. r=masayuki
Actually, current code gets type attribute by `GetAttr`, But this cannot get
valid value. If no type attribute, `mHTMLInputType` will be empty. So if type
has invalid value, we should return `text` value instead.

Depends on D69349

Differential Revision: https://phabricator.services.mozilla.com/D69350

--HG--
extra : moz-landing-system : lando
2020-04-07 08:37:44 +00:00
Makoto Kato
9151f36c46 Bug 1424284 - Part 2. Expose inputmode even if not input element. r=masayuki
Actually inputmode attribute exposes <input> element only, current WHATWG spec
allows all HTML element. So inputmode in input context should be always set.

Also, if using contenteditable, this attribute is only used on editing host when
using other browsers (Blink and Webkit). It is
https://github.com/whatwg/html/issues/5322.

Depends on D69348

Differential Revision: https://phabricator.services.mozilla.com/D69349

--HG--
extra : moz-landing-system : lando
2020-04-07 08:37:35 +00:00
Brian Grinstead
30b9da5519 Bug 1623992 - Automated rewrite from chrome://global/skin/ to chrome://global/skin/global.css in markup r=marionette-reviewers,perftest-reviewers,mossop,whimboo,sparky
This was generated with

```
cp .gitignore .rgignore
rg -l -g '*.{html,xhtml}' 'href="chrome://global/skin/"' | xargs sed -i "" 's/href\="chrome:\/\/global\/skin\/"/href\="chrome:\/\/global\/skin\/global.css"/g'
```

Differential Revision: https://phabricator.services.mozilla.com/D67687

--HG--
extra : moz-landing-system : lando
2020-04-03 22:23:23 +00:00
Edgar Chen
c089c7a3a9 Bug 1627633 - Remove test_pointerevent_pointerlock_supercedes_capture-manual.html; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D69808

--HG--
extra : moz-landing-system : lando
2020-04-06 11:53:48 +00:00
Eric Rahm
974d76acac Bug 1626438 - Remove nsAutoPtr usage from dom/events. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D69108

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:07 +00:00
Cameron McCormack
de27b9bf00 Bug 1625797 - Replace RasterImage nsIProperties impl with accessors for hotspot coordinate. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D68737

--HG--
extra : moz-landing-system : lando
2020-03-31 21:16:39 +00:00
Oana Pop Rus
cb4fa960a7 Backed out changeset 903f141a89b9 (bug 1625797) for build bustages in Image.h on a CLOSED TREE
--HG--
extra : amend_source : 0d6a6cf13c97b91c263188df07e6975c341f7f81
2020-03-30 07:44:01 +03:00
Cameron McCormack
1487c292cc Bug 1625797 - Replace RasterImage nsIProperties impl with accessors for hotspot coordinate. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D68737

--HG--
extra : moz-landing-system : lando
2020-03-30 02:29:27 +00:00
Masayuki Nakano
fc75118988 Bug 1618091 - Make editor dispatch beforeinput event when Document.execCommand() is called by addon r=smaug
Discussion in
* https://github.com/w3c/input-events/issues/91
* https://github.com/w3c/editing/issues/200

Web developers must want to handle `beforeinput` events which are caused by
addons because addon's behavior is exactly same as default action of browser
from point of view of web apps.

Differential Revision: https://phabricator.services.mozilla.com/D68528

--HG--
extra : moz-landing-system : lando
2020-03-30 01:47:53 +00:00
Marcos Cáceres
c837a27119 Bug 1625384 - Remove window.onappinstalled event, as it was never used or shipped r=baku
removing this from spec

Differential Revision: https://phabricator.services.mozilla.com/D68506

--HG--
extra : moz-landing-system : lando
2020-03-27 08:28:09 +00:00
Andrew Sutherland
940bf90242 Bug 1545345 - Improve worker shutdown. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65132

--HG--
extra : moz-landing-system : lando
2020-03-27 22:40:58 +00:00
Ciure Andrei
2c62d81ee6 Backed out changeset 1911a0d1e751 (bug 1545345) for causing CallbackObject.cpp bustages CLOSED TREE 2020-03-27 21:47:15 +02:00
Andrew Sutherland
40755c31a8 Bug 1545345 - Improve worker shutdown. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65132

--HG--
extra : moz-landing-system : lando
2020-03-27 17:36:20 +00:00
Csoregi Natalia
cb7b1f507b Backed out changeset e608cbaf20d4 (bug 1545345) for assertion failures on WorkerPrivate.cpp. CLOSED TREE 2020-03-27 07:55:21 +02:00
Andrew Sutherland
2c52fdcd48 Bug 1545345 - Improve worker shutdown. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65132

--HG--
extra : moz-landing-system : lando
2020-03-13 18:22:37 +00:00
Emilio Cobos Álvarez
6a92c2e81d Bug 1623837 - Don't prevent focus switching for disabled form controls. r=masayuki,NeilDeakin
Otherwise the user can select, but if you're in an iframe the iframe won't be
correctly focused.

This also matches other browsers, see:

  data:text/html,<input autofocus><input disabled value=abc>
  data:text/html,<input autofocus><button disabled>Foo</button>

And so on. This effectively undoes bug 375008. We could make this more targeted
somehow, but I don't think it's worth it.

Differential Revision: https://phabricator.services.mozilla.com/D67597

--HG--
extra : moz-landing-system : lando
2020-03-26 18:23:36 +00:00
Jon Coppeard
c1e3671c97 Bug 1624810 - Set the multi-zone JS holder flag on appropriate cycle collected classes r=mccr8
Set the flag on the affected classes, which are:
 - CallbackTimeoutHandler
 - nsJSArgArray
 - CallbackObject
 - Console
 - MessageEvent
 - IDBIndexCursor
 - ExtendableMessageEvent
 - JSPurpleBuffer

Differential Revision: https://phabricator.services.mozilla.com/D68196

--HG--
extra : moz-landing-system : lando
2020-03-26 10:49:06 +00:00
Kristen Wright
1991a7758d Bug 1622111 - Convert dom.w3c_pointer_events.implicit_capture to a static pref. r=njn
Converts dom.w3c_pointer_events.implicit_capture to a static pref, removes the initializer in PointerEventHandler.

Differential Revision: https://phabricator.services.mozilla.com/D67204

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:31 +00:00
Kristen Wright
4132959c5f bug 1622111 - Convert intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition to static pref r=njn
Converts `intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition` to a static pref.

Differential Revision: https://phabricator.services.mozilla.com/D67203

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:13 +00:00
Kristen Wright
74a5665bf6 Bug 1622111 - Convert dom.datatransfer.mozAtAPIs to static pref. r=njn
Converts dom.datatransfer.mozAtAPIs to a static pref and adds the `do_not_use_directly` field, since the pref is used in combination with an additional check in `DataTransfer::MozAtAPIsEnabled`.

Differential Revision: https://phabricator.services.mozilla.com/D67202

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:15 +00:00
Kristen Wright
a2f61f37b1 Bug 1622111 - Convert dom.events.testing.asyncClipboard to static pref. r=njn
Converts dom.events.testing.asyncClipboard to a static pref. In its original usage, it called a getter that also added information to the log. This uses the do_not_use_directly field to indicate that the getter should still be used for logging.

Differential Revision: https://phabricator.services.mozilla.com/D67186

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:18 +00:00
Makoto Kato
21e2657268 Bug 1618763 - Part 1. mHTMLInputInputmode should be lower case except to mozAwesomebar. r=masayuki
Since we cannot use HTMLInputElement.GetInputMode since we still support
mozAwesomebar, inputmode attribute isn't sanitized. Since I would like to reduce
comparing cost, it should be lower case except to mozAwesomebar.

Differential Revision: https://phabricator.services.mozilla.com/D67770

--HG--
extra : moz-landing-system : lando
2020-03-23 10:36:25 +00:00
Dorel Luca
c8058b7dd4 Backed out 2 changesets (bug 1618763) for build bustage in checkouts/gecko/widget/gtk/IMContextWrapper.cpp. CLOSED TREE
Backed out changeset 0b9d1afee478 (bug 1618763)
Backed out changeset ac1ff4be2662 (bug 1618763)
2020-03-23 09:35:16 +02:00
Makoto Kato
7f74bada1a Bug 1618763 - Part 1. mHTMLInputInputmode should be lower case except to mozAwesomebar. r=masayuki
Since we cannot use HTMLInputElement.GetInputMode since we still support
mozAwesomebar, inputmode attribute isn't sanitized. Since I would like to reduce
comparing cost, it should be lower case except to mozAwesomebar.

Differential Revision: https://phabricator.services.mozilla.com/D67770

--HG--
extra : moz-landing-system : lando
2020-03-23 01:41:29 +00:00
Simon Giesecke
58d0171406 Bug 1620632 - Ensure nsTArray_Impl only declares a copy-constructor/assignment operator if E is copy-constructible. r=froydnj
To correctly implement this, it must be known on instantiation whether E is
copy-constructible, which is not the case if only a forward declaration is
available. This can be resolved either by making sure a full definition of E is
available, which is preferable. But in cases where this is not (easily) possible,
the information can be explicitly provided by the MOZ_DECLARE_COPY_CONSTRUCTIBLE
and MOZ_DECLARE_NON_COPY_CONSTRUCTIBLE macros. In particular, declarations for
IPDL-declared types are added to nsTArray.h itself, like it was already done
for MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR.

Differential Revision: https://phabricator.services.mozilla.com/D66244

--HG--
extra : moz-landing-system : lando
2020-03-20 17:13:51 +00:00
Henri Sivonen
1f2c022aca Bug 1572233 - Avoid moving the focus as if by keyboard when IME code merely probes for the next focusable. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D67462

--HG--
extra : moz-landing-system : lando
2020-03-20 11:45:49 +00:00
Mirko Brodesser
ad4d7454de Bug 1622752: annotate Selection::ScrollIntoView with MOZ_CAN_RUN_SCRIPT. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67002

--HG--
extra : moz-landing-system : lando
2020-03-16 21:04:46 +00:00
Masayuki Nakano
f92d37e44f Bug 1623239 - Make new methods of DataTransferItemList which were added by bug 1609603 refer mIndexedItems[0] rather than mItems r=smaug
Previously, `DataTransfer::GetTypes()` referred `DataTransferItemList::mIndexedItems[0]`
via `DataTransferItemList::MozItemsAt(0)`:
https://searchfox.org/mozilla-central/rev/678216c08807075a5616ea29c15950bb3090905b/dom/events/DataTransfer.cpp#337,343,349
https://searchfox.org/mozilla-central/rev/61f224ec08ddc6f9a93ac45c8c3c5f7159be7c2a/dom/events/DataTransferItemList.cpp#469-470,476

However, now, `DataTransferItemList::GetTypes()`, `DataTransferItemList::HasItem()` and
`DataTransferItemList::HasFile()` refers `DataTransferItemList::mItem`.  That's the
reason why the fix of bug 1609603 changed the behavior.

Differential Revision: https://phabricator.services.mozilla.com/D67420

--HG--
extra : moz-landing-system : lando
2020-03-19 16:03:27 +00:00
Emilio Cobos Álvarez
04828e3a4a Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

Differential Revision: https://phabricator.services.mozilla.com/D66464

--HG--
extra : moz-landing-system : lando
2020-03-19 13:18:16 +00:00
Stefan Hindli
5f419e4b50 Backed out 9 changesets (bug 1622111) for causing mochitest failures in dom/animation/test/mozilla/test_restyles.html CLOSED TREE
Backed out changeset c244160797f8 (bug 1622111)
Backed out changeset dd9209f6bd8b (bug 1622111)
Backed out changeset d694c9e7061f (bug 1622111)
Backed out changeset 486aae809f6d (bug 1622111)
Backed out changeset 709266168c41 (bug 1622111)
Backed out changeset ca0d47bb86a8 (bug 1622111)
Backed out changeset caa735c8bb91 (bug 1622111)
Backed out changeset 12397711ab25 (bug 1622111)
Backed out changeset b66002fd1480 (bug 1622111)
2020-03-19 02:47:51 +02:00
Kristen Wright
e771b4ad21 Bug 1622111 - Convert dom.w3c_pointer_events.implicit_capture to a static pref. r=njn
Converts dom.w3c_pointer_events.implicit_capture to a static pref, removes the initializer in PointerEventHandler.

Differential Revision: https://phabricator.services.mozilla.com/D67204

--HG--
extra : moz-landing-system : lando
2020-03-18 22:27:24 +00:00
Kristen Wright
eef87691dc bug 1622111 - Convert intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition to static pref r=njn
Converts `intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition` to a static pref.

Differential Revision: https://phabricator.services.mozilla.com/D67203

--HG--
extra : moz-landing-system : lando
2020-03-18 22:25:54 +00:00
Kristen Wright
92d93617df Bug 1622111 - Convert dom.datatransfer.mozAtAPIs to static pref. r=njn
Converts dom.datatransfer.mozAtAPIs to a static pref and adds the `do_not_use_directly` field, since the pref is used in combination with an additional check in `DataTransfer::MozAtAPIsEnabled`.

Differential Revision: https://phabricator.services.mozilla.com/D67202

--HG--
extra : moz-landing-system : lando
2020-03-18 22:19:06 +00:00
Kristen Wright
dcfcfe08a5 Bug 1622111 - Convert dom.events.testing.asyncClipboard to static pref. r=njn
Converts dom.events.testing.asyncClipboard to a static pref. In its original usage, it called a getter that also added information to the log. This uses the do_not_use_directly field to indicate that the getter should still be used for logging.

Differential Revision: https://phabricator.services.mozilla.com/D67186

--HG--
extra : moz-landing-system : lando
2020-03-18 18:22:10 +00:00
Mihai Alexandru Michis
58bc354025 Backed out changeset 9eeee9ec66d9 (bug 253870) for causing failures in browser_bug1261299.js
CLOSED TREE
2020-03-16 22:32:41 +02:00
Emilio Cobos Álvarez
9f28f89085 Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

Differential Revision: https://phabricator.services.mozilla.com/D66464

--HG--
extra : moz-landing-system : lando
2020-03-16 17:41:07 +00:00
Olli Pettay
a5de11adec Bug 1502529, compress touchmoves on IPC layer, r=masayuki
The patch adds similar to mousemove compression on IPC layer.
https://searchfox.org/mozilla-central/rev/49ed791eec93335abfe6c2880f84c324e73e47e6/dom/ipc/PBrowser.ipdl#764-774
Touch events can't be compressed all the time, because each touch event
may contain changes to several touches.
To disable compression in some cases, another IPC message is sent.
The messages have exactly the same arguments, but by changing the message type,
compression is disabled for that message on IPC layer.

The patch tries to take rather conservative approach by disabling compression
in many cases. Compression is enabled only if the same touches are being changed,
or old touches and some new touch are changed (so the changed touches are a superset of the old touches).


The patch does not do anything with PointerEvent.getCoalescedEvents(). That implementation
would be quite a bit different and riskier for the next coming Fenix release.

Differential Revision: https://phabricator.services.mozilla.com/D63261

--HG--
extra : moz-landing-system : lando
2020-03-11 00:31:31 +00:00
Edgar Chen
5fb541e9be Bug 1621934 - Remove test_pointerevent_setpointercapture_relatedtarget-manual.html; r=smaug
Depends on D66570

Differential Revision: https://phabricator.services.mozilla.com/D66572

--HG--
extra : moz-landing-system : lando
2020-03-12 19:20:02 +00:00
Edgar Chen
5d9d891ff2 Bug 1621930 - Remove test_pointerevent_pointerout_received_once-manual.html; r=smaug
Depends on D66569

Differential Revision: https://phabricator.services.mozilla.com/D66570

--HG--
extra : moz-landing-system : lando
2020-03-12 15:02:04 +00:00
Edgar Chen
9ac8f6cdb0 Bug 1621925 - Remove test_pointerevent_pointermove_on_chorded_mouse_button-manual.html; r=smaug
Depends on D66568

Differential Revision: https://phabricator.services.mozilla.com/D66569

--HG--
extra : moz-landing-system : lando
2020-03-12 15:01:46 +00:00
Edgar Chen
9e5b1f713a Bug 1621922 - Remove test_pointerevent_pointermove_isprimary_same_as_pointerdown-manual.html; r=smaug
Depends on D66567

Differential Revision: https://phabricator.services.mozilla.com/D66568

--HG--
extra : moz-landing-system : lando
2020-03-12 15:01:38 +00:00
Edgar Chen
e8539f63f0 Bug 1621918 - Remove test_pointerevent_pointermove-manual.html; r=smaug
Depends on D66566

Differential Revision: https://phabricator.services.mozilla.com/D66567

--HG--
extra : moz-landing-system : lando
2020-03-12 15:01:22 +00:00