forked from mirrors/gecko-dev
<!-- Please describe your changes on the following line: --> At the moment, worklets are always exposed, even though their spec is still a draft. This PR hides them behind a pref. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #17680. - [X] These changes do not require tests because the existing worklet tests do the job. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 92eeec297bb14f08873aecc04ca3734a37c0478f --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : d99773ba42509e1186b63fcd82826b0d479b9453
13 lines
500 B
Text
13 lines
500 B
Text
/* 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/. */
|
|
|
|
// https://drafts.css-houdini.org/worklets/#worklet
|
|
[Pref="dom.worklet.enabled", Exposed=(Window)]
|
|
interface Worklet {
|
|
[NewObject] Promise<void> addModule(USVString moduleURL, optional WorkletOptions options);
|
|
};
|
|
|
|
dictionary WorkletOptions {
|
|
RequestCredentials credentials = "omit";
|
|
};
|