Files
tubestation/dom/serviceworkers/PServiceWorker.ipdl
Andrew Sutherland 8055f744a9 Bug 1113522 - ExtendableMessageEvent.source should be ServiceWorker-aware. r=dom-worker-reviewers,edenchuang
ServiceWorkers aren't exposed as clients, so when we are sending a postMessage
from them, we need to capture their ServiceWorkerDescriptor and propagate that
instead of the client state.

Differential Revision: https://phabricator.services.mozilla.com/D213721
2024-10-24 03:02:37 +00:00

29 lines
598 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 PBackground;
include ClientIPCTypes;
include DOMTypes;
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
protocol PServiceWorker
{
manager PBackground;
parent:
async Teardown();
async PostMessage(ClonedOrErrorMessageData aClonedData, PostMessageSource aSource);
child:
async __delete__();
};
} // namespace dom
} // namespace mozilla