Files
sousa-gecko/dom/ipc/PContentPermissionRequest.ipdl
Andrew McCreight 4fe219b196 Bug 2019112 - Fold the prompt message into ContentPermissionRequest construction. r=nika
Instead of sending a separate message, immediately do the initialization after the
actor is created and registered, via a new override of RecvPContentPermissionRequestConstructor.
I didn't move the initialization inside AllocPContentPermissionRequestParent because
the Init() method runs JS so it seems like a bad idea to do when the actor isn't fully set up.

aRequests is now set inside the Init() method instead of the constructor, which allows us
to avoid a copy of this array at the low cost of making the diff gross.

Differential Revision: https://phabricator.services.mozilla.com/D284774
2026-03-03 17:00:18 +00:00

29 lines
636 B
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
include protocol PContent;
include PContentPermission;
include "nsContentPermissionHelper.h";
namespace mozilla {
namespace dom {
[ManualDealloc, ChildImpl="RemotePermissionRequest", ParentImpl=virtual]
protocol PContentPermissionRequest
{
manager PContent;
parent:
async Destroy();
child:
async NotifyResult(bool allow, PermissionChoice[] choices);
async __delete__();
};
} // namespace dom
} // namespace mozilla