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

9338 Коммитов

Автор SHA1 Сообщение Дата
Dana Keeler 9ee70aa7e7 Bug 1789697 - use nsITransportSecurityInfo directly instead of serializing it in PWindowGlobal::GetSecurityInfo r=nika
nsITransportSecurityInfo can be sent across IPC directly - it doesn't need to
be serialized and deserialized to/from a string any longer.

Depends on D156607

Differential Revision: https://phabricator.services.mozilla.com/D156718
2022-09-09 22:14:18 +00:00
Artur Iunusov f960b73887 Bug 1585131, 1356045 - Removed unused dom/ipc/test.xhtml. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D156701
2022-09-08 18:03:34 +00:00
Peter Van der Beken f30f94b8ec Bug 1789812 - ContentParent::RecvHistoryGo should always resolve, even if not navigating. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D156812
2022-09-08 13:41:09 +00:00
Kershaw Chang cc6c147f88 Bug 1760580 - P1: Make nsIRequest support to store canceled reason, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D156070
2022-09-08 09:11:18 +00:00
Olli Pettay 4a178ce537 Bug 1789636 - Remove unused ContentListener class, Send/RecvEvent and RemoteDOMEvent, r=aiunusov
Differential Revision: https://phabricator.services.mozilla.com/D156687
2022-09-07 20:17:49 +00:00
Artur Iunusov af993e2808 Bug 1756575 - Removed unused activateFrameEvent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D156657
2022-09-07 13:12:32 +00:00
Olli Pettay 93acdfad59 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
sotaro e46d0ee79e Bug 1789353 - Rename BasicLayerManager to FallbackRenderer in BrowserChild::InitRenderingState() r=gfx-reviewers,lsalzman
BasicLayerManager was already removed. Instead FallbackRenderer is used for fallback.

Differential Revision: https://phabricator.services.mozilla.com/D156525
2022-09-06 10:52:24 +00:00
Artur Iunusov 8e7080006a Bug 1590232: Added missing header. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D156466
2022-09-05 16:33:39 +00:00
Butkovits Atila 2adc2004ed Backed out changeset 9b5bc598452a (bug 1787718) as request by Henrik. 2022-09-02 16:22:40 +03:00
Alexandre Lissy b135ca0732 Bug 1780796 - Use one process per platform decoder module sandbox requirements r=alwu,nika,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D152545
2022-09-01 12:59:32 +00:00
Jens Stutte 26b6f353fb Bug 1777198 - Improve IPCShutdownState annotation. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D155814
2022-09-01 09:43:37 +00:00
Sandor Molnar 99c83b6427 Backed out changeset 6cebcfdd9245 (bug 1777198) for causing build bustages. CLOSED TREE 2022-09-01 11:49:48 +03:00
Jens Stutte 6d8eda177a Bug 1777198 - Improve IPCShutdownState annotation. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D155814
2022-09-01 08:08:32 +00:00
Henrik Skupin f7dfa544e5 Bug 1787718 - [dom] Add process id to shutdown diagnostic log output. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D156114
2022-08-31 20:55:33 +00:00
Tom Schuster e3145175c3 Bug 1787584 - Revert RecvSetCursor to use the correct size comparison.
This just converts the comparison to what we had before. aHeight * aStride must be exactly equal to Size().

Differential Revision: https://phabricator.services.mozilla.com/D155775
2022-08-27 10:23:01 +00:00
Dana Keeler b4c45d4248 Bug 1781104 - remove unnecessary bits parameter from nsICertOverrideService r=djackson,necko-reviewers,geckoview-reviewers,extension-reviewers,kershaw,calu
Differential Revision: https://phabricator.services.mozilla.com/D152826
2022-08-26 18:48:38 +00:00
Nika Layzell fc835b08d2 Bug 1781129 - Part 3: Remove Shmem overload of GetSurfaceData, r=edgar
After the previous changes there was only one consumer left of the Shmem
version of GetSurfaceData, which could easily be changed to use BigBuffer,
removing the need for that overload.

After that consumer is removed, the interface was also simplified as the
generic logic in the implementation was no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D151854
2022-08-26 16:08:06 +00:00
Nika Layzell ff386ec755 Bug 1781129 - Part 2: Use BigBuffer for ShmemImage, r=edgar
The ShmemImage type was previously implemented using a Shmem, however due to
the usage patterns, `BigBuffer` is probably a better fit, and allows unifying
more code in nsContentUtils.

Differential Revision: https://phabricator.services.mozilla.com/D151853
2022-08-26 16:08:05 +00:00
Nika Layzell 91a521bf3a Bug 1781129 - Part 1: Use BigBuffer for IPCDataTransfer, r=edgar
The IPCDataTransfer type is used to transfer Clipboard/Drag & Drop payloads
over IPC to allow them to be written to or read from the relevant system
interfaces. Previously, the system which was used was somewhat complex, and
tried to use Shmem in some cases to store buffers out of line. Now that
BigBuffer is available, it can be simplified substantially.

In addition, this change removed the memory buffer overload of GetSurfaceData,
as the only consumer was using it to immediately send the payload over IPC as a
nsCString. It was changed to instead use `BigBuffer` as that is more efficient
in a large buffer situation, and reduces the number of required copies.

Differential Revision: https://phabricator.services.mozilla.com/D151852
2022-08-26 16:08:05 +00:00
James Teh 08a817ec76 Bug 1786496: When a new top level DocAccessibleParent is constructed, destroy the old top level DocAccessibleParent if there is one. r=morgan
Otherwise, GetTopLevelDocAccessible() might return the wrong document for a short while.
This causes intermittent problems for Windows tests on CI, as the parent COM proxy might be sent to the wrong document (and thus never sent to the right document).
In this case, the new document will never send events to the parent process, causing the test to time out.

Differential Revision: https://phabricator.services.mozilla.com/D155363
2022-08-24 02:18:22 +00:00
edguloien 6ff16b6810 Bug 1713203 - Added check for host, scheme and origin attributes check before cookie change broadcast to content processes r=dveditz,dragana,nika
Differential Revision: https://phabricator.services.mozilla.com/D146346
2022-08-23 17:36:24 +00:00
sotaro 0a6cd85acb Bug 1785969 - Remove unused code from CompositorBridgeParent r=gfx-reviewers,lsalzman
CompositorBridgeParent still has code that was used for legacy layers.

Differential Revision: https://phabricator.services.mozilla.com/D155045
2022-08-22 22:42:58 +00:00
Marian-Vasile Laza 9274b092fe Backed out 4 changesets (bug 1781129) for causing mochitest failures on test_bug490879.html. CLOSED TREE
Backed out changeset 37da1d18cde9 (bug 1781129)
Backed out changeset 1ae213bfa43e (bug 1781129)
Backed out changeset dcebc98ea1f1 (bug 1781129)
Backed out changeset 0df2f2832755 (bug 1781129)
2022-08-22 23:07:56 +03:00
Nika Layzell e1c2681a2f Bug 1781129 - Part 3: Remove Shmem overload of GetSurfaceData, r=edgar
After the previous changes there was only one consumer left of the Shmem
version of GetSurfaceData, which could easily be changed to use BigBuffer,
removing the need for that overload.

After that consumer is removed, the interface was also simplified as the
generic logic in the implementation was no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D151854
2022-08-22 15:38:15 +00:00
Nika Layzell f8a40edbb1 Bug 1781129 - Part 2: Use BigBuffer for ShmemImage, r=edgar
The ShmemImage type was previously implemented using a Shmem, however due to
the usage patterns, `BigBuffer` is probably a better fit, and allows unifying
more code in nsContentUtils.

Differential Revision: https://phabricator.services.mozilla.com/D151853
2022-08-22 15:38:15 +00:00
Nika Layzell 6c8af6eff5 Bug 1781129 - Part 1: Use BigBuffer for IPCDataTransfer, r=edgar
The IPCDataTransfer type is used to transfer Clipboard/Drag & Drop payloads
over IPC to allow them to be written to or read from the relevant system
interfaces. Previously, the system which was used was somewhat complex, and
tried to use Shmem in some cases to store buffers out of line. Now that
BigBuffer is available, it can be simplified substantially.

In addition, this change removed the memory buffer overload of GetSurfaceData,
as the only consumer was using it to immediately send the payload over IPC as a
nsCString. It was changed to instead use `BigBuffer` as that is more efficient
in a large buffer situation, and reduces the number of required copies.

Differential Revision: https://phabricator.services.mozilla.com/D151852
2022-08-22 15:38:14 +00:00
Andreas Farre 4b493b6a30 Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio
By making image loading in <embed> and <object> behave more like when
an <iframe> loads an image, we can make sure that the synthetic
document generated is process switched if the image is cross
origin. This is done by making image loading in nsObjectLoadingContent
follow the document loading path.

We also make sure that we pass the image size back to the embedder
element to not get stuck with the intrinsic size.

To avoid named targeting being able to target these synthetic
documents, as well as showing up in `Window.frames` and being counted
in `Window.length`, we keep a filtered list of non-synthetic browsing
contexts for that use-case.

This feature is controlled by two prefs:

* browser.opaqueResponseBlocking.syntheticBrowsingContext

  This triggers the creation of synthetic documents for images loaded
  in <object> or embed.

* browser.opaqueResponseBlocking.syntheticBrowsingContext.filter

  This turns on the filtering of synthetic browsing contexts in named
  targeting, `Window.length` and `Window.frames`.

Differential Revision: https://phabricator.services.mozilla.com/D148117
2022-08-16 16:42:58 +00:00
Edgar Chen 3e5030eb96 Bug 1755863 - Part 2: Add async API/IPC for getting matching data flavors from clipboard; r=nika,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152516
2022-08-15 20:27:26 +00:00
Hiroyuki Ikezoe c0d588b85a Bug 1757410 - Ensure MobileViewportManager::UpdateSizesBeforeReflow gets called with up-to-date app-units-per-dev-pixel and CV bounds in UIResolutionChangedInternal. r=emilio
Before this change, BrowserChild::RecvUIResolutionChanged calls
UIResolutionChangedSync first, then updates CV bounds. With the setup, when
UIResolutionChangedInternal gets called, the CV bounds hasn't yet been updated
so that UpdateSizesBeforeReflow doesn't get the proper metrics.

This change consists of three parts;

1) Use UIResolutionChangedSync instead of UIResolutionChanged in
   nsDocumentViewer::SetBoundsWithFlags which calls
   nsPresContext::AppUnitsPerDevPixel which needs to be actually updated by
   UIResolutionChangedSync.
2) Move the UIResolutionChangedSync call in RecvUIResolutionChanged after
   the SetPositionAndSize in the function.
3) Add a UpdateSizesBeforeReflow call in UIResolutionChangedInternal

As for 1), nsDocumentViewer::SetBoundsWithFlags  calls
nsPresContext::AppUnitsPerDevPixel so that UIResolutionChangedInternal needs to be
called synchronously rather than asynchronously.

As for 2), SetPositionAndSize gets called only if the BrowserChild size is changed,
so we need to call UIResolutionChangedSync in other cases.

Differential Revision: https://phabricator.services.mozilla.com/D153687
2022-08-15 03:39:20 +00:00
Sandor Molnar 8aada8ee04 Backed out 2 changesets (bug 1595491) for causing build bustages in docshell/base/BrowsingContext.cpp CLOSED TREE
Backed out changeset 3687b7153c44 (bug 1595491)
Backed out changeset 91d87de145e3 (bug 1595491)
2022-08-12 19:50:20 +03:00
Benjamin VanderSloot 5eb779d9f9 Bug 1777497, part 3 - Require a grant (auto or manual) for the requestStorageAccessUnderSite permission, r=timhuang,pbz,anti-tracking-reviewers
Depends on D151279

Differential Revision: https://phabricator.services.mozilla.com/D151280
2022-08-12 16:12:06 +00:00
Andreas Farre ec3d91462e Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio
By making image loading in <embed> and <object> behave more like when
an <iframe> loads an image, we can make sure that the synthetic
document generated is process switched if the image is cross
origin. This is done by making image loading in nsObjectLoadingContent
follow the document loading path.

We also make sure that we pass the image size back to the embedder
element to not get stuck with the intrinsic size.

To avoid named targeting being able to target these synthetic
documents, as well as showing up in `Window.frames` and being counted
in `Window.length`, we keep a filtered list of non-synthetic browsing
contexts for that use-case.

This feature is controlled by two prefs:

* browser.opaqueResponseBlocking.syntheticBrowsingContext

  This triggers the creation of synthetic documents for images loaded
  in <object> or embed.

* browser.opaqueResponseBlocking.syntheticBrowsingContext.filter

  This turns on the filtering of synthetic browsing contexts in named
  targeting, `Window.length` and `Window.frames`.

Differential Revision: https://phabricator.services.mozilla.com/D148117
2022-08-12 15:48:26 +00:00
Emilio Cobos Álvarez ef562aae0a Bug 774398 - Hack to make print and viewport media query listeners fire when printing. r=geckoview-reviewers,owlish,dholbert
This still doesn't fire on print settings changes, so it uses the
default page size. Which is probably better than nothing, but...

To make viewport-size media-query listeners work more generally for
printed documents, we would need to re-clone the top document
unconditionally for all print settings changes, which needs front-end
work at least, and is dubious if the page changes dynamically.

Differential Revision: https://phabricator.services.mozilla.com/D150499
2022-08-11 23:11:37 +00:00
Andrew McCreight 2cc5606cfe Bug 1784036 - Don't reject null principals in RecvCompleteAllowAccessFor. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D154396
2022-08-11 17:42:07 +00:00
Gabriele Svelto d72a678e73 Bug 1782720 - Enable the process priority manager on Linux by default r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D153570
2022-08-11 12:33:16 +00:00
Norisz Fay c03af93699 Backed out 5 changesets (bug 1777497, bug 1782526) for causing build bustages on PContent.ipdl CLOSED TREE
Backed out changeset 64e16a70484e (bug 1782526)
Backed out changeset 381806d5afc3 (bug 1777497)
Backed out changeset 820f6f9c9cc3 (bug 1777497)
Backed out changeset f541ad605d6d (bug 1777497)
Backed out changeset 620681c22b83 (bug 1777497)
2022-08-11 03:20:29 +03:00
Benjamin VanderSloot 54d8159ea5 Bug 1777497, part 3 - Require a grant (auto or manual) for the requestStorageAccessUnderSite permission, r=timhuang,pbz,anti-tracking-reviewers
Depends on D151279

Differential Revision: https://phabricator.services.mozilla.com/D151280
2022-08-11 00:04:39 +00:00
Neil Deakin 8c6f5c9fee Bug 1777149, ensure the dropEffect is being set correctly when a drop ends in a different process, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153979
2022-08-10 23:55:08 +00:00
Greg Tatum 3c686461e9 Bug 1782579 - Pass languages to the text recognition api; r=nordzilla,emilio
Differential Revision: https://phabricator.services.mozilla.com/D153668
2022-08-10 19:38:46 +00:00
Norisz Fay 8bc30afa79 Backed out 6 changesets (bug 1782578, bug 1782579) for causing mochitest failures on browser_parsable_css.js CLOSED TREE
Backed out changeset bdb42cfe6213 (bug 1782579)
Backed out changeset 5f17ee4cc4df (bug 1782578)
Backed out changeset 4f969d46dd37 (bug 1782578)
Backed out changeset b4c51d1ffa99 (bug 1782578)
Backed out changeset 98d0d6bcd37b (bug 1782578)
Backed out changeset 8332d678079e (bug 1782578)
2022-08-10 20:19:31 +03:00
Greg Tatum 980c8191a3 Bug 1782579 - Pass languages to the text recognition api; r=nordzilla,emilio
Differential Revision: https://phabricator.services.mozilla.com/D153668
2022-08-10 16:08:46 +00:00
Nika Layzell 45397cbfdd Bug 1779792 - Part 4: Deduplicate ProcessChild subclass constructors, r=ipc-reviewers,necko-reviewers,media-playback-reviewers,alwu,mccr8
These constructors are unnecessary and can be defined with a `using` statement,
making it easier to change all constructors simultaneously.

Differential Revision: https://phabricator.services.mozilla.com/D153620
2022-08-10 14:55:23 +00:00
Nika Layzell 2ac29a461a Bug 1779792 - Part 3: Use an endpoint to bind the initial actor in parent processes, r=ipc-reviewers,necko-reviewers,media-playback-reviewers,alwu,mccr8
This improves consistency with the child process case, and will make it easier
to attach additional state without needing to thread it through every child
process callsite manually.

Differential Revision: https://phabricator.services.mozilla.com/D153619
2022-08-10 14:55:22 +00:00
Nika Layzell d45df271ec Bug 1779792 - Part 2: Use an Endpoint to bind the initial actor in child processes, r=ipc-reviewers,necko-reviewers,media-playback-reviewers,mccr8,alwu
This type is also used in other places to start non-initial actors, and will
allow us to attach additional state more easily without needing to thread it
through every child process callsite manually.

Differential Revision: https://phabricator.services.mozilla.com/D153618
2022-08-10 14:55:22 +00:00
Christian Holler 7d6674a2d0 Bug 1783836 - Remove dead SetOfflinePermission IPC call. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D154090
2022-08-10 13:40:05 +00:00
Christian Holler 146a80ecff Bug 1783844 - Remove IPC::Principal type remains from codebase. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D154091
2022-08-10 13:39:11 +00:00
Andrew McCreight 5522054cb3 Bug 1783933, part 2 - Use StaticAutoPtr in ContentParent. r=nika
This avoids static ctors and dtors, but my main motivation is to
keeps us from asserting when a ContentParent leaks, in order to
keep different leaks from getting bucketed together on TreeHerder.
StaticAutoPtr has no destructor, so sContentParents will leak
instead of running the destructor that will assert if the list
is not empty.

Differential Revision: https://phabricator.services.mozilla.com/D154142
2022-08-10 03:33:02 +00:00
Andrew McCreight b3cc31f86a Bug 1783933, part 1 - Remove ContentParent::sPrivateContent. r=nika
This static variable used to be set in a method called RecvPrivateDocShellsExist,
but it is now always null.

Differential Revision: https://phabricator.services.mozilla.com/D154147
2022-08-10 03:33:01 +00:00
Christian Holler fa4e17e3d0 Bug 1781217 - Remove IPC::Principal type from IPC interfaces. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D153847
2022-08-09 13:00:40 +00:00