playwright/browser_patches/firefox/juggler
Dmitry Gozman 5364c6acbc
browser(firefox): fix automatic http->https redirect (#3812)
browser(firefox): fix automatic http->https redirect

Sometimes, Firefox does an automatic http->https redirect without hitting
the network (e.g. for http://wikipedia.org). In this case, the http request
is very strange:
- it does not actually hit the network;
- it is never intercepted;
- we cannot access its response because there was no actual response.

So, we had a bug where:
- redirects inherited the original request's listener;
- that listener was throwing an error.
This lead to the error in the listeners onDataAvailable call chain,
and original listener that renders the response was never called,
resulting in an empty page.

This change:
- ignores the original request that did not hit the network;
- does not inherit the listener;
- adds try/catch around problematic calls.
2020-09-09 09:16:03 -07:00
..
components browser(firefox): roll Firefox to roughly July, 15 (#3411) 2020-08-12 10:09:20 -07:00
content browser(firefox): fix request frame attribution (#3657) 2020-08-28 17:55:05 -07:00
pipe browser(firefox): reliably close the pipe (#3280) 2020-08-03 20:15:25 -07:00
protocol browser(firefox): fix automatic http->https redirect (#3812) 2020-09-09 09:16:03 -07:00
screencast browser(firefox): autoscale screencast to fit frame (#3720) 2020-09-01 17:10:06 -07:00
Helper.js chore: export juggler as a standalone folder for browser build (#2432) 2020-06-02 16:51:13 -07:00
jar.mn browser(firefox): remove non-existing files from build (#2507) 2020-06-08 17:04:37 -07:00
moz.build browser(firefox): implement RemoteDebuggingPipe (#3273) 2020-08-03 13:27:09 -07:00
NetworkObserver.js browser(firefox): fix automatic http->https redirect (#3812) 2020-09-09 09:16:03 -07:00
SimpleChannel.js chore: export juggler as a standalone folder for browser build (#2432) 2020-06-02 16:51:13 -07:00
TargetRegistry.js browser(firefox): introduce browser level screencastFinished event (#3625) 2020-08-25 14:50:40 -07:00