Replace NetworkError::Internal with structured enum variants for calls with literal strings#36599
Conversation
7993620 to
c7d205d
Compare
|
@uthmaniv The PR isn't getting linked to the issue. I think removing "part of" before the issue number fixes this. |
fac0d52 to
1b396e5
Compare
9f4fec8 to
be1c845
Compare
jdm
left a comment
There was a problem hiding this comment.
This is close! Just a couple more requests for clarity in the new errors.
0abd71e to
be1c845
Compare
jdm
left a comment
There was a problem hiding this comment.
Let's make sure we use the new variant!
bd2c6f1 to
d64aa28
Compare
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
|
@uthmaniv apologies for the delay in following up on this PR. Are you still interested in contributing it? If not, we can also resolve the merge conflicts and get it done. Thanks for helping Servo! |
Yes I am still interested in contributing to the servo project, I will look into the PR ,update it and resolve the conflicts . Thanks |
Signed-off-by: Uthman Yahaya Baba <[email protected]>
…ith granular enum variants Signed-off-by: Uthman Yahaya Baba <[email protected]>
…with granular enum variants Signed-off-by: Uthman Yahaya Baba <[email protected]>
Signed-off-by: Uthman Yahaya Baba <[email protected]>
Signed-off-by: Uthman Yahaya Baba <[email protected]>
…with granular enum variants Signed-off-by: Uthman Yahaya Baba <[email protected]>
Signed-off-by: Uthman Yahaya Baba <[email protected]>
Signed-off-by: Usman Yahaya Baba <[email protected]>
f0eec0a to
a06d848
Compare
Signed-off-by: Tim van der Lippe <[email protected]>
TimvdLippe
left a comment
There was a problem hiding this comment.
I have addressed the two remaining comments from Josh in a commit and pushed that it to this PR. Thanks for contributing!
It's a pleasure. Thank you |
|
This is making various CSP tests crash: https://github.com/servo/servo/actions/runs/20641525515 |
Rather than listening all individual errors, the only case where we shouldn't do anything is `LoadCancelled`. In fact, we should return early here, since otherwise we go through the full script_thread to eventually return anyways on line 1262 since there are no page headers available. Signed-off-by: Tim van der Lippe <[email protected]>
Replace NetworkError::Internal with structured enum variants
Testing: Changes does not require test.
Fixes: #36434