Repository navigation
Conversation
b1d764f to
fbb173b
Compare
|
🔨 Triggering try run (#17024108843) for Linux (WPT) |
|
Test results for linux-wpt from try job (#17024108843): Flaky unexpected result (25)
Stable unexpected results that are known to be intermittent (22)
Stable unexpected results (3)
|
|
|
| "192c7235d061b439ef2b57d4b01b170b7412dcdc", | ||
| [] | ||
| ], | ||
| "navigate_loop_crash.html": [ |
There was a problem hiding this comment.
Name this navigate_loop-crash.html: https://web-platform-tests.org/writing-tests/crashtest.html#crashtest-tests
| }; | ||
| .position(|load| load.pipeline_id == *id) | ||
| else { | ||
| unreachable!("Pipeline shouldn't have finished loading."); |
There was a problem hiding this comment.
This assumes 'if not closed, then we must always find the load" Is that always the case? I can’t think of any case, but I’m just wondering.
There was a problem hiding this comment.
Yes I'm trying to maintain the same logic as before, but actually first check whether the pipeline is closed. The previous code would assert the pipeline was closed if no load was found, so now I assert a load is found, if the pipeline is not closed.
| .pipeline_to_constellation_sender | ||
| .send((*id, ScriptToConstellationMessage::AbortLoadUrl)) | ||
| .unwrap(); | ||
| return None; |
There was a problem hiding this comment.
I am not familiar with this code but just from reading, in this is early return you are not removing entry from incomplete_loads ?
There was a problem hiding this comment.
Yes that's a good point on the existing code(only moved around here), which I don't want to change too much in this PR. Would be good to file an issue to investigate.
| }; | ||
| // https://html.spec.whatwg.org/multipage/#process-a-navigate-response | ||
| // 2. If response's status is 204 or 205, then abort these steps. | ||
| let is20x = match metadata { |
There was a problem hiding this comment.
| let is20x = match metadata { | |
| let is_204_205 = match metadata { |
?
|
Since #38623 touches the same tests, I will rebase that PR after this one merges. Let's see if the tests start passing then 🤞 |
|
|
||
|
|
||
| [trusted-types-navigation.html?01-05] | ||
| expected: CRASH |
There was a problem hiding this comment.
So those crashes would indeed hit the "pipeline is closed, but there is still a pending load" branch, although the crash was at 0:09.87 pid:2652 called Option::unwrap() on a None value (thread Script(1,1), at components/script/links.rs:386)
|
@jdm @Taym95 thank you for your reviews. @TimvdLippe This should merge soon... |
|
|
🔨 Triggering try run (#17067129607) for Linux (WPT) |
|
Test results for linux-wpt from try job (#17067129607): Flaky unexpected result (26)
Stable unexpected results that are known to be intermittent (19)
Stable unexpected results (1)
|
|
|
|
Actually it is expected that the test times out because of the infinite navigation loop it creates, which is addressed at #38676 |
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
cd36a83 to
f794167
Compare
|
Test results for linux-wpt from try job (#17206535763): Flaky unexpected result (26)
Stable unexpected results that are known to be intermittent (26)
Stable unexpected results (1)
|
|
🔨 Triggering try run (#17207247416) for Linux (WPT) |
Signed-off-by: gterzian <[email protected]>
|
So since the intermittent timeout came from the form styling, that has been removed, however for good measure I have re-added the iframe part, since that didn't trigger the timeout and to stay as close as possible to the crash test in the issue. I have also filed #38910 to investigate that timeout caused by the styling. |
|
🔨 Triggering try run (#17207427178) for Linux (WPT) |
Signed-off-by: gterzian <[email protected]>
|
Test results for linux-wpt from try job (#17207427178): Flaky unexpected result (27)
Stable unexpected results that are known to be intermittent (27)
|
|
✨ Try run (#17207427178) succeeded. |
|
🔨 Triggering try run (#17208450578) for Linux (WPT) |
|
Running it one more time just to be sure... |
|
Test results for linux-wpt from try job (#17208450578): Flaky unexpected result (19)
Stable unexpected results that are known to be intermittent (29)
|
|
|
|
Re-trying the merge, failure was #38920 |
…ervo#49508) The unsuffixed `[trusted-types-navigation.html]` section expected CRASH but doesn't match any of the test's `?NN-MM` variants, so it was stale. The crash and flaky results reported in the issues below no longer reproduce, likely thanks to servo#38739. Part of servo#46859 Testing: Ran all variants 10 times in release and 10 times in debug with all CPU cores loaded, with no unexpected results. Fixes: servo#37920 Fixes: servo#38034 Fixes: servo#38807 Fixes: servo#38975 Signed-off-by: Gabriele Cabrini <[email protected]>
Previously, the script-thread would assert the pipeline was closed if no pending load was found, but it did not check whether the pipeline was closed before processing the page headers. Since incomplete loads are removed only when page headers are processed, this means the page headers were processed even if the pipeline had been closed before the page headers were available. If the pipeline had been closed as part of exiting the constellation, it was possible for the constellation to have exited by the time the page headers became available(since the script-thread closes a pipeline independently from ongoing navigation fetches), which would produce a panic on trying to communicate with the constellation to obtain the browsing context info.
Note: due to the nature of the problem, I cannot verify that this fixes the crash test, although logically this appears to make sense, and a couple of days of WPT runs should tell us more.
Testing: A crash test was added; unfortunately the crash was intermittent.
Fixes: #36747