Граф коммитов

3524 Коммитов

Автор SHA1 Сообщение Дата
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
Edgar Chen 53aed7aafa Bug 1621912 - Remove test_pointerevent_pointerleave_descendants-manual.html; r=smaug
Depends on D66565

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

--HG--
extra : moz-landing-system : lando
2020-03-12 15:01:15 +00:00
Edgar Chen e2dbf77853 Bug 1621909 - Remove test_pointerevent_pointerleave_descendant_over-manual.html; r=smaug
Depends on D66564

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

--HG--
extra : moz-landing-system : lando
2020-03-12 15:01:02 +00:00
Edgar Chen 5c98de2a6d Bug 1621831 - Remove test_pointerevent_lostpointercapture_for_disconnected_node-manual.html; r=smaug
Depends on D66562

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

--HG--
extra : moz-landing-system : lando
2020-03-12 14:53:00 +00:00
Edgar Chen cf26fb4712 Bug 1621830 - Remove test_pointerevent_element_haspointercapture-manual.html; r=smaug
Depends on D66561

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

--HG--
extra : moz-landing-system : lando
2020-03-12 14:52:12 +00:00
Edgar Chen cbe66c6e97 Bug 1621829 - Remove test_pointerevent_capture_mouse-manual.html; r=smaug
Depends on D66560

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

--HG--
extra : moz-landing-system : lando
2020-03-12 14:51:49 +00:00
Edgar Chen 96c57ab3c0 Bug 1621828 - Remove test_pointerevent_setpointercapture_disconnected-manual.html; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D66560

--HG--
extra : moz-landing-system : lando
2020-03-12 14:51:32 +00:00
Sebastian Streich 4b4a5382fa Bug 1621001 - Refactor DataTransfer.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D66044

--HG--
extra : moz-landing-system : lando
2020-03-10 14:30:58 +00:00
Edgar Chen a14ba7926f Bug 1616278 - Remove test_pointerevent_lostpointercapture_is_first-manual.html; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D63254

--HG--
extra : moz-landing-system : lando
2020-03-09 12:16:05 +00:00
Masayuki Nakano c90d6c80b3 Bug 1569512 - Make `PresShell` ignore synthesized `mousemove` events coming from another process if the child process stores mouse location of synthesized mouse events for tests r=smaug
The reason of intermittent failure of `test_bug656379-2.html` is, synthesized
`mousemove` event coming from the parent process causes `mouseout` and
`mouseleave` events of the last synthesized `mousemove` in the test.  The
reason is, synthesized `mousemove` for tests makes `PresShell` in the content
process record the cursor location, but won't make it `PresShell` in the
parent process do it.  Therefore, parent process may synthesize `mousemove`
event for the system cursor position which does not match with the synthesized
mouse location in the content process.  Therefore, `:hover` state may be
updated unexpectedly.

This patch makes `WidgetEvent::mFlags` have a flag to indicate whether it
came from another process.  Then, makes `PresShell::HandleEvent()` ignore
synthesized `mousemove` events coming from another process only when the
recorded mouse location was set by a mouse event synthesized for tests.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 21:34:28 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Andrea Marchesini 4710c7f372 Bug 1619518 - part 2 - Better File.lastModified attribute handling, r=ssengupta,ttung,dom-workers-and-storage-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65074

--HG--
extra : moz-landing-system : lando
2020-03-04 23:10:22 +00:00
Brindusan Cristian e05aaf88c7 Backed out 4 changesets (bug 1619518) for mochitest failures at test_temporaryFileBlob.html. CLOSED TREE
Backed out changeset f848fd145194 (bug 1619518)
Backed out changeset eb4b8aa164e8 (bug 1619518)
Backed out changeset 403e9b8e2040 (bug 1619518)
Backed out changeset aa25ea873fa9 (bug 1619518)
2020-03-05 01:04:18 +02:00
Andrea Marchesini 128c695eba Bug 1619518 - part 2 - Better File.lastModified attribute handling, r=ssengupta,ttung,dom-workers-and-storage-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65074

--HG--
extra : moz-landing-system : lando
2020-03-04 21:26:03 +00:00
Kartikaya Gupta d633586fcc Bug 1618545 - Delete obsolete/unused code relating to Fennec's experimental ui.zoomedview feature. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65022

--HG--
extra : moz-landing-system : lando
2020-03-03 15:27:50 +00:00
Mihai Alexandru Michis 27d7312e19 Backed out changeset 469d7894f720 (bug 1618545) for causing bustages in src/layout/base/PositionedEventTargeting.cpp
CLOSED TREE
2020-03-03 14:52:13 +02:00
Kartikaya Gupta 432394ae9f Bug 1618545 - Delete obsolete/unused code relating to Fennec's experimental ui.zoomedview feature. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65022

--HG--
extra : moz-landing-system : lando
2020-03-02 21:53:50 +00:00
Masayuki Nakano 0af4f88f9d Bug 1449831 - part 2: Make `InputEventOptions` be able to take target ranges r=smaug
`InputEventOptions` should be able to take target ranges for `beforeinput`
event.  However, it requires to include `StaticRange.h` from `nsContentUtils.h`
even though most `nsContentUtils.h` users don't need it.  Therefore, this patch
moves it from `nsContentUtils.h` to new header file.

And makes `nsContentUtils::DispatchInputEvent()` moves the target ranges
from `InputEventOptions` to `InternalEditorInputEvent`.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 03:38:43 +00:00
Masayuki Nakano b4cc4486d4 Bug 1449831 - part 1: Add `InputEvent.getTargetRanges()` r=smaug
`InputEvent.getTargetRanges()` can be used only when event type is
`beforeinput`.  So, it may be used for feature detection of `beforeinput`
event because Chrome does not implement `onbeforeinput` event handler attribute.
Therefore, this patch makes it behind the pref for `beforeinput` event.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 07:39:38 +00:00
Masayuki Nakano fa274b5db3 Bug 1602610 - Make `test_use_split_keypress_event_model_on_old_Office_Online_Servier.html` listen to `CheckKeyPressEventModel` event for avoiding intermittent failure r=smaug
It's a testcase for Office Online Server duplicated from `test_bug1514940.html`.
The original test listens to `CheckKeyPressEventModel` event which is fired
when the `keypress` event model is changed from the default mode.  Therefore,
this test also needs to listen to the event for avoiding intermittent failure
which is caused by running the tests before the mode change.

However, unfortunately, for keeping the performance of web apps which don't
need our mode changes, we can check the event only on debug build.  Therefore,
this patch makes the test run only on debug build.

Finally, this patch renames `test_bug154940.html` too because it tests
special behavior on specific web app and the new test name explains it like
the test for Office Online Server.

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

--HG--
rename : dom/events/test/test_bug1514940.html => dom/events/test/test_use_split_keypress_event_model_on_old_Confluence.html
extra : moz-landing-system : lando
2020-03-02 11:39:00 +00:00