chromium

How to disable Chrome's session restore warning using nodejs?

时间秒杀一切 提交于 2019-12-23 02:13:32
问题 How to reboot the Chromium/Google Chrome (kiosk mode) in Windows via NodeJS so that it normally on restart starts the browser as it was used by a normal human? (when i use nodeJS every single time on restart of Chromium/Google chrome keep showing me that ugly/annoying/deadly popup on right top corner) NodeJS: tell chrome to switch off NodeJS: tell chrome to start now: on every single start it keeps opening that ugly popup on the right top corner and there is no way to remove that without

Cef经典N大问题

佐手、 提交于 2019-12-23 01:36:52
1、cef启动、退出的时候怎么崩溃了 答:如果是启动时崩溃,请看资源目录是否文件都齐全. 退出的话见https://github.com/fanfeilong/cefutil/blob/master/doc/CEF_Close.md 如果是centos6.4 内核上跑CEF启动时候崩溃,原因是不支持一个uid有关的东西。启动时增加参数--disable-setuid-sandbox就OK了 2、mp3怎么没声音 答:从chromium45版本后,chromium把ffpeme这个dll静态链接进dll了。同时因为版权的原因,没有带MP3的支持库。可以从群里下载别的网页编译好的cef,自带mp3。或者自己编译cef,见http://www.cnblogs.com/himax/p/how_to_build_cef3_on_windows.html 另外: 51版本的MP4,其实只要在chromium最开始gn args命令的记事本里面加上ffmpeg_branding=“Chrome” proprietary_codecs=ture就行了。官方文档,却说的是要用export命令加上编译宏 。 3、怎么让js c++交互 答:网上资料很多,看v8相关的接口就知道了。或者可以搜索brackets-shell-master的代码。那是个完整的cef使用案例,非常牛逼 (或者http:/

Dart application and cross domain policy

我只是一个虾纸丫 提交于 2019-12-22 18:32:16
问题 Is it possible to disable cross domain security checks in Chromium while running dart application in Dart VM ? The problem is that it is running on its own port, and thus my application can't send asynchronous requests to my backend which is running on another port. Yes, I know that I can copy dart file to my backend and it will run just fine, but then I can't debug it. 回答1: If you're after a stop gap solution, just for debugging, you can use a flag to turn it off in chrome. [chromium

Delphi Chromium - how get data of Ajax call when a button/link is clicked

会有一股神秘感。 提交于 2019-12-22 13:59:15
问题 I'm using Delphi Chromium component in an application to show web pages from a Web Application. In these pages I have buttons that fire selective Ajax calls to Web Server. I need the following thing: when one of these buttons is clicked, after notification of event to 'host application' I should want from this notification to get data of Ajax request (and response too, if possible...) to do some processing on them from 'host application'. Is it possible ? 回答1: The extension (the

Chromium and Firefox display colors differently and I don't know which one is doing it right

拜拜、爱过 提交于 2019-12-22 10:27:54
问题 I've been building a website under Ubuntu 17.10 and use Firefox and Chromium for testing. The two browsers show quite different colors (not only for images but all colors) and I always thought that it is Chromium which for some reason wrongly over-saturates them, so up until now I always chose colors that looked right in Firefox. But I'm starting to get more and more complaints about the website's background being too purple - which it shouldn't be in my opinion as only the blue component of

How to build Chromium faster?

為{幸葍}努か 提交于 2019-12-22 08:37:29
问题 Following only the instructions here - https://www.chromium.org/developers/how-tos/get-the-code I have been able to successfully build and get a Chromium executable which I can then run. So, I have been playing around with the code (adding new buttons to the browser etc.) for learning purposes. So each time I make a change (like adding a new button in the settings toolbar) and I use the ninja command to build it takes over 3 hours to finish before I can run the executable. It builds each and

How to declare Chrome extension to handle specific URL scheme?

主宰稳场 提交于 2019-12-22 05:40:28
问题 I'd like to write an extension that handles specific URLs that have custom scheme (myscheme://). How do I declare my extension so it is invoked on such a request and intercepts it? (The URL can be clicked, typed directly in the address bar, passed in the command line, etc.). This is probably a beginner question, but I'm a beginner! 回答1: There is a JavaScript API that you can use for this. navigator.registerProtocolHandler("mailto", "https://www.example.com/?uri=%s", "Example Mail"); 来源: https

Tail Call Optimization implementation in Javascript Engines

拈花ヽ惹草 提交于 2019-12-22 04:47:12
问题 As of February 2019 in Chrome Version 71.0.3578.98 on Mac , the following program throws Uncaught RangeError: Maximum call stack size exceeded error. at a count of 16516 . const a = x => { console.log(x) a(x + 1) } a(1) I've done quite a bit of Googling, but wasn't able to find any articles discussing Chrome or other browser support for Tail Call Optimization (TCO) or any future plans to implement it. My two questions are: Is TCO currently supported in Chrome or any other browser or

Check if pop-up blocker is enbled when open new tab

余生长醉 提交于 2019-12-22 03:51:27
问题 I want to open new window in new process/context in chrome, (Im not sure if it possible with window.open but with the following example its working ) currently if it was regular window you can check with the following example and to see if the pop-up blocker is enabled ar newWin = window.open(url); if(!newWin || newWin.closed || typeof newWin.closed=='undefined') { //POPUP BLOCKED } but I want to open the new window in new process without window.open like following var prod = document

Proper chromium browser branding?

ⅰ亾dé卋堺 提交于 2019-12-22 00:37:49
问题 I'm working on Chromium fork. How can i replace Chromium resources and app package? Resources I've found that one day android_branding_res_dirs gn argument was introduced: @@ -43,10 +43,10 @@ # GYP: //chrome/chrome.gyp:chrome_java (resources part) android_resources("chrome_java_resources") { - resource_dirs = [ - "java/res", - "java/res_default", - ] + if (!defined(android_branding_res_dirs)) { + android_branding_res_dirs = [ "//chrome/android/java/res_chromium" ] + } + resource_dirs = [