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
This commit is contained in:
Andrew McCreight 2023-09-01 19:03:43 +00:00
parent a2f3df8291
commit 431dd513b9
3 changed files with 2 additions and 15 deletions

View File

@ -4287,10 +4287,8 @@ nsDOMWindowUtils::LeaveChaosMode() {
NS_IMETHODIMP NS_IMETHODIMP
nsDOMWindowUtils::TriggerDeviceReset() { nsDOMWindowUtils::TriggerDeviceReset() {
ContentChild* cc = ContentChild::GetSingleton(); if (!XRE_IsParentProcess()) {
if (cc) { return NS_ERROR_NOT_AVAILABLE;
cc->SendDeviceReset();
return NS_OK;
} }
GPUProcessManager* pm = GPUProcessManager::Get(); GPUProcessManager* pm = GPUProcessManager::Get();

View File

@ -6721,15 +6721,6 @@ bool ContentParent::DeallocPSessionStorageObserverParent(
return mozilla::dom::DeallocPSessionStorageObserverParent(aActor); 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( mozilla::ipc::IPCResult ContentParent::RecvBHRThreadHang(
const HangDetails& aDetails) { const HangDetails& aDetails) {
nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService(); nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();

View File

@ -1259,8 +1259,6 @@ parent:
// Tell the parent that the child has gone idle for the first time. // Tell the parent that the child has gone idle for the first time.
async FirstIdle(); async FirstIdle();
async DeviceReset();
async CopyFavicon(nullable nsIURI oldURI, nullable nsIURI newURI, bool isPrivate); async CopyFavicon(nullable nsIURI oldURI, nullable nsIURI newURI, bool isPrivate);
async FindImageText(IPCImage image, nsCString[] languages) async FindImageText(IPCImage image, nsCString[] languages)