Repository navigation
Implement trusted types processing for JavaScript URL - #38623
Conversation
|
🔨 Triggering try run (#16906400754) for Linux (WPT) |
|
Test results for linux-wpt from try job (#16906400754): Flaky unexpected result (24)
Stable unexpected results that are known to be intermittent (17)
Stable unexpected results (1)
|
|
|
08565f3 to
34586c0
Compare
08c5370 to
4c2e3b4
Compare
|
🔨 Triggering try run (#17173083405) for Linux (WPT) |
|
Test results for linux-wpt from try job (#17173083405): Flaky unexpected result (22)
Stable unexpected results that are known to be intermittent (30)
|
|
✨ Try run (#17173083405) succeeded. |
4c2e3b4 to
5190434
Compare
|
🔨 Triggering try run (#17257696930) for Linux (WPT) |
|
The |
|
Test results for linux-wpt from try job (#17257696930): Flaky unexpected result (20)
Stable unexpected results that are known to be intermittent (24)
Stable unexpected results (1)
|
|
|
5190434 to
130acea
Compare
This makes future introduction of trusted types support easier, since now we only need to introduce it in one place. Additionally, comments are added to make references to the relevant parts of the spec. Signed-off-by: Tim van der Lippe <[email protected]>
We pass in the new trait implementation to process the value, which the CSP crate calls in its implementation. Additionally, since the request url can change, we need to propagate that to load_data as well. This also avoids a crash when a discarded browsing context is accessed while navigating the iframes in the WPT tests. This is a known issue, but hampers investigation into actual Trusted Types support. All tests using iframes don't work, as they don't have the correct browsing context. The other tests do work, but some fail on header ascii parsing (servo#36801) or error while handling errors. That last one I don't understand based on the current code and I would need to do a deep-dive in the existing code to understand better what's going on. Part of servo#36258 Part of servo#37920 Signed-off-by: Tim van der Lippe <[email protected]>
130acea to
be1def4
Compare
|
It failed in the merge queue on a flaky infrastructure issue: and |
|
These tests are flaky compared to when I last ran the try run. Filed #38975 assuming that when iframe loading is fixed, these tests no longer flake. |
|
Did I file the issue wrongly? It's the exact same testsuite that now flakes on two tests. |
|
You missed the leading /. |
We pass in the new trait implementation to process the value,
which the CSP crate calls in its implementation. Additionally,
since the request url can change, we need to propagate that
to load_data as well.
This also avoids a crash when a discarded browsing context is
accessed while navigating the iframes in the WPT tests. This
is a known issue, but hampers investigation into actual
Trusted Types support.
All tests using iframes don't work, as they don't have the
correct browsing context. The other tests do work, but some
fail on header ascii parsing (#36801) or error while handling
errors. That last one I don't understand based on the current
code and I would need to do a deep-dive in the existing code
to understand better what's going on.
Part of #36258
Part of #37920