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

89394 Коммитов

Автор SHA1 Сообщение Дата
Emma Malysz c028f5125c Bug 1605737, remove XUL cached type r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58140

--HG--
extra : moz-landing-system : lando
2019-12-23 17:10:15 +00:00
James Willcox 4400a92a46 Bug 1604917 - Coerce WebManifest colors to rrggbbaa ?marcosc,jdescottes r=marcosc,jdescottes
We then convert that to `#aarrggbb` in GeckoView for convenient use
with `android.graphics.Color`.

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

--HG--
extra : moz-landing-system : lando
2019-12-23 15:29:08 +00:00
Boris Chiou bdd5623ab2 Bug 779598 - Do animations of transforms with preserve-3d at compositor. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D57029

--HG--
extra : moz-landing-system : lando
2019-12-23 09:52:43 +00:00
Ciure Andrei bdfec29e90 Backed out changeset 26694602791a (bug 1472158) for causing Bug 1583000 2019-12-22 15:22:58 +02:00
Brian Hackett f06f88d256 Bug 1605129 - Avoid using GetUsedBrowserProcess when recording/replaying, .
Differential Revision: https://phabricator.services.mozilla.com/D57847

--HG--
extra : moz-landing-system : lando
2019-12-19 19:08:09 +00:00
Jonathan Watt 57bb12cc12 Bug 1602410. Make `window.print()` invoke printing via the parent process using a JSWindowActor. r=Gijs,kmag
Differential Revision: https://phabricator.services.mozilla.com/D56414

--HG--
extra : moz-landing-system : lando
2019-12-21 12:33:11 +00:00
Masayuki Nakano 87ca855ece Bug 1603074 - part 1: Make `synthesizePlainDragAndDrop()` synthesize drag events without `DataTransfer` object r=smaug
`synthesizePlainDragAndDrop()` synthesizes drag events with `DataTransfer`
object which is set to `DragEvent.dataTransfer` of `dragstart` after starting
drag session explicitly.  However, this causes
`EventStateManager::DoDefaltDragStart()` does not initialize `nsIDragService`
instance.  Therefore, synthesized drag events cannot work with editor because
`DragEvent::GetMozSourceNode()` returns `nullptr` due to
`nsIDragSession::GetSourceNode()` returning `nullptr`.

On the other hand, synthesized drag events cannot use
`nsIDragService::InvodeDragSession()` normally because of hitting an assertion.
https://searchfox.org/mozilla-central/rev/690e903ef689a4eca335b96bd903580394864a1c/widget/nsBaseDragService.cpp#230-233

This patch does:
- mark drag events caused by synthesized mouse events as "synthesized for tests"
- make `synthesizePlainDragAndDrop()` stop using
  `nsIDragService.startDragSession()`
- make `nsBaseDragService` initialize and start session even for synthesized
  `dragstart` event
- make `synthesizePlainDragAndDrop()` stop synthesizing drag events with
  `DataTransfer` object since it's normal behavior and it'll be initialized
  with `nsIDragService::GetDataTransfer()`
- make `nsBaseDragService` store `effectAllowed` for the session only when
  it's synthesized session because it's required at initializing synthesized
  default `dropEffect` value of `dragenter`, `dragover`, `dragexit` and `drop`
  events' `dataTransfer`
- make all tests which use `nsIDragService.startDragSession()` use new
  API, `nsIDragService.startDragSessionForTests()` to initialize session's
  `effectAllowed` value
- make `EventStateManager::PostHandleEvent()` set drag end point of the test
  session to `eDrop` event's screen point
- make `synthesizePlainDragAndDrop()` set drag end point of the session if
  it does not synthesize `drop` event because following `endDragSession()`
  use it at dispatching `dragend` event on the source element

Additionally, this adds `dumpFunc` new param to `synthesizePlainDragAndDrop()`
because it's really useful to investigate the reason why requesting DnD isn't
performed as expected.

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

--HG--
extra : moz-landing-system : lando
2019-12-21 12:27:06 +00:00
Tetsuharu OHZEKI c59f473413 Bug 1597433 - part 2: Rename nsGlobalWindowInner::CallOnChildren -> nsGlobalWindowInner::CallOnInProcessChildren. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D57750

--HG--
extra : moz-landing-system : lando
2019-12-20 10:06:08 +00:00
Tetsuharu OHZEKI 31f408450f Bug 1597433 - part 1: Fix uses of nsIDocShellTreeItem in nsGlobalWindowInner::CallOnChildren. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D57749

--HG--
extra : moz-landing-system : lando
2019-12-21 03:42:25 +00:00
Narcis Beleuzu bd3cee1d8c Backed out changeset bc3a104f8b20 (bug 1602410) for build bustages on nsGlobalWindowOuter.cpp . CLOSED TREE 2019-12-21 04:13:43 +02:00
Botond Ballo 8b48782ea2 Bug 1605250 - Fix include-what-you-use errors in dom/localstorage. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D57899

--HG--
extra : moz-landing-system : lando
2019-12-21 01:13:29 +00:00
Haik Aftandilian 016cd664f6 Bug 1599230 - Part 2 - Remove GMP sandbox earlyinit pref and older sandbox startup code paths r!mjf r=mjf
Remove the security.sandbox.gmp.mac.earlyinit pref now that GMP early sandbox init is the default on release.

Remove the old unused code paths for initializing the GMP sandbox later during process startup (only used when security.sandbox.gmp.mac.earlyinit=false).

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

--HG--
extra : moz-landing-system : lando
2019-12-21 00:31:50 +00:00
Haik Aftandilian c91e72a1c7 Bug 1599230 - Part 1 - Remove RDD sandbox earlyinit pref and older sandbox startup code paths r!mjf r=mjf
Remove the security.sandbox.rdd.mac.earlyinit pref now that RDD early sandbox init is the default on release.

Remove the old unused code paths for initializing the RDD sandbox later during process startup (only used when security.sandbox.rdd.mac.earlyinit=false).

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

--HG--
extra : moz-landing-system : lando
2019-12-21 00:31:41 +00:00
Jonathan Watt 87c7d4f638 Bug 1602410. Make `window.print()` invoke printing via the parent process using a JSWindowActor. r=Gijs,kmag
Differential Revision: https://phabricator.services.mozilla.com/D56414

--HG--
extra : moz-landing-system : lando
2019-12-21 00:22:42 +00:00
nordzilla 869949428a Bug 1604340 - Allow [Pref] for WebIDL constructor r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D57723

--HG--
extra : moz-landing-system : lando
2019-12-21 00:46:20 +00:00
shindli 143073ad50 Backed out changeset bf4b4d3108f9 (bug 1602898) for causing bc failures in browser/components/ssb/tests/browser/browser_ssb_windowlocation.js CLOSED TREE 2019-12-21 02:22:06 +02:00
Perry Jiang 0735713eee Bug 1589708 - split parent process ServiceWorkerManager shutdown into 2 phases r=asuth
Phase 1 is still "profile-change-teardown", where the workers are
terminated. Phase 2 is "profile-before-change-qm", where the
PServiceWorkerManager actors are terminated. This split lets
ServiceWorkerCleanup perform any unregistering needed during
"profile-before-change" (which uses the SWM actors).

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

--HG--
extra : moz-landing-system : lando
2019-12-20 23:51:46 +00:00
alwu 6c23e730f2 Bug 1604962 - use NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING to support refcounting for abstrach classes. r=chunmin
Inheriting from `nsISupports` is too complicated if we just want to support refcounting. Instead, we can use `NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING` to declare `Add/RemoveRef()` as pure virtual functions in order to create ref-counted abstract classes.

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

--HG--
extra : moz-landing-system : lando
2019-12-21 00:05:53 +00:00
alwu a2e90147ab Bug 1604691 - part3 : add test. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D57913

--HG--
extra : moz-landing-system : lando
2019-12-20 23:46:31 +00:00
alwu c7f094e7dc Bug 1604691 - part2 : add webidl method in ChromeUtils to support generating testing event. r=bzbarsky
We handle media control key events differently from normal key events, and at this point we haven't finished the implementation of capturing media control key events on each platform.  Therefore, create a method to generate platform-independent events in order to help testing.

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

--HG--
extra : moz-landing-system : lando
2019-12-21 00:10:13 +00:00
alwu 7a463a5b40 Bug 1604691 - part1 : to generate test events in MediaControlService. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D57912

--HG--
extra : moz-landing-system : lando
2019-12-20 23:45:46 +00:00
Botond Ballo 357c20419c Bug 1605466 - Include-what-you-use fixes. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D58038

--HG--
extra : moz-landing-system : lando
2019-12-20 20:36:14 +00:00
Kris Maglione d70b88f5d6 Bug 1605433: Close window opened by crashtest after a brief timeout. r=smaug
Without this, the window just stays open in the background, constantly
re-submitting forms to itself.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 22:50:16 +00:00
Kris Maglione a8523a3bae Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2019-12-20 21:41:26 +00:00
Dan Minor f5310c8954 Bug 1595479 - Update remove then add track mochitests to handle earlier mute events; r=ng
The mute event listener needs to be added to the chain earlier as the track
will already have muted after renegotiation occurs. We could remove the
check completely, but this will help ensure we don't regress firing mute events
when the track is stopped.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 20:56:52 +00:00
Nico Grunbaum 8ef8e3598b Bug 1602739 - P2 - make opaque stats IDs in PeerConnectionImpl;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D57949

--HG--
extra : moz-landing-system : lando
2019-12-20 20:20:34 +00:00
Alastor Wu f58da2ecda Bug 1601877 - part2 : add check for 'playing' and 'seeking'. r=pehrsons
Add more log to see (1) if media start playing and (2) if seeking starts, in order to get more information to solve the intermittent failure.

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

--HG--
extra : moz-landing-system : lando
2019-12-19 21:26:52 +00:00
Alastor Wu f6d350d5ff Bug 1601877 - part1 : modify test to await-based format. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D56819

--HG--
extra : moz-landing-system : lando
2019-12-19 21:25:20 +00:00
Kirk Steuber c9ab4ba28d Bug 1603828 - Remove XULElement.pack from webidl and c++ r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D57686

--HG--
extra : moz-landing-system : lando
2019-12-20 17:41:31 +00:00
shravanrn@gmail.com 3201996fba Bug 1575985 part 1 - Preload RLBox dynamic library before content sandbox to allow subsequent loads r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D45941

--HG--
extra : moz-landing-system : lando
2019-12-20 18:31:27 +00:00
Jorg K 96dd4c966d Bug 1603649 - Add NS_IMPL_FROMNODE_HELPER for XULFrameElement (idea by :bz). r=farre
Differential Revision: https://phabricator.services.mozilla.com/D57883

--HG--
extra : moz-landing-system : lando
2019-12-20 10:34:12 +00:00
Gabriele Svelto ca8ae39a56 Bug 1544147 - Ensure orphaned crashes are properly notified to the rest of the system r=froydnj
When a content or plug-in process crashes too early we haven't initialized the
CrashReporterHost for that process. This will cause the crash to be orphaned,
i.e. to miss most of its crash annotations. We added code to finalize those
crashes in bug 1282776 so that we wouldn't miss them entirely. This ensured
that crash reports would have both their .dmp and .extra files but the patch
failed to modify the code that notified various listeners about the crash
report's presence.

This changes always send the crash ID alongside the crash notifications, even
for orphaned crashes, so that listeners such as the content crash handler or
the test harnesses can always find the minidump and .extra file. Additionally
orphaned crashes are recorded in the CrashManager and in telemetry just like
normal crashes.

This also re-enables dom/ipc/tests/process_error.xul which failed frequently
because of this bug.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 17:50:45 +00:00
John Lin e98ea9e53e Bug 1583565 - check if Java wrapper is still valid when updating media info. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D56973

--HG--
extra : moz-landing-system : lando
2019-12-19 04:10:50 +00:00
Alex Chronopoulos 1bb4949d41 Bug 1604746 - Start the pipeline after stopping to avoid thread races. r=padenot
With tracks in different MTGs we risk of having thread races if we stop and start immediatelly. Previously, stoping and starting was happenign to the same MTG so this problem did not exist. This change wires a promise in the `MediaTrack::RemoveListener` method and perform the start when that step has been completed.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 17:03:42 +00:00
Ehsan Akhgari 74daab44a0 Bug 1603902 - Remove a race condition where storage access would get denied when a delayed automatic grant is in progress; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D57211

--HG--
extra : moz-landing-system : lando
2019-12-20 14:47:28 +00:00
Emilio Cobos Álvarez ff130db72b Bug 981248 - Fix test_input_number_mouse_events.html to not dispatch mouse events from input events. r=masayuki
The test fails with my <input type=number> rewrite because editor fails to
dispatch one input event caused by these mouse events.

The reason for this is that we schedule them from an input event, which fires
from here:

  https://searchfox.org/mozilla-central/rev/6305f6935f496b3a302c7afcc579399a4217729c/editor/libeditor/EditorBase.cpp#965

Not how at that point we still haven't decremented mPlaceholderBatch. That means
that other stuff that triggers input events from there will not dispatch events.

I think that's a bit unexpected, but it is a preexisting problem, and can't
happen for users because mouse events go through the event loop.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 13:54:48 +00:00
Andrea Marchesini 31ef581995 Bug 1595786 - FetchStreamReader takes a copy of the received array buffer, r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D54900

--HG--
extra : moz-landing-system : lando
2019-12-20 13:49:25 +00:00
Mirko Brodesser b0270b9561 Bug 1600267: part 8) Call `ComparePoints` instead of `ComparePoints_Deprecated` in Selection. r=smaug
Some calls to `ComparePoints_Deprecated` remain, because adapting them
would require to add boilerplate code, which potentially will be deleted
again once `ComparePoints` supports crossing the Shadow DOM boundary.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 12:33:10 +00:00
Chris Peterson 406763af7f Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj
This changeset is a simple find and replace of `MOZ_FALLTHROUGH` and `[[fallthrough]]`.

Unfortunately, the MOZ_FALLTHROUGH_ASSERT macro (to assert on case fallthrough in debug builds) is still necessary after switching from [[clang::fallthrough]] to [[fallthrough]] because:

* MOZ_ASSERT(false) followed by [[fallthrough]] triggers a -Wunreachable-code warning in DEBUG builds
* but MOZ_ASSERT(false) without [[fallthrough]] triggers a -Wimplicit-fallthrough warning in NDEBUG builds.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 07:16:43 +00:00
Perry Jiang a629fffc9a Bug 1604836 - ServiceWorkerGlobalScope.skipWaiting should use DOMMozPromiseRequestHolder r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D57875

--HG--
extra : moz-landing-system : lando
2019-12-20 01:31:05 +00:00
Andrea Marchesini 2702d32141 Bug 1472158 - Broadcast BlobURLs only to processes with the same loaded origins, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D57637

--HG--
extra : moz-landing-system : lando
2019-12-20 04:28:04 +00:00
Razvan Maries 188a114962 Backed out 5 changesets (bug 1598520) for perma fails on test_enumerateDevices_navigation.html. CLOSED TREE
Backed out changeset 583dac2feebc (bug 1598520)
Backed out changeset c769e733f588 (bug 1598520)
Backed out changeset 45287a2ec476 (bug 1598520)
Backed out changeset 59cff6014447 (bug 1598520)
Backed out changeset ddf722557c33 (bug 1598520)
2019-12-20 01:56:55 +02:00
Matt Woodrow 620323f684 Bug 1598520 - Allow DocumentChannel for srcdoc= loads. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D57587

--HG--
extra : source : 10ad2e4d27c3e66b8ce5190377ed672c72010732
2019-12-19 21:48:00 +00:00
Matt Woodrow d67e6c24b8 Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag
Differential Revision: https://phabricator.services.mozilla.com/D57586

--HG--
extra : source : 4a5d10759bf3ad6cb392c7d83cc163e262314eb1
2019-12-19 21:47:10 +00:00
Razvan Maries bfe0632450 Backed out 5 changesets (bug 1598520) for Linting failure. CLOSED TREE
Backed out changeset b4f71abf75fe (bug 1598520)
Backed out changeset 8e3b650d9313 (bug 1598520)
Backed out changeset 73c37ad27d18 (bug 1598520)
Backed out changeset 10ad2e4d27c3 (bug 1598520)
Backed out changeset 4a5d10759bf3 (bug 1598520)
2019-12-20 00:38:32 +02:00
Matt Woodrow fae5ac7731 Bug 1598520 - Allow DocumentChannel for srcdoc= loads. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D57587

--HG--
extra : moz-landing-system : lando
2019-12-19 21:48:00 +00:00
Matt Woodrow eb5ca8b399 Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag
Differential Revision: https://phabricator.services.mozilla.com/D57586

--HG--
extra : moz-landing-system : lando
2019-12-19 21:47:10 +00:00
Kris Maglione 4561642c1f Bug 1588259: Part 2 - Prevent URI loads in partially-initialized BrowsingContexts. r=smaug
When we open a new window from a content process, we create a nested event
loop to wait for it to be initialized by the parent. The problem with this is
that the OpenWindow code which calls the window provider expects the window to
be in-process and uninitialized, so that it can load its own initial URI into
it, and correctly fulfil the spec-codified contract of window.open(). If
another caller initiates a load in the new window during the nested event
loop, those invariants are broken, and any manner of undefined behavior can
occur.

This patch adds a new flag to the BrowsingContext, marking it as uninitialized
until the end of the nested event loop, and blocking any attempts to load a
new URI into it in the meantime.

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

--HG--
extra : moz-landing-system : lando
2019-12-19 22:05:19 +00:00
Kris Maglione 0050975280 Bug 1588259: Part 1 - Suspend windows when spinning event loop for window.open. r=smaug
This doesn't solve all problems with potential reentrancy during window.open
nested event loops, but it does improve the situation somewhat. Since any
window in the same BrowsingContextGroup can target any window in the same
group, we need to suspend all windows in the group, not just the root of the
new window's parent. We also need to make sure we suspend all in-process
windows, even if we have out-of-process frames somewhere in the parent chain.

This patch takes care of suspending timeouts and input event handling in all
of these cases. It doesn't block all potential paths for running code in the
suspended windows, though, so the next patch explicitly prevents the
problematic reentrancy.

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

--HG--
extra : moz-landing-system : lando
2019-12-19 21:41:17 +00:00
Razvan Maries 4200948394 Backed out 2 changesets (bug 1588259) for perma fais on 1588259.html. CLOSED TREE
Backed out changeset 62fb499df45a (bug 1588259)
Backed out changeset 34716f07e8cb (bug 1588259)
2019-12-19 23:34:57 +02:00