Mirko Brodesser
2f40f072ab
Bug 1565584: move `nsIContentUtils::ContentIsDescendantOf` to `nsINode::IsInclusiveDescendantOf`. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D37880
2019-07-15 10:02:21 +02:00
Dorel Luca
a36e8cbbab
Backed out changeset ab9d5eeaa90e (bug 1370630) on dev's request
...
--HG--
extra : rebase_source : f583c253821b50a25ae0f023bcc8312b526ea8da
2019-07-09 21:44:43 +03:00
Boris Zbarsky
3910c9fe0a
Bug 1561887 part 2. Fix cycle-collection skipping of JSEventHandler to work correctly. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D36870
--HG--
extra : moz-landing-system : lando
2019-07-09 17:04:59 +00:00
Victor Porof
64a157bec4
Bug 1561435 - Fix test failures for dom/, r=standard8
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D35953
--HG--
extra : source : 601fd342df276db814d904aecf943dcd2f14290c
extra : intermediate-source : 9ea5cf04581fe4dbf353443a98e6a970f0fdee41
2019-06-24 04:55:14 +02:00
Victor Porof
0a8ff0ad85
Bug 1561435 - Format dom/, a=automatic-formatting
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D35951
--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00
Razvan Maries
daed363fd7
Merge mozilla-inbound to mozilla-central a=merge
2019-07-05 00:40:17 +03:00
Csoregi Natalia
0c754625a9
Merge mozilla-central to mozilla-inbound. CLOSED TREE
2019-07-04 12:54:22 +03:00
Oana Pop Rus
2ad74ef9f7
Merge mozilla-central to inbound. a=merge CLOSED TREE
2019-07-04 06:38:21 +03:00
Olli Pettay
d957d5d294
Bug 1178763, move UIEvent.pageX/pageY to MouseEvent, r=masayuki
...
Differential Revision: https://phabricator.services.mozilla.com/D36781
--HG--
extra : moz-landing-system : lando
2019-07-04 01:50:22 +00:00
Andreea Pavel
6d20f2b618
Bug 1527055 - disabled test_bug574663.html on win r=RyanVM
...
Differential Revision: https://phabricator.services.mozilla.com/D36434
--HG--
extra : moz-landing-system : lando
2019-07-03 16:01:03 +00:00
Makoto Kato
8b306f551d
Bug 1556103 - Part 1. Add long press action when setting focus. r=masayuki
...
Actually, long tap can set focus. But since it uses `nsIFocusManager::FLAG_BYMOUSE` flag, we cannot recognize whether setting focus is by long tap or not.
So I would like to add new flag `FLAG_BYLONGPRESS` and `CAUSE_LONGPRESS` that are by long tap.
Differential Revision: https://phabricator.services.mozilla.com/D35991
--HG--
extra : moz-landing-system : lando
2019-06-28 00:39:45 +00:00
Kris Maglione
f70e67ad2d
Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika
...
The SpecialPowers set*Pref/get*Pref APIs currently use synchronous messaging
to set and get preference values from the parent process. Aside from directly
affecting callers of those APIs, it also affects callers of `pushPrefEnv`,
which is meant to be asynchronous, but is in practice usually synchronous due
to the synchronous messaging it uses.
This patch updates the getPref APIs to use the in-process preference service
(which most callers are expecting anyway), and also updates the callers of
the setPref and pushPrefEnv APIs to await the result if they're relying on it
taking effect immediately.
Unfortunately, there are some corner cases in tests that appear to only work
because of the quirks of the current sync messaging approach. The synchronous
setPref APIs, for instance, trigger preference changes in the parent
instantly, but don't update the values in the child until we've returned to
the event loop and had a chance to process the notifications from the parent.
The differnce in timing leads some tests to fail in strange ways, which this
patch works around by just adding timeouts.
There should be follow-ups for test owners to fix the flakiness.
Differential Revision: https://phabricator.services.mozilla.com/D35054
--HG--
extra : rebase_source : 941298157e7c82f420cf50ce057154ce9b85301c
extra : source : 189dc8a359815e059a4a217f788d183260bb2bfe
2019-06-13 09:34:39 -07:00
Masayuki Nakano
da61ea3112
Bug 1444847 - part 3: Create `RangeUtils` to place public static methods of `nsRange` r=smaug
...
Some `nsRange` static methods are useful in `StaticRange` and some of them
are used in a lot of places but not related to `nsRange` directly. This
patch moves them into new static method only class, `mozilla::RangeUtils`.
Differential Revision: https://phabricator.services.mozilla.com/D35142
--HG--
extra : moz-landing-system : lando
2019-06-28 07:48:07 +00:00
Masayuki Nakano
2a450c5196
Bug 1444847 - part 2: Sort out basic API of `nsRange` for consistency with coming `StaticRange` r=smaug
...
For avoiding confusion between API of `nsRange` and `StaticRange`, I'd like to
rename `nsRange::CreateRange()` to `nsRange::Create()` because
`StaticRange::CreateStaticRange()` is too long name and
`StaticRange::CreateRange()` sounds odd. This patch renames it and changes
related methods to template methods to avoid runtime cost of temporary
`RawRangeBoundary` instance creation.
Differential Revision: https://phabricator.services.mozilla.com/D35141
--HG--
extra : moz-landing-system : lando
2019-06-28 07:47:29 +00:00
Henri Sivonen
77a9d691d8
Bug 1549930 addendum - Notify widgets of IME blur on quit (on non-Android). r=masayuki
...
Differential Revision: https://phabricator.services.mozilla.com/D34992
--HG--
extra : moz-landing-system : lando
2019-06-17 04:51:29 +00:00
Logan Smyth
a1de03c27b
Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D30565
--HG--
extra : moz-landing-system : lando
2019-06-17 04:36:29 +00:00
Dorel Luca
e12ad70ab7
Backed out 2 changesets (bug 1529345) for Windows 2012 build bustages
...
Backed out changeset 87aa4894b4a1 (bug 1529345)
Backed out changeset cf6f6281cb44 (bug 1529345)
--HG--
extra : rebase_source : b19274a3d20d3a1ea92f0fe1224ef30910e10916
2019-06-14 23:34:36 +03:00
Logan Smyth
77f27aa54c
Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D30565
--HG--
extra : moz-landing-system : lando
2019-06-14 18:25:47 +00:00
Mark Banner
201255ab84
Bug 1558485 - Turn on ESLint for all of dom/ disabling most of the failing rules. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D34761
--HG--
extra : moz-landing-system : lando
2019-06-13 20:21:46 +00:00
Dorel Luca
6b40527932
Backed out 2 changesets (bug 1529345) for Build Bustage. CLOSED TREE
...
Backed out changeset 63f80a49839e (bug 1529345)
Backed out changeset 15bac42cc73a (bug 1529345)
2019-06-14 20:55:52 +03:00
Logan Smyth
c09e533d0e
Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D30565
--HG--
extra : moz-landing-system : lando
2019-06-14 17:14:13 +00:00
Peter Van der Beken
8b00dd9ff2
Bug 1490044 - Move all prefs used in WebIDL to StaticPrefs. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D33507
--HG--
extra : moz-landing-system : lando
2019-06-13 09:00:59 +00:00
Mark Banner
ea1728721a
Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D34588
--HG--
extra : moz-landing-system : lando
2019-06-12 08:29:58 +00:00
Boris Zbarsky
d5a8a4a595
Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D34201
--HG--
extra : moz-landing-system : lando
2019-06-08 21:26:12 +00:00
Boris Zbarsky
5eb248348f
Bug 1557847. Stop using [array] in nsIClipboard. r=NeilDeakin
...
Differential Revision: https://phabricator.services.mozilla.com/D34243
--HG--
extra : moz-landing-system : lando
2019-06-09 01:06:39 +00:00
Sylvestre Ledru
f1fbd2ff00
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D33456
--HG--
extra : moz-landing-system : lando
2019-06-08 08:26:37 +00:00
Daniel Holbert
d9ebfdd4d2
Bug 1556855 part 4: Remove support for the layout.css.prefixes.webkit pref. r=mats
...
From this point on, the webkit-prefixed CSS features that were previously
protected by this pref will now be unconditionally enabled.
Differential Revision: https://phabricator.services.mozilla.com/D33807
--HG--
extra : moz-landing-system : lando
2019-06-05 18:23:02 +00:00
Boris Zbarsky
bf01c9bff6
Bug 1556808. Use StaticPrefs for layout.css.prefixes.webkit in EventListenerManager. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D33685
--HG--
extra : moz-landing-system : lando
2019-06-05 09:03:11 +00:00
Andreea Pavel
d9bbc00de6
Bug 1527055 - disabled test_bug574663.html on win not debug r=jmaher
...
Differential Revision: https://phabricator.services.mozilla.com/D33441
--HG--
extra : moz-landing-system : lando
2019-06-04 12:49:19 +00:00
Edgar Chen
1ea67058f6
Bug 1525554 - Enable promise rejection event and update tests result; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D31734
--HG--
extra : moz-landing-system : lando
2019-06-04 12:55:57 +00:00
Neil Deakin
dcfccf267d
Bug 1443683
, support drag and drop in out of process frames; this is done by storing the drag information about the data to be dragged and visualization image in the event state manager instead of the BrowserParent and passing this information on to the drag service, r=nika
...
--HG--
extra : rebase_source : 0ccb645d652b064e647d5693aaf480d7066e6fdf
2019-05-14 11:04:38 -04:00
Edgar Chen
b11b3efd44
Bug 1543439 - Part 3: change and click event fired from browser UI should be considered as an user interaction event; r=masayuki
...
In general case, we set `IsHandlingUserInput` flag in `PresShell::EventHandler::HandleEventWithCurrentEventInfo()` for user interaction event.
However the interaction could happen on parent process, like e10s select and input date etc., whose dropdown/popup menu is implemented on parent process and it sends the interaction result to content process, then generates/dispatches corresponding event on content process directly. For such case, we need an addition hook before calling the event listener, just like what we do for popup blocker. It also makes more sense that we handle `popup blocker state` and `IsHandlingUserInput` flag at a consistent time.
Differential Revision: https://phabricator.services.mozilla.com/D32020
--HG--
extra : moz-landing-system : lando
2019-05-27 12:50:33 +00:00
Edgar Chen
33d303678c
Bug 1543439 - Part 2: Move is-user-interaction checks out of PresShell::EventHandler::PrepareToDispatchEvent; r=masayuki
...
Differential Revision: https://phabricator.services.mozilla.com/D32019
--HG--
extra : moz-landing-system : lando
2019-05-27 10:14:06 +00:00
Edgar Chen
4b1ff2f791
Bug 1543439 - Part 1: Move special handling for MouseDown/Up event out of AutoHandlingUserInputStatePusher; r=masayuki
...
PresShell::EventHandler::HandleEventWithCurrentEventInfo is the only possible
place will do such handling; other places pass either a nullptr or a
non-MouseDown/Up event.
Differential Revision: https://phabricator.services.mozilla.com/D32431
--HG--
extra : moz-landing-system : lando
2019-05-29 07:48:16 +00:00
Masayuki Nakano
e85fd75144
Bug 1545410 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Office Online Server r=smaug
...
Similar to bug 1514940, we need to use "split model" keypres events on
Office Online Server since they can be installed into user own servers.
Microsoft said it's safe to check whether there is an element whose id is
"WACViewPanel_EditingElement":
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17
Additionally, they'll add new class to the element after fixing the bug in
their side:
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c20
Differential Revision: https://phabricator.services.mozilla.com/D32287
--HG--
extra : moz-landing-system : lando
2019-05-23 22:00:58 +00:00
Sylvestre Ledru
d57d4905f1
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D30883
--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00
Jorg K
d68e18d631
Bug 1553957 - Follow-up: Revert changeset 9a89e2b0fa9d and include WindowProxyHolder.h in JSWindowActorChild.cpp. r=bzbarsky
...
Reviewers: bzbarsky
Reviewed By: bzbarsky
Bug #: 1553957
Differential Revision: https://phabricator.services.mozilla.com/D32514
--HG--
extra : rebase_source : 32f18c40dbbfeb19da8fa5f25bd69ff4286d0a31
2019-05-25 02:53:49 +03:00
Brindusan Cristian
fd5a4a259a
Merge inbound to mozilla-central. a=merge
2019-05-25 00:49:05 +03:00
Brindusan Cristian
bd1f354f25
Merge autoland to mozilla-central. a=merge
2019-05-25 00:46:28 +03:00
Ciure Andrei
c7c661056f
Merge autoland to mozilla-central. a=merge
2019-05-24 06:52:59 +03:00
Ciure Andrei
90fa4c6afd
Merge autoland to mozilla-central. a=merge
2019-05-24 00:51:34 +03:00
Jorg K
48cbbb3137
Bug 1553957 - Include WindowProxyHolder.h in EventTarget.h. r=smaug a=Aryx
2019-05-23 23:09:19 +02:00
Edgar Chen
800499a9f9
Bug 1554122 - Rename nsAutoPopupStatePusher* to AutoPopupStatePusher; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32457
--HG--
extra : moz-landing-system : lando
2019-05-24 12:42:29 +00:00
Mihai Alexandru Michis
35449f0689
Backed out changeset e52d041dc3de (bug 1553378) for causing build bustages in ContentEventHandler.cpp. CLOSED TREE
...
--HG--
extra : amend_source : 36025186ca5788f5889ff7d97252900eefab0a36
2019-05-24 14:32:27 +03:00
arthur.iakab
af8e458c5f
Backed out changeset a296439a25ff (bug 1519636) for frequent Windows cppunit failures CLOSED TREE
2019-05-24 14:26:01 +03:00
Cameron McCormack
5bed2b0138
Bug 1553378 - Devirtualize calls to GetText() / TextLength() when we know we have a Text node. r=smaug,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D32100
--HG--
extra : moz-landing-system : lando
2019-05-24 08:10:55 +00:00
Stone Shih
946b97b939
Bug 1370630 - Untrusted submit event shouldn't trigger form submission; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D28070
--HG--
extra : moz-landing-system : lando
2019-05-23 20:30:20 +00:00
Sylvestre Ledru
c82ea97226
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D30883
--HG--
extra : moz-landing-system : lando
2019-05-24 09:59:17 +00:00
Razvan Maries
234389cf17
Backed out changeset 82b18d61da00 (bug 1553378) for build bustages. CLOSED TREE
2019-05-24 06:50:14 +03:00
Cameron McCormack
f5dd691a74
Bug 1553378 - Devirtualize calls to GetText() / TextLength() when we know we have a Text node. r=smaug,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D32100
--HG--
extra : moz-landing-system : lando
2019-05-24 03:18:44 +00:00