iframe load failed

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

iframe load failed

Postby tiplip » Sat Dec 31, 2016 4:25 am

hi,

On cefclient, I have set 'disable-web-security', and iframe works well in many cases but sometimes iframe load failed:
issue2.png
issue2.png (61.99 KiB) Viewed 9221 times


General

Request URL:
data:text/html;base64,PGh0bWw%2BPGhlYWQ%2BPHRpdGxlPlBhZ2UgZmFpbGVkIHRvIGxvYWQ8L3RpdGxlPjwvaGVhZD48Ym9keSBiZ2NvbG9yPSJ3aGl0ZSI%2BPGgzPlBhZ2UgZmFpbGVkIHRvIGxvYWQuPC9oMz5VUkw6IDxhIGhyZWY9Imh0dHA6Ly91aGFwcHk3LmNvbS9kZWZhdWx0X2luZGV4LnNodG1sIj5odHRwOi8vdWhhcHB5Ny5jb20vZGVmYXVsdF9pbmRleC5zaHRtbDwvYT48YnIvPkVycm9yOiBVTktOT1dOICgtMTE4KTwvYm9keT48L2h0bWw%2B
Request Method:
GET
Status Code:
200 OK

Response Header

Access-Control-Allow-Origin:
*
Content-Type:
text/html;charset=US-ASCII

Request Header

Provisional headers are shown
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests:
1
User-Agent:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36

response body:
Code: Select all
<html><head><title>Page failed to load</title></head><body bgcolor="white"><h3>Page failed to load.</h3>URL: <a href="http://uhappy7.com/default_index.shtml">http://uhappy7.com/default_index.shtml</a><br>Error: UNKNOWN (-118)</body></html>

Normal case:
gerneral
Request URL:http://uhappy7.com/default_index.shtml
Request Method:GET
Status Code:200 OK
Remote Address:103.7.32.29:80

what makes the difference?
tiplip
Mentor
 
Posts: 77
Joined: Thu Mar 26, 2015 3:09 am

Re: iframe load failed

Postby amaitland » Sat Dec 31, 2016 3:35 pm

https://bitbucket.org/chromiumembedded/ ... -supported

Does the problem reproduce using a current version? Based on the user agent you are using a version that's very old.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: iframe load failed

Postby tiplip » Sat Dec 31, 2016 7:07 pm

thanks for your reply.

It's cefclient on cef_binary_3.2623.1401.gb90a3be_windows32, my environment is win7.

such issue occurs onc in a while, not so often and I have not tried with current version, I will give it a try.

why iframe request URL is encoded in base64 insteadof plain text?
tiplip
Mentor
 
Posts: 77
Joined: Thu Mar 26, 2015 3:09 am

Re: iframe load failed

Postby tiplip » Sat Dec 31, 2016 8:18 pm

amaitland wrote:https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding.md#markdown-header-current-release-branches-supported

Does the problem reproduce using a current version? Based on the user agent you are using a version that's very old.


I built the latest version with VC2015, cef_binary_3.2883.1540.gedbfb20_windows32
on win7, I also noticed the issue after launching cefclient.exe
issue3.png
issue3.png (38.65 KiB) Viewed 9208 times
tiplip
Mentor
 
Posts: 77
Joined: Thu Mar 26, 2015 3:09 am

Re: iframe load failed

Postby amaitland » Sat Dec 31, 2016 8:45 pm

How do you reproduce the problem?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 60 guests