Skip to content
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

[BUG]: 使用addArchiveResource 无法正确加载zip资源 #463

Open
myway116 opened this issue Jan 4, 2025 · 2 comments
Open

[BUG]: 使用addArchiveResource 无法正确加载zip资源 #463

myway116 opened this issue Jan 4, 2025 · 2 comments

Comments

@myway116
Copy link

myway116 commented Jan 4, 2025

Describe the bug 【Bug描述】
将example 中的MainWindow.cpp addLocalFolderResource 修改为 QCefContext::instance()->addArchiveResource(QString("file:///D:/test/test.zip"),
URL_ROOT,
QString(""));
运行后无法显示zip资源中的index.html, 页面显示错误信息 Failed to load URL: http://qcefviewdoc/index.html
Error: ERR_NAME_NOT_RESOLVED(-105)
如果使用分支 cef-104.4.26 ,同样的操作,也无法显示zip资源中的index.html , 页面是空白的。

...

To Reproduce 【复现步骤】

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior 【正确的预期行为】
期望能正确显示zip资源中的html文件

...

Screenshots 【截图】

...

Environment 【BUG产生的环境】

  • OSR/NCW Mode: OSR
  • OS & Version: [e.g. Windows/macOS/Linux] windows 11
  • Qt Version: 5.15.0 msvc 64bit
  • CEF Version: 127.3.5+g114ea2a+chromium-127.0.6533.120

Additional context 【更多额外信息】

...

@tishion
Copy link
Member

tishion commented Jan 7, 2025

他应该是zip里面的文件结构有问题

@L-Super
Copy link
Member

L-Super commented Jan 7, 2025

他应该是zip里面的文件结构有问题

应该是这个原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants