From 8f0a5019c00a1dc4e00dd06c90fc1d94ce165b14 Mon Sep 17 00:00:00 2001 From: Ross Wollman Date: Thu, 20 Jan 2022 16:19:29 -0800 Subject: [PATCH] browser(firefox): fixes empty string postData override (#11529) Relates #11470 Blocks #11421 --- browser_patches/firefox-beta/BUILD_NUMBER | 4 ++-- browser_patches/firefox-beta/juggler/NetworkObserver.js | 2 +- browser_patches/firefox/BUILD_NUMBER | 4 ++-- browser_patches/firefox/juggler/NetworkObserver.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/browser_patches/firefox-beta/BUILD_NUMBER b/browser_patches/firefox-beta/BUILD_NUMBER index 9eec5ba879..b6838ab9fc 100644 --- a/browser_patches/firefox-beta/BUILD_NUMBER +++ b/browser_patches/firefox-beta/BUILD_NUMBER @@ -1,2 +1,2 @@ -1314 -Changed: lushnikov@chromium.org Sat Jan 8 18:49:01 MSK 2022 +1315 +Changed: ross.wollman@gmail.com Wed Jan 19 09:15:42 PST 2022 diff --git a/browser_patches/firefox-beta/juggler/NetworkObserver.js b/browser_patches/firefox-beta/juggler/NetworkObserver.js index 57c477b105..f7e7659f8d 100644 --- a/browser_patches/firefox-beta/juggler/NetworkObserver.js +++ b/browser_patches/firefox-beta/juggler/NetworkObserver.js @@ -250,7 +250,7 @@ class NetworkRequest { } if (method) this.httpChannel.requestMethod = method; - if (postData) + if (postData !== undefined) setPostData(this.httpChannel, postData, headers); } diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER index 2a6be2acf9..389e26693f 100644 --- a/browser_patches/firefox/BUILD_NUMBER +++ b/browser_patches/firefox/BUILD_NUMBER @@ -1,2 +1,2 @@ -1314 -Changed: lushnikov@chromium.org Tue 18 Jan 2022 02:42:08 AM PST +1315 +Changed: ross.wollman@gmail.com Tue Jan 18 21:20:13 PST 2022 diff --git a/browser_patches/firefox/juggler/NetworkObserver.js b/browser_patches/firefox/juggler/NetworkObserver.js index 57c477b105..f7e7659f8d 100644 --- a/browser_patches/firefox/juggler/NetworkObserver.js +++ b/browser_patches/firefox/juggler/NetworkObserver.js @@ -250,7 +250,7 @@ class NetworkRequest { } if (method) this.httpChannel.requestMethod = method; - if (postData) + if (postData !== undefined) setPostData(this.httpChannel, postData, headers); }