LoadString and CefRegisterExtension
Posted: Tue Nov 27, 2018 4:09 pm
I'm trying to load a HTML page from a string. While this works properly, I have an issue with CefRegisterExtension. Because some times this works, but most times not (more than 90%). I get no error but my extension is just not registered. If i change the LoadString to a LoadUrl (with for example google.com), the registrations works properly.
If someone is wondering why I load a page by string: I have a local HTML file next to my program that should be loaded. However, Chrome now forbids displaying local HTML files (I didn't manage to disable this rule either). So I read the file into a string and injected it into the browser with LoadString. ( Because it is only a small internal app, it would not be a problem to disable the security policy).
If someone is wondering why I load a page by string: I have a local HTML file next to my program that should be loaded. However, Chrome now forbids displaying local HTML files (I didn't manage to disable this rule either). So I read the file into a string and injected it into the browser with LoadString. ( Because it is only a small internal app, it would not be a problem to disable the security policy).