Closed flackr closed 2 years ago
RFC is updated, let me know if there's anything else you'd like to see here. I also added a short conclusion to explain the decision and rationale.
FYI, I don't have write access to be able to merge this.
I would ideally like to see some approval from other members of the @web-platform-tests/wpt-core-team The last update was not yet a week ago, so per the process we do need to allow a little additional time for review.
Ack, thanks! Apologies I'm not familiar with the process here.
Please move the conclusion and the winning proposal into the "Details" section, and have the other alternative solutions in an "Alternatives considered" section.
I think there are some details missing. Which responses will get the rewrite? How do you opt in? Where is the script injected? Is the injection a classic script or a module script? (Module scripts have defer
semantics by default, and tests may complete before deferred scripts are run.)
Thanks for taking a look!
Please move the conclusion and the winning proposal into the "Details" section, and have the other alternative solutions in an "Alternatives considered" section.
Done.
I think there are some details missing. Which responses will get the rewrite? How do you opt in? Where is the script injected? Is the injection a classic script or a module script? (Module scripts have
defer
semantics by default, and tests may complete before deferred scripts are run.)
I've now covered all of these in the details section. Let me know if there's anything else you'd like to see.
Alright, let's consider this RFC accepted, merging!
The next step will be review of https://github.com/web-platform-tests/wpt/pull/33338, which implements this RFC.
Based on the matrix discussion, I think this is a reasonable thing to land and injecting an inline script is probably the best approach for now. I hope we can update the RFC with some of the context we discussed on matrix about the various tradeoffs, observability of the injection, etc. so that it's clear to other readers why this is the right design choice.