Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez db025983c5 Bug 1758705 - Don't close shared worker as it can cause the message not to be delivered intermittently.
MANUAL PUSH: Orange fix CLOSED TREE
2022-03-11 18:19:42 +01:00
Emilio Cobos Álvarez e3104bc919 Bug 1758705 - Hack: Don't crash in worklets for now.
GetWorkerPrivateFromContext asserts in that case, rightfully.

MANUAL PUSH: Orange fixup CLOSED TREE.
2022-03-11 14:11:28 +01:00
Emilio Cobos Álvarez 8e81f196b9 Bug 1758705 - Make origin trials in workers work. r=asuth,dom-worker-reviewers
(pun intended)

Snapshot the trials at worker creation time, which should be enough for
our purposes.

Differential Revision: https://phabricator.services.mozilla.com/D140660
2022-03-11 11:05:09 +00:00
Emilio Cobos Álvarez a4bfdcb8d2 Bug 1756500 - ESLint fix.
MANUAL PUSH: Trivial fix CLOSED TREE
2022-03-08 19:09:06 +01:00
Emilio Cobos Álvarez 5e5d0c42da Bug 1756500 - Add origin trial tests for interfaces. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D140193
2022-03-08 15:24:16 +00:00
Emilio Cobos Álvarez 0205a7f098 Bug 1756500 - Add some basic origin trial tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139403
2022-03-08 15:24:16 +00:00
Emilio Cobos Álvarez 6ea61a050a Bug 1756500 - Implement key verification for origin trials. r=keeler,nkulatova
Somewhat straight-forward. Add a test key so that we can add some tests
for this.

Differential Revision: https://phabricator.services.mozilla.com/D139402
2022-03-08 15:24:16 +00:00
Emilio Cobos Álvarez 93ce20c599 Bug 1756500 - Add [Trial="Name"] condition to WebIDL. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D139315
2022-03-08 15:24:15 +00:00
Emilio Cobos Álvarez 09ffd60801 Bug 1756500 - Store OriginTrials in Document. r=smaug
Use the http-equiv meta code-path to handle it. No tests yet,
because for now we're not using any key so verification
would always fail.

Differential Revision: https://phabricator.services.mozilla.com/D139314
2022-02-21 21:12:04 +00:00
Emilio Cobos Álvarez c9f9939aa6 Bug 1755956 - Really fix rusttests on windows, by using utf-8 to read Cargo.toml in RunCbindgen.py so it doesn't choke on my name.
(And revert the previous commit).

MANUAL PUSH: Silly windows-only encoding fix CLOSED TREE
2022-02-18 16:29:44 +01:00
Emilio Cobos Álvarez 1e51040ed8 Bug 1755956 - Use an absolute path to try to keep windows rusttest build happy.
MANUAL PUSH: Trivial fix CLOSED TREE
2022-02-18 16:06:24 +01:00
Emilio Cobos Álvarez 5c525da4a0 Bug 1755956 - Add initial boilerplate for origin trials. r=smaug,hsivonen
This patch imports and implements all the infrastructure for origin
trial tokens, minus the crypto stuff / token verification.

We still don't hook it anywhere. The intended setup for now would be to
have the `OriginTrials` object hanging off the `Document` (or global
perhaps, not sure yet). That has a self-descriptive API to enable trials
(UpdateFromToken), and check enabledness status (IsEnabled).

There are some tests in the origin-trial-token crate
(third_party/rust/origin-trial-token/tests.rs). No test for the DOM code
yet because this isn't hooked into yet.

Differential Revision: https://phabricator.services.mozilla.com/D139033
2022-02-18 13:57:30 +00:00