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

8675 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez cfca657d9c Bug 1722487 - Avoid some work for font list updates. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D123363
2021-08-26 23:17:54 +00:00
Nika Layzell c38d0d1762 Bug 1726865 - Prefer using existing content processes for subframes during process selection, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D123661
2021-08-26 16:57:27 +00:00
Matt Woodrow d751b43176 Bug 1727489 - Remove PLayerTransaction. r=jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D123595
2021-08-26 04:59:57 +00:00
Butkovits Atila c83e348e26 Backed out 2 changesets (bug 1727488, bug 1727489) for causing bustages on KnowsCompositor.cpp. CLOSED TREE
Backed out changeset 5a00db1b7a6a (bug 1727489)
Backed out changeset 13686567e748 (bug 1727488)
2021-08-26 04:49:16 +03:00
Matt Woodrow 0d4e9aa48a Bug 1727489 - Remove PLayerTransaction. r=jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D123595
2021-08-26 00:25:21 +00:00
Matt Woodrow b8eef01e83 Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 20:49:18 +00:00
Nika Layzell d47f4a615c Bug 1725572 - Avoid process-switching to a dead process, r=kmag
After some investigation, I was able to find a theoretical codepath
which could lead to the "missing initial frame browsing context" error:

1. Two iframes are created for the same origin, and begin process
   switching.
2. The first iframe finishes process switching, but for some reason
   (e.g. being in shutdown) the call to `LaunchSubprocessResolve`
   errors.
3. The second callback is called and also calls LaunchSubprocessResolve,
   which this time returns `true` due to it previously having been
   called.
4. The BrowserParent is created in the new content process despite
   `InitInternal()` never having been finished, and therefore the
   ContentParent never becoming subscribed to the BrowsingContextGroup.

To fix this, I made 2 changes:

1. Abort from process switching if the target process which we're going
   to be creating a BrowserParent in `IsDead()`, and
2. Track the return value from `LaunchSubprocessResolve`, so we return
   `false` if it is called a second time after a failed content process
   launch.

I'm not confident that this is the cause of the crashes, as I was unable
to reproduce the issue.

Differential Revision: https://phabricator.services.mozilla.com/D123548
2021-08-25 17:54:10 +00:00
Iulian Moraru dc862c1716 Bug 1725635 - disable browser_gc_schedule.js on linux_18.04_64_debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D123306
2021-08-25 12:40:22 +00:00
criss bccf559d4b Backed out changeset 8868fe82dafd (bug 1708403) for causing failures on test_drawSnapshot_fixed.html. CLOSED TREE 2021-08-25 04:08:24 +03:00
Matt Woodrow bb02f9029f Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 00:21:01 +00:00
Jeff Muizelaar e8908dd3bd Bug 1727360 - Remove WindowRenderer::AsShadowForwarder() r=aosmond
We shouldn't ever be hitting this path.

Differential Revision: https://phabricator.services.mozilla.com/D123495
2021-08-24 17:58:46 +00:00
Jeff Muizelaar 4e0c60c99c Bug 1727324 - Remove WindowRenderer::AsClientLayerManager. r=aosmond
A step down the path of removing ClientLayerManager.

Differential Revision: https://phabricator.services.mozilla.com/D123451
2021-08-24 15:07:56 +00:00
Emilio Cobos Álvarez bb1202ad0c Bug 1725384 - Raise the priority of DidUnsuppressPainting. r=smaug
This seems to help a bit:

  https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=a8b34f39bb33c4b03b3a0e4f28f504c1829a68f9&newProject=try&newRevision=38c35d2f1c39d7d6c680258cae6fc1c96f3c6b27&framework=13&page=1

Depends on D123364

Differential Revision: https://phabricator.services.mozilla.com/D123365
2021-08-24 09:54:07 +00:00
Matt Woodrow 0ee96e3fa5 Bug 1726291 - Remove FrameLayerBuilder. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D122930
2021-08-23 03:07:31 +00:00
Andi-Bogdan Postelnicu 250fa0d795 Bug 1725145 - header files fixes in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122343
2021-08-22 10:21:55 +00:00
Cosmin Sabou b53abb88e7 Backed out changeset e111894317cc (bug 1726291) for causing assertion failures on WebRenderCommandBuilder.cpp. CLOSED TREE 2021-08-20 06:22:40 +03:00
Matt Woodrow 94015526e1 Bug 1726291 - Remove FrameLayerBuilder. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D122930
2021-08-20 02:20:39 +00:00
Edgar Chen 922d8d091b Bug 1511231 - Part 4: s/ProcessPendingColaescedTouchData/ProcessPendingCoalescedTouchData/; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122723
2021-08-19 13:27:13 +00:00
Edgar Chen 6a90d4510a Bug 1511231 - Part 3: Expose coalesced Touches to PointerEvent.getCoalescedEvents(); r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122590
2021-08-19 13:27:12 +00:00
Alexandru Michis b8a9a605d8 Backed out 4 changesets (bug 1511231) for causing cpp bustages in CoalescedTouchData.cpp
CLOSED TREE

Backed out changeset 79dc991bfa6c (bug 1511231)
Backed out changeset 94a5ef68aac3 (bug 1511231)
Backed out changeset bc913eaeeff2 (bug 1511231)
Backed out changeset fa0e4e205617 (bug 1511231)
2021-08-19 13:19:11 +03:00
Edgar Chen f8b397ad5f Bug 1511231 - Part 4: s/ProcessPendingColaescedTouchData/ProcessPendingCoalescedTouchData/; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122723
2021-08-19 09:08:20 +00:00
Edgar Chen f0fd7b7998 Bug 1511231 - Part 3: Expose coalesced Touches to PointerEvent.getCoalescedEvents(); r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122590
2021-08-19 09:08:20 +00:00
Edgar Chen 9a4b0f2c7f Bug 1725493 - Make coalesced touchmove event could be up-to-date; r=smaug,sefeng
`mChanged` isn't propagated through IPC, so we end up never update the coalesced
event.  There can't be too many of touches, so it shouldn't be a performance
issue if we just update all touches.

Differential Revision: https://phabricator.services.mozilla.com/D122539
2021-08-18 16:02:49 +00:00
Matt Woodrow 2cd0480476 Bug 1726063 - Remove support for non-WR compositor initialization. r=jrmuizel,aosmond
Depends on D122796

Differential Revision: https://phabricator.services.mozilla.com/D122798
2021-08-17 23:19:44 +00:00
Peter Van der Beken 1d099d0913 Bug 1706347 - Check mOOPChildrenLoading when deciding to put page in BFCache with Fission enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D117199
2021-08-16 09:08:33 +00:00
Alexandru Michis a39f5c6011 Backed out changeset 7fb67d32d491 (bug 1710879) on suspicion of causing content crashes (bug 1725558) a=backout
DONTBUILD
2021-08-14 12:37:03 +03:00
Nika Layzell e667f33046 Bug 1725270 - Add testing pref to get old about:blank process selection behavior, r=jesup
Adds a pref to perform about:blank document loads which have system
triggering principals within the existing process, rather than doing a
process switch. This can be used in performance tests which load
about:blank and do not expect process switches.

Differential Revision: https://phabricator.services.mozilla.com/D122405
2021-08-13 19:11:40 +00:00
Andrew McCreight afce156471 Bug 1723391 - Use RefPtr in ContentChild::RecvGetFilesResponse. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122306
2021-08-13 13:41:16 +00:00
Sebastian Hengst 536ae6da1a Merge mozilla-central to autoland. CLOSED TREE 2021-08-13 11:38:25 +02:00
Sebastian Hengst 95d8478112 Merge autoland to mozilla-central. a=merge 2021-08-13 11:26:38 +02:00
Sebastian Hengst 30cca9cb15 Backed out changeset f912045db98d (bug 1706347) for causing content crashes (bug 1725558). a=backout DONTBUILD 2021-08-13 11:19:42 +02:00
Paul Bone 1eea9a0557 Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug
This lets the idle scheduler know that we've initiated a GC that we didn't
ask its permission for.  Eg the JS engine hit a threshold.  It now uses this
info when scheduling GCs for other processes.

Differential Revision: https://phabricator.services.mozilla.com/D120831
2021-08-13 04:06:26 +00:00
Aaron Klotz ac6454a0ed Bug 1724749: Consolidate all dllservices code; r=tkikuchi
Per the discussion on governance, the new DLL services module will live in
`toolkit/xre/dllservices`.

Mozglue code will live in `toolkit/xre/dllservices/mozglue` and will be linked
in with `mozglue.dll`.

Differential Revision: https://phabricator.services.mozilla.com/D122384
2021-08-12 20:57:12 +00:00
Emilio Cobos Álvarez 7a13273914 Bug 1710879 - Don't clear BrowserBridgeHost::mBridge until BrowserBridgeChild has been completely destroyed. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D122214
2021-08-12 15:34:41 +00:00
Peter Van der Beken f78596c95a Bug 1706347 - Check mOOPChildrenLoading when deciding to put page in BFCache with Fission enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D117199
2021-08-12 14:11:29 +00:00
Edgar Chen 3665e7973c Bug 1721628 - PointerEvent.getCoalescedEvents should return events with pointermove type; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122367
2021-08-12 09:31:31 +00:00
Edgar Chen 615ac5c5e6 Bug 1688878 - Use StaticPrefs for dom.event.coalesce_mouse_move pref; r=smaug
And rename it a bit to align with the pref for touchmove

Differential Revision: https://phabricator.services.mozilla.com/D122386
2021-08-12 09:31:04 +00:00
Mike Conley 6b8e200b0e Bug 1724748 - Add nsITopLevelNavigationDelegate to allow JSWindowActorChilds to allow/deny top-level navigations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122138
2021-08-11 20:17:19 +00:00
Christoph Kerschbaumer 838a7bfdfc Bug 1723452: Update tests within dom/ipc to work with https-first enabled r=baku
Differential Revision: https://phabricator.services.mozilla.com/D122350
2021-08-11 13:58:24 +00:00
Nika Layzell aa9b1db7d6 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-10 14:31:17 +00:00
Nika Layzell a50cefe2cf Bug 1650089 - Part 1: Add a remoteTypeOverride option for about:blank loads triggered by chrome, r=annyG,kmag
After the changes in this bug, about:blank loads triggered by chrome will
finish in a "web" content process, as they have an untrusted null principal
without a precursor. In a few places throughout the codebase, however, we
perform about:blank loads with the explicit expectation that they do not change
processes. This new remoteTypeOverride option allows the intended final process
to be explicitly specified in this situation.

For security & simplicity reasons, this new attribute is limited to only be
usable on system-principal triggered loads of about:blank in toplevel browsing
contexts.

Differential Revision: https://phabricator.services.mozilla.com/D120671
2021-08-10 14:31:16 +00:00
Kagami Sascha Rosylight deeaa7ead1 Bug 1723050 - Part 16: Replace typedef by using in dom/ipc/ r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D121314
2021-08-09 13:37:28 +00:00
Timothy Nikkel 5014725e77 Bug 1678771. Add test. r=hiro
We implement a new nsIDOMWindowUtils function sendNativeTouchpadPan to do this. It is only implemented on Windows here.

Depends on D122048

Differential Revision: https://phabricator.services.mozilla.com/D122049
2021-08-08 22:04:18 +00:00
Timothy Nikkel 5eefc2666f Bug 1678771. Rename TouchpadPinchPhase to TouchpadGesturePhase. r=hiro
So we can use it for sending pan gestures too.

Depends on D114358

Differential Revision: https://phabricator.services.mozilla.com/D122048
2021-08-08 22:04:17 +00:00
Alexandru Michis bd251bad18 Bug 1714200 - Add mistakenly removed annotation for browser_CrashService_crash.js a=fix
CLOSED TREE
2021-08-06 23:50:46 +03:00
Olli Pettay 6492d1564b Bug 1721306, hide the tooltip when deactivating a BrowserParent, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D121756
2021-08-06 19:33:04 +00:00
Ben Hearsum aecb82dbfc Bug 1714200: skip failing mochitest-browser-chrome tests on M1 machines r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121221
2021-08-06 19:16:54 +00:00
Olli Pettay e361a4cdfa Bug 1724451, activate the relevant processes when restoring a bfcached page on the foreground tab, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D122008
2021-08-06 17:39:21 +00:00
Marian-Vasile Laza 9c94fc9c4c Backed out changeset 37008f131c6f (bug 1721306) for causing bustages on SessionHistoryEntry.cpp. 2021-08-06 19:28:58 +03:00
Olli Pettay ece46d2b64 Bug 1721306, hide the tooltip when deactivating a BrowserParent, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D121756
2021-08-06 15:13:36 +00:00