-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Wait for the insecure content page and show an error. #1137
Conversation
There was also a potential race condition with listening to the load event. I fixed this by moving the call to `_waitForLoadEvent` before the call to `Page.navigate`
Still work in progress but for feedback |
Nice. Do you want to add a smoketest for this that checks one of the badssl domains? |
This currently halts the trace ( |
@paulirish Will look into the smoketests. @brendankenny What do you suggest? I can reject when there is insecure state. I think that stops the whole process and shows a |
I mean, it is a pretty big error, so I think it should probably reject altogether. The gatherer results will be at best inconsistent, with many of the results (e.g. performance metrics) actually for the "Your connection is not private" page and not the target page, with only a log entry to tell the difference. Sort of related: are there other cases besides the "Your connection is not private" page interstitial page that are treated as |
Another option would be to start Chrome with the |
heh. That was our resolution last time we discussed this: #559 |
That wouldn't work at all together with this PR though, the navigation wouldn't wait for the load event anymore. Personally I think the |
@Janpot so where you think this should go? Direct users to |
@brendankenny Maybe as |
@paulirish @brendankenny Ok, gave it a bit more thought. I think the right way to go for now would be to direct users to |
There was also a potential race condition with listening to the load event.
I fixed this by moving the call to
_waitForLoadEvent
before the call toPage.navigate
.