Commit 64b62a99 authored by Andrew McCreight's avatar Andrew McCreight Committed by Richard Pospesel
Browse files

Bug 1851195 - Remove PContent::DeviceReset. r=gfx-reviewers,bradwerth a=pascalc

This IPC message is never used. about:support runs in the
parent process, and test_device_reset.html is a mochitest chrome,
so it also runs in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D187292
parent 86edc308
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -4257,10 +4257,8 @@ nsDOMWindowUtils::LeaveChaosMode() {

NS_IMETHODIMP
nsDOMWindowUtils::TriggerDeviceReset() {
  ContentChild* cc = ContentChild::GetSingleton();
  if (cc) {
    cc->SendDeviceReset();
    return NS_OK;
  if (!XRE_IsParentProcess()) {
    return NS_ERROR_NOT_AVAILABLE;
  }

  GPUProcessManager* pm = GPUProcessManager::Get();
+0 −9
Original line number Diff line number Diff line
@@ -6331,15 +6331,6 @@ bool ContentParent::DeallocPSessionStorageObserverParent(
  return mozilla::dom::DeallocPSessionStorageObserverParent(aActor);
}

mozilla::ipc::IPCResult ContentParent::RecvDeviceReset() {
  GPUProcessManager* pm = GPUProcessManager::Get();
  if (pm) {
    pm->SimulateDeviceReset();
  }

  return IPC_OK();
}

mozilla::ipc::IPCResult ContentParent::RecvBHRThreadHang(
    const HangDetails& aDetails) {
  nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();
+0 −2
Original line number Diff line number Diff line
@@ -1226,8 +1226,6 @@ parent:
    // Tell the parent that the child has gone idle for the first time.
    async FirstIdle();

    async DeviceReset();

    async CopyFavicon(nsIURI oldURI, nsIURI newURI, bool isPrivate);

    async FindImageText(ShmemImage image) returns (TextRecognitionResultOrError result);