chromium

Different cookie handlers for two chromium instances on one form

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 06:21:07
问题 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

Third party IPC calls to Chromium to capture/filter traffic

眉间皱痕 提交于 2019-12-08 03:30:21
问题 I want to implement a network level AdBlock/NoScript-like tool for Chromium, but Chromium Extension API can not do much about controlling raw request data. So here is the idea: Capture all HTTP queries, and cancel one if URL or MIME matches. Hand craft packets, like insert a header to an HTTP query. Can this be implemented by running a thirdparty client making IPC calls to Chromium? A snippet of sample code would be awesome! (Note: Security is not a problem at the moment coz I only want to

How to view a PDF in an Electron BrowserWindow?

匆匆过客 提交于 2019-12-08 02:37:58
问题 So I have this Electron app and in one of the .html-files I link another script that provides some utility-functions to the program and one of those is this one: function openPDF(filePath){ let pdfWindow = new electron.remote.BrowserWindow({ icon: './build/icon.png', width: 1200, height: 800, webPreferences: { plugins: true } }); pdfWindow.loadURL(url.format({ pathname: filePath, protocol: 'file:', slashes: true })); pdfWindow.setMenu(null); pdfWindow.on("closed", function () { pdfWindow =

Element.animate() in HTML4

时光毁灭记忆、已成空白 提交于 2019-12-08 02:08:23
问题 It seems the people at Chrome have appropriated Element.animate() for themselves, effectively breaking all existing HTML pages using something along the lines of onclick="animate();" . Is this legal for a browser under the HTML 4/Transitional spec? Is this something that W3C would formally have authority over? Is there anything small-time website owners can do to prevent any further transgressions of this sort? EDIT: Test Case: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

Android Webview on 4.4 freezes with nativeOnDraw failed; clearing to background color

北城以北 提交于 2019-12-07 21:07:44
问题 I know this question has been asked many times and there are few work arounds.But none of them work for me I have a app that uses webview . On opening many apps and then waking up this app sometimes makes the webview blank. Other components of the app works but the webview is stuck. I disabled the hardware acceleration in Androidmanifest.xml and it did not work <application android:name="com.nandish.app.MyApplication" android:largeHeap="true" android:hardwareAccelerated="false"> I tried to

HTML5 can't create video element on Chromium 38

房东的猫 提交于 2019-12-07 18:40:23
问题 Until Chromium 37, var videoElement = document.createElement('video') would create a video element, but with Chromium 38 it's not the case anymore. EDIT If you want to check this, open a console and type : var videoElement = document.createElement('video') videoElement.toString() This should return "[object HTMLVideoElement]" proving videoElement is a video element. In Chromium 38 I get : "[object HTMLUnknownElement]" Is there any way to fix this ? PS: I created an issue on chromium issues :

Chromium embedded framework: Creating an object fails when using “ExecuteFunctionWithContext”

别等时光非礼了梦想. 提交于 2019-12-07 16:21:40
问题 Overview I am using chromium embedded framework (cef) on Delphi 2009, it is the latest release. Error I can use ExecuteFunctionWithContext to successfully execute a JavaScript callback routine and I can supply it with arguments. However, when I try and use TCefv8ValueRef.CreateObject(nil); an access violation occurs in the libcef library. Assumptions Pushing an argument to the JavaScript callback works for TCefv8ValueRef.CreateString and all the other Cefv8Value types. The TCefv8ValueRef

Run a specified function when the user opens a new tab in Chromium

落花浮王杯 提交于 2019-12-07 13:14:27
I want to remove the most visited thumbnails from Chromium's “New Tab” page. After inspecting the contents of that page, I determined that the following line of JavaScript does the trick: document.getElementById("most-visited").remove(); But I still have one remaining problem: How do make it so that this line runs automatically when I open a new tab? Presumably I have to wrap it in a function and register an event handler, but I've been unable to find more precise information. EDIT: It seems that Chromium explicitly prevents tampering with the “New Tab” page. I debugged Haibara Ai's solution

X509 subject alternative name (subjectAltName) IP address field

家住魔仙堡 提交于 2019-12-07 12:10:28
问题 X509v3 can contain IP address field in subject Alternative Name extension. As an application verifying the server's identity, how should the IP address field be validated? If both DNS name and IP address are present? Is there a preference of one over the another? What is the use of dirName field? 回答1: I read RFC 2818 earlier but must have missed this part. In some cases, the URI is specified as an IP address rather than a hostname. In this case, the iPAddress subjectAltName must be present in

ubuntu 12.04下安装adobe flash

烂漫一生 提交于 2019-12-07 09:35:46
我的ubuntu有两个浏览器:chromium和firefox. ubuntu不自带flash的。 其实安装flash很简单。去官网下载install_flash_player_11_linux.x86_64.tar.gz文件,我的ubuntu是64位的。解压后有一个libflashplayer.so文件。 我是直接解压在下载目录下的,然后执行命令: 为firefox安装flash sudo mv 下载/libflashplayer.so /usr/lib/mozilla/plugins/ 为chromium安装flash sudo mv 下载/libflashplayer.so /usr/lib/chromium-browser/plugins/ 最后重启浏览器即可! 来源: oschina 链接: https://my.oschina.net/u/262886/blog/61159