Commit Graph

652 Commits

Author SHA1 Message Date
Tooru Fujisawa
b55930f157 Bug 1701001 - Part 1: Standardize the condition for opening popup from window.open. r=smaug
Removed "width" feature from the popup condition, and removed related parameters
(aWidthSpecified, and aSizeSpec) from functions.

Also added "popup" feature that explicitly specify whether to request popup or
not.
This is only for content context, and it behaves differently than existing
"popup" feature for chrome context that makes the window no-style.

Differential Revision: https://phabricator.services.mozilla.com/D129410
2021-11-05 23:07:40 +00:00
Timothy Nikkel
d6a5d9edd2 Bug 1721601. Move "zoom in if can't zoom out" from being a flag to part of ZoomTarget for AsyncPanZoomController::ZoomToRect. r=botond
Instead of passing this flag all of the time for double taps we want to decide to do this or not in CalculateRectToZoomTo. Moving it into ZoomTarget seems like a good way to do this (which is done in the next patch).

Differential Revision: https://phabricator.services.mozilla.com/D128435
2021-10-16 05:07:55 +00:00
Matt Woodrow
1503ff4f1e Bug 1725267 - Split Paint entry points to make them easier to understand. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D125800
2021-09-22 03:36:52 +00:00
Matt Woodrow
b80e61355d Bug 1725267 - Remove unused region from PresShell::Paint. r=tnikkel
PaintFrame only uses the input region if !WidgetLayers, which Paint always passes.

Differential Revision: https://phabricator.services.mozilla.com/D125795
2021-09-22 03:36:50 +00:00
Emily McDonough
b297a4713c Bug 1721265 Part 2 - Send information about CSS page-size values to the print frontend through FinishPrintPreview r=emilio
This adds an optional paper orientation to PrintPreviewResultInfo populates it
from the CSS page size when finishing print preview. The value is then placed
in the PrintPreviewSuccessInfo to be sent to the frontend.

Differential Revision: https://phabricator.services.mozilla.com/D124248
2021-09-21 16:38:53 +00:00
Matt Woodrow
0f8591792b Bug 1727682 - Make WebRenderLayerManager not inherit LayerManager. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124433
2021-09-05 22:36:45 +00:00
Matt Woodrow
6d4cf7026a Bug 1728914 - Use WebRenderLayerManager directly in BrowserChild. r=gfx-reviewers,jrmuizel
Depends on D124414

Differential Revision: https://phabricator.services.mozilla.com/D124415
2021-09-05 02:16:36 +00:00
sotaro
dfb233a7a0 Bug 1728062 - Skip BrowserChild::ReinitRendering() when BrowserChild is not connected to compositor r=jrmuizel,gfx-reviewers
In some cases, like when we create a windowless browser, RemoteLayerTreeOwner/BrowserChild is not connected to a compositor.

When widget in parent process is PuppetWidget by nsAppShellService::CreateWindowlessBrowser() RemoteLayerTreeOwner/BrowserChild was not connected to compositor.

Differential Revision: https://phabricator.services.mozilla.com/D123917
2021-08-31 07:04:10 +00:00
Matt Woodrow
f8e5adee3d 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
1cf6d3ee11 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
d733b6df02 Bug 1727489 - Remove PLayerTransaction. r=jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D123595
2021-08-26 00:25:21 +00:00
Jeff Muizelaar
d22526c3e7 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
6caec94506 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
Matt Woodrow
eea082d1f2 Bug 1726291 - Remove FrameLayerBuilder. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D122930
2021-08-23 03:07:31 +00:00
Cosmin Sabou
1efa0d3a4e 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
2a95268df2 Bug 1726291 - Remove FrameLayerBuilder. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D122930
2021-08-20 02:20:39 +00:00
Edgar Chen
ed9fa7cb78 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
e29db3e917 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
23f349caf6 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
4fd48f2b8b 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
6e72455c50 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
Matt Woodrow
ed3765d185 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
Edgar Chen
db8c15e3fb 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
47ef456d32 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
Kagami Sascha Rosylight
663d168ce2 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
Matt Woodrow
d4e496f271 Bug 1722258 - Convert more LayerManager usage to use WindowRenderer. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D120920
2021-08-05 06:48:34 +00:00
Matt Woodrow
144a6ed620 Bug 1722258 - Split out fallible composite-only path of PresShell::Paint. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D120919
2021-08-05 06:48:33 +00:00
Emilio Cobos Álvarez
7f67fb748b Bug 1722910 - Remove unused FrameLoader.requestNotifyAfterRemotePaint machinery. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D121195
2021-07-30 09:37:20 +00:00
Csoregi Natalia
4bee9e525f Backed out 3 changesets (bug 1722258) for causing Bug 1722935. a=backout
Backed out changeset cf8a1175abd1 (bug 1722258)
Backed out changeset 41176d476eb7 (bug 1722258)
Backed out changeset 4149d596d03d (bug 1722258)
2021-07-29 20:19:48 +03:00
Matt Woodrow
5436ad0e68 Bug 1722258 - Convert more LayerManager usage to use WindowRenderer. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D120920
2021-07-28 20:58:22 +00:00
Matt Woodrow
2ad605e75d Bug 1722258 - Split out fallible composite-only path of PresShell::Paint. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D120919
2021-07-28 20:58:22 +00:00
Hiroyuki Ikezoe
c16f3c1786 Bug 1695806 - Make CloneDocumentTreeIntoSelf return a MozPromise to be able to wait for its completion. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D119949
2021-07-27 00:47:44 +00:00
Matt Woodrow
8964031845 Bug 1721537 - Split out WindowRenderer base class from LayerManager. r=miko
Depends on D120439

Differential Revision: https://phabricator.services.mozilla.com/D120440
2021-07-22 22:58:57 +00:00
Emilio Cobos Álvarez
c62a437436 Bug 1716537 - Propagate print setting updates to remote sub-subdocuments as well. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D119103
2021-07-08 13:21:50 +00:00
Narcis Beleuzu
ea843eb725 Backed out 2 changesets (bug 1716537) for WP failures on iframe-cross-origin-print.sub.html
Backed out changeset aa3e3f80bd68 (bug 1716537)
Backed out changeset 3226bc23c713 (bug 1716537)
2021-07-07 23:20:47 +03:00
Emilio Cobos Álvarez
76845dfd70 Bug 1716537 - Propagate print setting updates to remote sub-subdocuments as well. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D119103
2021-07-07 18:40:11 +00:00
Emilio Cobos Álvarez
c4f1332db7 Bug 1719328 - Fix an embarrassing typo in BrowserChild::RecvPreserveLayers. r=Mossop CLOSED TREE
This can cause the tab switcher to get confused. The tab switcher clears this
flag in order to get layer updates, but of course that wasn't happening and
warmed-up tabs after preserveLayers(true) had been called (due to window
minimization on Windows, or occlusion on macOS) ended up in a forever-loading
state.

Quite unfortunate that I didn't notice it when writing or skimming over my
patch this morning, that it passed review, and that compilers don't complain
about this, sigh.

Differential Revision: https://phabricator.services.mozilla.com/D119271
2021-07-07 12:39:52 +00:00
Butkovits Atila
15ebcbe33d Backed out 2 changesets (bug 1716537) for causing failures at iframe-cross-origin-print.sub.html. CLOSED TREE
Backed out changeset ddc93b2746df (bug 1716537)
Backed out changeset 7086ac4e5818 (bug 1716537)
2021-07-06 21:42:14 +03:00
Emilio Cobos Álvarez
d64b09d13f Bug 1716537 - Propagate print setting updates to remote sub-subdocuments as well. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D119103
2021-07-06 16:54:41 +00:00
Dorel Luca
f9f2388e52 Backed out 2 changesets (bug 1716537) for Build bustages. CLOSED TREE
Backed out changeset 0b5bfe85b344 (bug 1716537)
Backed out changeset c6561b266910 (bug 1716537)
2021-07-06 18:53:22 +03:00
Emilio Cobos Álvarez
137a9f579f Bug 1716537 - Propagate print setting updates to remote sub-subdocuments as well. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D119103
2021-07-06 15:17:44 +00:00
Emilio Cobos Álvarez
435eb57003 Bug 1717983 - Pack bool fields better in BrowserChild. r=nika
Not a big deal, but given we have a lot of them, BrowserParent does it,
and it's low effort, seemed worth doing.

Depends on D118884

Differential Revision: https://phabricator.services.mozilla.com/D118885
2021-07-05 17:31:49 +00:00
Emilio Cobos Álvarez
f17f9753e7 Bug 1717983 - Don't consider a browser active if the tab is inactive but we're preserving layers. r=nika
GeckoView always calls preserveLayers(true) on all <browser> elements,
which causes the puppet widget to always be considered visible.

Given how the code worked before, aBrowsingContext.isActive = false
after that call would deactivate the pres shell, but after my patch it
stops doing so.

We don't really want to un-throttle the refresh driver etc just because
we're preserving layers, so propagate the state to the child process and
account for that in the logic to determine PresShell activeness.

Depends on D118703

Differential Revision: https://phabricator.services.mozilla.com/D118884
2021-07-05 17:31:49 +00:00
Emilio Cobos Álvarez
1af5e8922e Bug 1717983 - Improve PresShell active flag handling. r=nika
This moves the logic of whether a pres shell should be active to a
single place to make it sane to reason about, and fixes the
subdocument propagation when a BrowserChild becomes visible.

Differential Revision: https://phabricator.services.mozilla.com/D118703
2021-07-05 17:31:48 +00:00
Andreas Farre
bd9faf87ad Bug 1701303 - Move counting of private browsing contexts to parent process. r=smaug,johannh
Move the counting of private browsing contexts to the parent
process. Also change to only consider non-chrome browsing contexts
when counting private contexts. The latter is possible due to bug
1528115, because we no longer need to support hidden private windows.

With counting in the parent process we can make sure that when we're
changing remoteness on a private browsing context the private browsing
context count never drops to zero. This fixes an issue with Fission,
where we remoteness changes could transiently have a zero private
browsing context count, that would be mistaken for the last private
browsing context going away.

Changing to only count non-chrome browsing contexts makes us only fire
'last-pb-context-exited' once, and since we count them in the parent
there is no missing information about contexts that makes us wait for
a content process about telling us about insertion or removal of
browsing contexts.

Differential Revision: https://phabricator.services.mozilla.com/D118182
2021-07-05 15:17:55 +00:00
Marian-Vasile Laza
7cf836b79b Backed out changeset 55f827545de2 (bug 1701303) for causing bustages on ContentParent.cpp. CLOSED TREE 2021-07-05 17:12:13 +03:00
Andreas Farre
042d294d58 Bug 1701303 - Move counting of private browsing contexts to parent process. r=smaug,johannh
Move the counting of private browsing contexts to the parent
process. Also change to only consider non-chrome browsing contexts
when counting private contexts. The latter is possible due to bug
1528115, because we no longer need to support hidden private windows.

With counting in the parent process we can make sure that when we're
changing remoteness on a private browsing context the private browsing
context count never drops to zero. This fixes an issue with Fission,
where we remoteness changes could transiently have a zero private
browsing context count, that would be mistaken for the last private
browsing context going away.

Changing to only count non-chrome browsing contexts makes us only fire
'last-pb-context-exited' once, and since we count them in the parent
there is no missing information about contexts that makes us wait for
a content process about telling us about insertion or removal of
browsing contexts.

Differential Revision: https://phabricator.services.mozilla.com/D118182
2021-07-05 13:16:49 +00:00
Marian-Vasile Laza
83fb5bc219 Backed out changeset 4854ff4fff72 (bug 1701303) for causing bustages on nsDocShell.cpp. CLOSED TREE 2021-07-05 14:21:48 +03:00
Andreas Farre
e7338fb5d4 Bug 1701303 - Move counting of private browsing contexts to parent process. r=smaug,johannh
Move the counting of private browsing contexts to the parent
process. Also change to only consider non-chrome browsing contexts
when counting private contexts. The latter is possible due to bug
1528115, because we no longer need to support hidden private windows.

With counting in the parent process we can make sure that when we're
changing remoteness on a private browsing context the private browsing
context count never drops to zero. This fixes an issue with Fission,
where we remoteness changes could transiently have a zero private
browsing context count, that would be mistaken for the last private
browsing context going away.

Changing to only count non-chrome browsing contexts makes us only fire
'last-pb-context-exited' once, and since we count them in the parent
there is no missing information about contexts that makes us wait for
a content process about telling us about insertion or removal of
browsing contexts.

Differential Revision: https://phabricator.services.mozilla.com/D118182
2021-07-05 09:30:53 +00:00
Sandor Molnar
a7f0c731ec Backed out changeset b46a490223a1 (bug 1717983) for causing android failures. CLOSED TREE 2021-06-25 03:29:08 +03:00