Skip to content

[Regression] No DOM on Cloudflared website, then NWJS crashes #8205

Closed
@MikeZeDev

Description

@MikeZeDev

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

image

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

image

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

358831647-51ca25a4-5a90-4b1b-b6de-3cf3f160413b

358832467-fbdcc5d9-3285-4d3c-a8a3-8533f1fec23b

Its crashing on ResumeParser. The "STATUS_Breakpoint" is interesting, as ive seen "debugger" instructions in CloudFlare scripts.

appWindowNatives.ResumeParser(cWin.tabs[0].mainFrameToken, cWin.id);

=> 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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions