apimall / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

CEF 3 1916: CefResourceBundleHandler cannot handle image requests #1273

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Set CefSettings.pack_loading_disabled == 1.
All *.pak file resource content (including locales) incapsulated in 
ResourceBundleHandler implementation returned by 
CefApp::GetResourceBundleHandler.
No *.pak inside libcef directory.
Load any url which leads to obtain chromium image resource (e.g. page showing 
scroll bars).

What is the expected output?
normal page loading

What do you see instead?
libcef asserts in:
chromium\src\ui\base\resource\resource_bundle.cc
gfx::ImageSkia image_skia(new ResourceBundleImageSource(this, 
resource_id),scale);
if (image_skia.isNull()) {
  LOG(WARNING) << "Unable to load image with id " << resource_id;
  NOTREACHED();  // Want to assert in debug mode.

What version of the product are you using? On what operating system?
1916

Please provide any additional information below.
Attachment contains fix.

Original issue reported on code.google.com by ajax16...@gmail.com on 9 May 2014 at 5:48

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 7 Nov 2014 at 6:19

GoogleCodeExporter commented 9 years ago
Issue 1426 has been merged into this issue.

Original comment by magreenb...@gmail.com on 7 Nov 2014 at 6:19

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 7 Nov 2014 at 6:20

GoogleCodeExporter commented 9 years ago
I have been using CEF3 version 1219 before with the same setup (all resources 
provided by CefResourceBundHandler) and have not run into any problems. The 
images (like the scrollbar) loaded correctly. I couldnt find any relevant 
changes to content_client.cc for all versions after 1219. Could there possibly 
be a quick workaround until this issue is properly resolved?

Original comment by mugadr.m@googlemail.com on 8 Nov 2014 at 11:14

GoogleCodeExporter commented 9 years ago
CEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/cef/issue/1273

Original comment by magreenb...@gmail.com on 14 Mar 2015 at 3:31