content icon indicating copy to clipboard operation
content copied to clipboard

Fix globals, part 4: crypto

Open skyclouds2001 opened this issue 1 year ago • 10 comments

Description

/cc @wbamberg

part of the #33019

Motivation

Additional details

Related issues and pull requests

skyclouds2001 avatar Apr 27 '24 06:04 skyclouds2001

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Apr 27 '24 06:04 github-actions[bot]

Preview URLs (12 pages)
Flaws (4)

Note! 11 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/API/RTCPeerConnection/generateCertificate_static Title: RTCPeerConnection: generateCertificate() static method Flaw count: 4

  • macros:
    • /en-US/docs/Web/API/AlgorithmIdentifier does not exist
    • /en-US/docs/Web/API/Algorithm does not exist
    • /en-US/docs/Web/API/RTCCertificateExpiration does not exist
    • /en-US/docs/Web/API/Algorithm does not exist

(comment last updated: 2024-05-16 09:45:29)

github-actions[bot] avatar Apr 27 '24 07:04 github-actions[bot]

remove /en-US/docs/Web/API/crossOriginIsolated /en-US/docs/Web/API/Window/crossOriginIsolated the redirect can pass the test, but the issue existed in the preview product

skyclouds2001 avatar Apr 30 '24 18:04 skyclouds2001

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one (same behavior can be observed in #33339 )

skyclouds2001 avatar Apr 30 '24 19:04 skyclouds2001

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one (same behavior can be observed in #33339 )

Yeah, I know. It's OK, I have your branch checked out locally so I can test the redirects :).

(edited to add: oh, do you mean, that's the reason we are getting these CI errors?)

wbamberg avatar Apr 30 '24 20:04 wbamberg

(edited to add: oh, do you mean, that's the reason we are getting these CI errors?)

Yes, I think this is the reason

skyclouds2001 avatar May 01 '24 15:05 skyclouds2001

So what should do next?

skyclouds2001 avatar May 06 '24 12:05 skyclouds2001

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one

Not true. We are not using pull_request_target trigger here.

In future run yarn content fix-redirects command to fix automatically fixable errors in _redirects.txt file.

OnkarRuikar avatar May 07 '24 05:05 OnkarRuikar

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one

Not true. We are not using pull_request_target trigger here.

In future run yarn content fix-redirects command to fix automatically fixable errors in _redirects.txt file.

Got it!

skyclouds2001 avatar May 07 '24 06:05 skyclouds2001

Thanks @OnkarRuikar ! I had forgotten about sorting. Yes, AFAIK we have to edit redirects manually for some of this work because when these global properties were first added, redirect were sometimes made from API/Window/thing to API/thing_property, and we're now reinstating API/Window/thing. Maybe there's a better way but if so I don't know it.

wbamberg avatar May 07 '24 18:05 wbamberg