-
-
Notifications
You must be signed in to change notification settings - Fork 426
Capybara webkit crash on preflight CORS request failure #1055
Comments
cc @twalpole - I've spent some time putting together an example of a consistent capybara webkit crash that you might like to see 👍 |
@AlanFoster That project appears to use headless chrome???? Is there a branch that uses capybara-webkit and did you configure it in debug mode? |
@twalpole Apologies, I should have clarified that the branch is It's possible to replicate the crash with the following steps:
The driver is capybara webkit, just with a configured proxy (Puffing Billy) Let me know if i've missed anything 👍 |
To trigger the crash on that branch:
|
This seems to be a crash inside Qt -- not sure there's much capybara-webkit can do about it |
@twalpole Interesting! Thanks for looking into this :) I was hoping to post more examples of errors that i've run into with Capyara Webkit, but I wonder if most of them are Qt's fault in the end - that would be interesting 🤔 Shall I close this issue, or raise a QT bug? :) |
There's really no point in raising a qt bug - qtwebkit isn't developed by the qt project anymore. There is an effort underway to revive it - https://github.com/annulen/webkit - and if you can get capybara-webkit to build with a modern Qt and the annullen version of qtwebkit and see if the issue still exists it would be a great move forward. I keep meaning to try and get that working, since it should allow capybara-webkit to support modern CSS/JS, but just haven't had time. |
@twalpole Thanks for the context! Unfortunately I have no Qt experience and wouldn't even know where to begin! Having capybara-webkit support modern CSS/JS would be cool though! For what it's worth, running on an older JavaScript implementation has sometimes been useful catching JavaScript which wasn't transpiled correctly, or where we made use of newer functions that wouldn't work on Safari/IE for instance :) |
When a preflight CORS request fails, capybara webkit crashes:
If it helps, this is the preflight options check that appears to kill webkit:
Example
I have made the following project as an example:
Running the following command will cause webkit to crash 100% of the time:
Whilst correctly stubbing the preflight CORS request will not crash webkit:
Context: I am using puffing billy to stub requests made during feature tests.
The text was updated successfully, but these errors were encountered: