Skip to content

Commit

Permalink
Move #injectPasswordLeakDetection call down, add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwdv committed Sep 1, 2022
1 parent 2558dd7 commit 8905263
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FieldsCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ export class FieldsCollector extends BaseCollector {
: this.options.fill.email, fillTimes);
break;
case 'password':
await this.#injectPasswordLeakDetection(field.handle.executionContext().frame()!);
await fillPasswordField(field.handle, this.options.fill.password, fillTimes);
break;
default:
Expand All @@ -673,6 +674,7 @@ export class FieldsCollector extends BaseCollector {
}
}

//TODO? Maybe just check once after filling
async #injectPasswordLeakDetection(frame: Frame) {
try {
const page = frame.page();
Expand Down

0 comments on commit 8905263

Please sign in to comment.