happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

Unexpected errors should be 'ignored' when loading network resources

Open Mas0nShi opened this issue 1 year ago • 3 comments

We often find that there are parts of the web resources that don't load properly in the real world, There may be reasons such as: invalid temporary resource, invalid third-party api, etc.

happy-dom should the same as browsers: ignore invalid requests & script loads.

Mas0nShi avatar Mar 08 '23 09:03 Mas0nShi

@Mas0nShi I'm not sure I understand this. Is something getting stuck during the load of resources?

capricorn86 avatar May 13 '23 15:05 capricorn86

@Mas0nShi I'm not sure I understand this. Is something getting stuck during the load of resources?

I mean we have to think about the real world. For example, some websites reference expired assets. The browser skips it if it has not completed the request(http code 502 etc.). But happy-dom throws an exception and kills the process directly.(maybe? I haven't used it for a long time 🤣 but it's possible when we load a website)

Mas0nShi avatar May 13 '23 15:05 Mas0nShi

@Mas0nShi I believe that I fixed parts of the problem in the latest release :slightly_smiling_face:

capricorn86 avatar Jul 06 '23 10:07 capricorn86