chromium

Load local file and get Unknown chromium error: -6

耗尽温柔 提交于 2019-12-08 22:10:23
问题 I was trying to load a local file from the sdcard into a WebView. But since Android 4.1 it isn't working anymore, I always get the message: File not found and in LogCat Unknown chromium error: -6. 回答1: I figured out the Problem and I just needed to add one more slash. Example: We need now: loadURL("file:///.../file.file"); instead of: loadURL("file://.../file.file"); Just add one more slash and it works. I hope this is helpful for all with the same issue under Android 4.1. 来源: https:/

CEF3 single process mode in production

帅比萌擦擦* 提交于 2019-12-08 20:35:33
问题 Are there any real pitfalls in using single process mode in production? The official statement seems to discourage this, but so far the application has been stable. CEF1 seems to have been abandoned, and if CEF3 single process is used for dev, then the latter should be at the very least be part of the test suite, and therefore stable. Or is that not true? Also, is CEF3 single process not equivalent to CEF1? The new Battle.net launcher is using CEFl (1453). I wonder if that was for legacy

Different cookie handlers for two chromium instances on one form

南楼画角 提交于 2019-12-08 19:33:32
I'm using DCEF3 on Delphi XE3. Task is : Create different cookie storages for different TChromium instances. Problem : I'm creating different ICefCookieManager instances for each TChromium instances and its returning in GetCookieManager event. Example code: type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Chromium1: TChromium; Chromium2: TChromium; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure Chromium1GetCookieManager(Sender: TObject; const browser: ICefBrowser; const mainUrl: ustring; out

How do I send post and header data with Chromium?

折月煮酒 提交于 2019-12-08 17:00:30
问题 I am attempting to convert some code from TWebBrowser to Chromium but am having trouble figuring out how to send post and header data with an HTTP request. Below is the TWebBrowser functionality I'm trying to implement. var VHeader, PostData: OleVariant; PostData := VarArrayCreate([0, Length(XMLString) - 1], varByte) ; HeaderData := 'Content-Type: application/x-www-form-urlencoded'+ '\n'; WebBrowser1.Navigate(StrUrl,EmptyParam,EmptyParam,PostData,VHeader); How do I do the equivalent with

How do I detect Chromium specifically vs. Chrome?

自作多情 提交于 2019-12-08 16:14:24
问题 Is there a way to detect if a visitor to my site is running Chromium as opposed to Google Chrome? Even basic UA sniffing (which I know is bad practice) would suffice for my particular case, but it appears that Chromium and Chrome share the same UA string – is that correct? Is there any other way that I can differentiate between the two? 回答1: Chrome ships with a built-in PDF reader, Chromium doesn't. You could detect this by using JavaScript: function isChrome() { // Actually,

Customize Chromium/Google Chrome error pages

倾然丶 夕夏残阳落幕 提交于 2019-12-08 16:12:10
问题 How can I customize the error pages Google Chrome/Chromium displays when there is a networking error (e.g. Error 137 net::ERR_NAME_RESOLUTION_FAILED) I'm talking about these kinds of pages: http://i41.tinypic.com/29qm8v6.png They don't seem to be stored anywhere on the file system. Can the errors that make them display be trapped using an extension? Thanks for any advice. 回答1: No, trapping is not possible, and the HTML for the error pages gets built at runtime from compiled resources. See

Google chrome - extension chrome idle not working

烂漫一生 提交于 2019-12-08 14:24:11
问题 Getting ERROR: Uncaught TypeError: Cannot read property 'queryState' of undefined how can i run the extension (https://developer.chrome.com/apps/idle ) from my code? manifest.json: { "name" : "Idle - Simple Example", "version" : "1.0.1", "description" : "Demonstrates the Idle API", "background" : { "scripts": ["background.js"] }, "permissions" : [ "idle" ], "browser_action" : { "default_icon" : "sample-19.png" }, "icons" : { "16" : "sample-16.png", "48" : "sample-48.png", "128" : "sample-128

Ajax behaving differently on Firefox

你离开我真会死。 提交于 2019-12-08 13:16:54
问题 I am basically trying to check the progress of a file download. To do this, I am repeatedly polling a php file(progress_sess.php) which is echoing the session value being changed in the file handling the download (export.php). So there is one ajax request to export.php and multiple ajax requests to progress_sess.php. This way I am able to display the phase that the file download script is currently in. All is working out well in chromium. which is clear from the requests, you can see the

How to intercept all the network requests of resources for a Web Page?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 10:44:25
问题 A webpage loading includes resources like JavaScript, CSS and many other kinds of files. I want to intercept all those network request of resources in Chromium code. Is there any way to do this? 回答1: Use Stetho Stetho is a sophisticated debug bridge for Android applications. When enabled, developers have access to the Chrome Developer Tools feature natively part of the Chrome desktop browser. Once you complete the set-up instructions, just start your app and point your browser to chrome:/

Android WebView Select option breaks with TalkBack ON

爷,独闯天下 提交于 2019-12-08 10:42:51
问题 I have an app using WebView to load page containing dropdown(Select options): <select id='num'> <option value='10'>10</option> <option value='20'>20</option> <option value='50'>50</option> WebView has getSettings().setJavaScriptEnabled(true); When Talkback is ON, I am unable to select other options 20 or 50(10 is default selected). Talkback reads all the options(10,20,50) in the option popup but on double tapping to select an option, it just closes the popup without selecting that option. I