Pin speculation-rules to the script type #3007
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The speculation-rules feature appears as only supported in Chrome. That's not correct, it does work in Edge as well.
The reason it appears as unsupported is the inclusion of this BCD key:
html.elements.script.type.speculationrules.requires.anonymous-client-ip-when-cross-originThis key corresponds to a special case for certain types of prefetches, which rely on a Google-owned proxy server that Chrome uses. Edge doesn't have that same proxy at the moment.
I don't think this one key should block the feature from being supported in Edge in web-features.
The main thing to test for is whether
<script type="speculationrules">is implemented. So I've used this to pin the status of this feature.