I use CefRegisterSchemeHandlerFactory(_T("location"), _T(""), new LocationSchemeHandlerFactory()) register a custom scheme in my application, but when I use "location://TestPage.html" for testing, the following html, the problem is image1 and image2, in develop tool, I can see requests for "location://TestPage.html" and ""location://TestGif1.gif", but no "location://TestGif2.gif".
- Code: Select all
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>123</title>
</head>
<body>
<div style="width:450px;height:800px;margin:10px;float:right">
<img name="image1" src="location://TestGif1.gif" />
<img name="image2" src="TestGif2.gif" />
</div>
</body>
</html>
And when I debug cefclient, I found if I use "client://handler.html", I get request->GetURL() is "client://handler.html/", but in my application I only get "location://TestPage.html", not "location://TestPage.html/", where is '/' ? Is relate my problem ?
Anyone can help me ? Thanks