-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(driver): assert securityIssues before getPageLoadError #6578
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me
What's the difference in behavior? Seems that either way, on a security issue an error is thrown that is uncaught, going all the way to Only difference I see is not logging some page load error + doing some small extra work (that wouldn't be used). is this meant to change something else too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM subtle but should expose more security issues as errors instead of ERROR DOC or FAILED DOC requests., right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think that the danger would be getting NO or FAILED document requests if there was a security error, so we'd never get to the security check, but clearly we do get security errors, so seems like this won't make a difference?
If it doesn't make a difference, seems fine either way?
The current code pushes the page load error onto the current ... now I see that |
I don't think that's right?
ah, right. So if there was a security error, the From the perspective of reading the code it makes sense to have it first (and maybe even earlier), but I don't think this is going to change the error type distribution :) |
Ah, I was looking at the render logger. OK, so yeah, no change really in this PR except for avoiding logging a page load error when really it was a security issue. LGTM |
I think we want to throw on security issues before we consider pageLoadError situations. wdyt?