Skip to content

Commit

Permalink
Bug 1893608 - [remote] Fix error this.postData is undefined in Networ…
Browse files Browse the repository at this point in the history
…kRequest class r=webdriver-reviewers,Sasha

We do not have any test checking requests with postData, and due to a technical limitation we only have this field available in the
response events, so the error from my previous patch went unnoticed.

Differential Revision: https://phabricator.services.mozilla.com/D208737
  • Loading branch information
juliandescottes committed Apr 26, 2024
1 parent b17b612 commit dd6c01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote/shared/NetworkRequest.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class NetworkRequest {
}

get postDataSize() {
return this.#postData ? this.postData.size : 0;
return this.#postData ? this.#postData.size : 0;
}

get redirectCount() {
Expand Down

0 comments on commit dd6c01f

Please sign in to comment.