-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request Interception issue with base href #4337
Comments
Still broken in |
@ps-mariotacke This is super cool, thank you for the beautiful repro! Looks like a peculiar corner case somewhere in blink. I'll try to further reduce this to narrow the scope. |
`Network.requestWillBeSent` is not issued for the redirect inside sync XHRs. References puppeteer#4337.
`Network.requestWillBeSent` is not issued for the redirect inside sync XHRs. References #4337.
The upstream fix is out for review: https://chromium-review.googlesource.com/c/chromium/src/+/1586346 |
This roll includes: - https://crrev.com/653809 - FrameLoader: ignore failing provisional loads entirely - https://crrev.com/654750 - DevTools: make sure Network.requestWillBeSent is emitted on time for sync xhrs The FrameLoader patch is the reason behind the test change. It's actually desirable to fail frame navigation if the frame detaches - and that's consistent with Firefox. Fixes puppeteer#4337
This roll includes: - https://crrev.com/653809 - FrameLoader: ignore failing provisional loads entirely - https://crrev.com/654750 - DevTools: make sure Network.requestWillBeSent is emitted on time for sync xhrs The FrameLoader patch is the reason behind the test change. It's actually desirable to fail frame navigation if the frame detaches - and that's consistent with Firefox. Fixes #4337
@ps-mariotacke The fix is merged now. The https://github.com/ps-mariotacke/puppeteer-intercept-issue now works with puppeteer@next, specifically with Please give it a try! |
Confirmed working in |
Request interception appears to be faulty and results in a navigation error.
Environment
1.14.0-next.1556048038195
, tested 10.11 untilnext
r641577
macOS 10.14.3 Mojave
8.15.1
, tested up until10.15.3
Steps to reproduce
npm install
npm start
What is the expected result?
Chromium spawns and takes a screenshot. It should have
setRequestInterception
enabled on the page.What happens instead?
Chromium gets stuck and errors with a navigation error.
Additional information
broken.html
andworking.html
payload which can be switched in theindex.js
at the top. The only difference between these two payloads is that the broken payload specifies a<base href="...">
in<head>
. The working payload does not include the base href and instead specifies the fully qualified url in the script tag.Related to #3471
The text was updated successfully, but these errors were encountered: