Hello,
Sorry for hijacking the post but I also have an issue with this method. The environment I am using is also the automated build
cef_binary_3.3163.1671.g700dc25_windows32The app I'm working on uses a custom scheme and domain to answer specific requests. In particular it sets this scheme using the following method
- Code: Select all
CefRegisterSchemeHandlerFactory("custom_scheme", "custom_domain", new ClientSchemeHandlerFactory());
One of the app's methods is responsible for creating a png image and sending it to the front-end, who receives this image as an
arraybuffer and attempts to create a
Blobfrom it and then a URL using
URL.createObjectURL(). However, the app crashes upon creating said URL.
I've tried debugging using the console from the dev tools and found out that running the following example crashes the app when it is in a state with the
custom_scheme- Code: Select all
var a = "test";
var b = new Blob([a]);
URL.createObjectURL(b);
However, if inside the app I open for example
http://www.google.com and use the console to run the previous example code, it doesn't crash.
My assumption is that the
URL.createObjectURL is not working due to the
custom_scheme.
Is there anything missing rather than just registering the
custom_scheme that permits to create the URL?