Description
Issue Type
Before opening an issue, please search and see if it has already been raised.
-
Bug Report
-
Feature Request
-
Successfully reproduced against the latest version of NW.js?
Current/Missing Behavior
Trying to simply open a website that is using Cloudflare anti bot / turnstyle and :
nwjs-sdk-v0.84.0-win-x64 : website load properly
nwjs-sdk-v0.85.0-win-x64 : dont load, dont crash
nwjs-sdk-v0.86.0-win-x64 : dont load, dont crash
nwjs-sdk-v0.87.0-win-x64 : dont load, dont crash
nwjs-sdk-v0.88.0-win-x64 : dont load, dont crash
nwjs-sdk-v0.89.0-win-x64 : dont load, dont crash
nwjs-sdk-v0.90.0-win-x64: dont load + crash
Expected/Proposed Behavior
Website loads. I dont expect to pass CloudFlare but at least website should load.
Additional Info
- Operating System: Win10 x64
- NW.js Version: 0.90 sdk
- Code snippet:
I just made a tiny app with this as main file
app.js
async function OpenWindow() {
await nw.Window.open('https://hivetoon.com');
await new Promise((resolve) => { setTimeout(resolve, 5000);});
nw.App.closeAllWindows();
nw.App.quit();
}
OpenWindow();
package.json
{
"name": "test",
"version": "1.0",
"description": "test",
"type": "module",
"main": "app.js"
}
- Crash report:
When debugging the original app where i got the problem, i was able to pinpoint the exact place where it crashes
Its crashing on ResumeParser. The "STATUS_Breakpoint" is interesting, as ive seen "debugger" instructions in CloudFlare scripts.
nw.js/src/resources/api_nw_newwin.js
Line 833 in 74e469a
=> First there is the regression that takes place in 0.85.0 and prevent DOM to be loaded
=> Since 0.90 its even crashing the whole app.
There is apparently no crash or rendering problem in case you manage to have the CloudFlare Clearance cookie (from other means)