mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-18 00:32:03 +03:00
5364c6acbc
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. |
||
---|---|---|
.. | ||
AccessibilityHandler.js | ||
BrowserHandler.js | ||
Dispatcher.js | ||
NetworkHandler.js | ||
PageHandler.js | ||
PrimitiveTypes.js | ||
Protocol.js | ||
RuntimeHandler.js |