Skip to content

Commit

Permalink
core(driver): assert securityIssues before getPageLoadError (#6578)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Nov 16, 2018
1 parent 4457ed2 commit 9910b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/gather/gather-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ class GatherRunner {
const networkRecords = NetworkRecorder.recordsFromLogs(devtoolsLog);
log.timeEnd(status);

this.assertNoSecurityIssues(driver.getSecurityState());

let pageLoadError = GatherRunner.getPageLoadError(passContext.url, networkRecords);
// If the driver was offline, a page load error is expected, so do not save it.
if (!driver.online) pageLoadError = undefined;
Expand All @@ -309,8 +311,6 @@ class GatherRunner {
passContext.LighthouseRunWarnings.push(pageLoadError.friendlyMessage);
}

this.assertNoSecurityIssues(driver.getSecurityState());

// Expose devtoolsLog, networkRecords, and trace (if present) to gatherers
/** @type {LH.Gatherer.LoadData} */
const passData = {
Expand Down

0 comments on commit 9910b9b

Please sign in to comment.