chromium

How can I automatically restart chromium if it crashes?

人走茶凉 提交于 2019-12-10 20:46:49
问题 I'm using chromium-browser in kiosk mode as a display, but from time to time it might crash. I'd like to be able to kill / re-start the browser if that happens, but I'm unable to check chrome's status. Does anyone know how to check if chromium has crashed, or configure chrome to shutdown if it crashes? Chromium 28.0.1500.52 Ubuntu 12.04 回答1: Put the following code in a file, name it whatever you like (foo): #!/bin/sh while : # run forever do chromium-browser done Then execute: chmod +x foo to

Is it possible to upload/publish an unlisted extension via the chrome webstore api?

北慕城南 提交于 2019-12-10 20:06:14
问题 We are hoping to upload a chrome extension and publish it as unlisted (as the visibility option) via the Chrome Webstore Api. So far we have been able to upload but not publish using this documentation -- we can't publish because extensions have a whole bunch of required parameters (like a screenshot or small-tile image) which we can't figure out how to attach. We are really hoping that one of these parameters will be visibility, and we can set it to "unlisted". If any kind soul has any

Android WebView evaluateJavaScript Callback is not being invoked

橙三吉。 提交于 2019-12-10 18:06:28
问题 evaluateJavascript(String script, ValueCallback<String> resultCallback) method is added to WebView on Android in SDK 19. Android documentation quotes: If non-null, resultCallback will be invoked with any result returned from that execution. I am using this method as shown below, but somehow my callback is not being invoked. I can see from debugging that the evaluateJavascript() is called, but the call back is not being invoked in Android API 19, 20 & 21 . From API 22 (LOLLIPOP_MR1) onwards,

Why would Chrome cap frame rate at 30fps?

不想你离开。 提交于 2019-12-10 18:04:35
问题 I'm doing some d3.js visualization development (mostly SVG) and I was measuring the FPS of my transitions using the "Show FPS meter" option in the web tools. Strangely, the FPS appears to be capped at exactly 30fps. Other colleagues using the same version of Chrome consistently get 60fps running the same code. I can get a higher frame rate out of other browsers and out of Flash so it seems to be something Chrome specific. Does anybody know what kinds of things might cause Chrome to clamp the

How to reload page in Puppeteer?

送分小仙女□ 提交于 2019-12-10 17:54:49
问题 I would like to reload the page whenever the page doesn't load properly or encounters a problem. I tried page.reload() but it doesn't work. for(const sect of sections ){ // Now collect all the URLs const appUrls = await page.$$eval('div.main > ul.app-list > li > div.app-info a.app-info-icon', links => links.map(link => link.href)); // Visit each URL one by one and collect the data for (let appUrl of appUrls) { var count = i++; try{ await page.goto(appUrl); const appName = await page.$eval(

Web speech api not working currently in chromium / electron / nw js?

时光怂恿深爱的人放手 提交于 2019-12-10 14:57:53
问题 I have been creating a desktop application using electron, which uses the javascript web speech api. It was working perfectly until the last few weeks. Currently, it does not work. I tried using Nw js and I've also checked it in Chromium browser, where even the default Google's speech api demo site doesn't seem to work. But it is working perfectly in Google chrome browser. Is google revoking chromium from using the API? Is there any other option for me to use it in my desktop application. It

Run Chromium inside container: libGl error

ⅰ亾dé卋堺 提交于 2019-12-10 13:14:42
问题 I'm trying to run Chromium inside docker container. Here's the output I get: Created new window in existing browser session. libGL error: failed to open drm device: No such file or directory libGL error: failed to load driver: vmwgfx I've searched a lot on the internet about this issue but cannot find anything clear. Do you have any suggestions on how can I solve this problem ? Thank you in advance. 回答1: As Mark Wragg wrote in a comment; this guide from wiki.ros.org is pretty good It seems

Where is the Vibration API hiding in Chrome 23?

萝らか妹 提交于 2019-12-10 12:57:28
问题 According to a post on Peter Beverloo's blog, "The webkit prefix has been dropped from the Vibration API implementation as it reached Candidate Recommendation." In Firefox, the Vibration API can be found at navigator.vibrate (per the spec), not so in Chrome 23 - with or without the webkit prefix. I've tried enabling experimental javascript in chrome://flags but to no effect. Despite playing around in devtools and plenty of searching on the net, I'm still unable to locate this API. Where is it

Ways to capture incoming WebRTC video streams (client side)

為{幸葍}努か 提交于 2019-12-10 12:31:36
问题 I am currently looking to find a best way to store a incoming webrtc video streams. I am joining the videocall using webrtc (via chrome) and I would like to record every incoming video stream to from each participant to the browser. The solutions I am researching are: Intercept network packets coming to the browsers e.g. using Whireshark and then decode. Following this article: https://webrtchacks.com/video_replay/ Modifying a browser to store recording as a file e.g. by modifying Chromium

centos7.4环境配置selenium+python3+chrome环境

本秂侑毒 提交于 2019-12-10 12:13:07
在基于selenium进行的UI自动化测试中,开发调试环境一般都是windows操作系统。完成后需要部署到专门的测试环境。 如要要部署到linux环境的服务器(阿里云、腾讯云)执行,那么测试脚本也需要对应的浏览器支持, 才能正常进行测试。 這篇博客,介绍下如何在如何在linux环境安装python、chrome、chromium、Xvfb的命令和方法。。。 1、安装python linux系统自带python,不过一般都是2.6或者2.7版本,可以通过命令 python -V 查看当前的python版本号 如果你用的python3.0+的版本,那么就需要升级为本地开发对应的python版本,可以输入下面的命令来升级: 从下载链接下载安装包: wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz linux安装python3及pip3参考这篇博客 https://www.cnblogs.com/fcc-123/p/11586707.html 然后可以将刚刚下载的解压包和解压出来的文件夹删掉。安装成功后,可以输入 whereis python3 查看安装路径 输入python3,可以进入python命令行,输入print测试,然后就是pip命令安装自己需要的python库。 2、关于chrome