FAQ Database Discussion Community


Running Chromium inside Docker - Gtk: cannot open display: :0

docker,x11,chromium
When I try to run chromium inside a docker container I see the following error: Gtk: cannot open display: :0 Dockerfile: (based on https://registry.hub.docker.com/u/jess/chromium/dockerfile) FROM debian:jessie # Install Chromium RUN sed -i.bak 's/jessie main/jessie main contrib non-free/g' /etc/apt/sources.list && \ apt-get update && apt-get install -y \ chromium \ chromium-l10n...

Why does my CSS property for a class not apply?

css,stylesheet,chromium
I created a table with a specific class= indicator to apply customized CSS properties while my stylesheet looks like: tr td, tr th.featured {  border: none; } tbody.featured { border-top: none; } However, while trying the stylesheets out in Chromium's page "inspector" they seem to work and apply fine...

WebRTC streams freeze after first frame

javascript,google-chrome,video-streaming,webrtc,chromium
Here's the deal, I've got a WebRTC 1 on 1 conversation using: SimpleWebRTC library CoTurn server Signaling server Everything seems to work fine, but there is one problem: Chrom* browsers display only first frame of the video and then the video freezes, as well as audio. Looking at the Chromium...

Chromium SVG image Nesting

jquery,image,google-chrome,svg,chromium
I am trying to append some image tags to an SVG element. In Firefox(38.0) it works fine, but in Chromium (Version 41.0.2272.76 Ubuntu 15.04 (64-bit)) it nests the elements, causing them not to work. function append_image(x, y, img) { var image = $('<image></image>'); image.attr('height', '60px'); image.attr('width', '54px'); image.attr('x', x); image.attr('y',...

Error when trying to compile chromium on Ubuntu 14.04

python,ubuntu,cross-compiling,chromium
I am following this link to compile Chromium Browser and I successfully walked through each step but I get the following error at the 17th step: gclient sync: mrgrj@mrgrj:~/chromium/buildhost/src$ gclient sync Syncing projects: 4% ( 3/72) src/chrome/tools/test/reference_build/chrome_linSyncing projects: 5% ( 4/72) src/sdch/open-vcdiff Syncing projects: 100% (75/75), done. ________ running '/usr/bin/python...

Android System WebView crashes Android apps! “Tombstones are disabled on JB MR2+ user builds”

android,google-chrome,xamarin,chromium
EDIT: It turns out it wasnt Chrome but Android System WebView. Several other users on Google Play Store have left responses such as Crashes apps without any error. Original post: Tonight my Chrome app updated (Android 5.0.2) and when I try to build my Xamarin Android app in DEBUG mode...

Proxy object in Chrome undefined

google-chrome,chromium,ecmascript-harmony
I wanted to experiment with the Proxy object that was introduced in EMCAScript 6 Flag chrome://flags/#enable-javascript-harmony enabled, chrome restarted I got the error that Proxy is not defined. Does anybody know more about the support for proxies in Chrome? Problem only with version Chrome/Chromium >= 39 Help somebody =(...

unable to set xhr.responseType using chrome 43 beta

javascript,google-chrome,xmlhttprequest,chromium
I have some request that I'm sending the server, and I'm setting the XMLHttpRequest object I created as follows: var xhr = new XMLHttpRequest(); xhr.responseType = "blob"; This works just fine on the current chrome 42 version, but when I try to run the same code on chrome 43 beta,...

“stroke-dasharray:x,y;” mess up svg path? (Chrome)

google-chrome,svg,d3.js,chromium,topojson
Works I generate svg paths via d3js. Either data() + mesh() or datum() + mesh() work. svg.append("g").attr("id","border") .attr("style", "fill: none; stroke:#646464;") .selectAll("path") .data([topojson.mesh(json, L0, function(a, b) { return a !== b; })]) .enter().append("path") .attr("d", path); or : //inland borders lines svg.append("g").attr("id","coast") .attr("style", "fill: none; stroke:#646464;") .append("path") .datum(topojson.mesh(json, json.objects.admin_0, function(a,b){return a===b;}))...

Google Cloud Messaging in dart

dart,google-chrome-app,chromium,chrome-gcm
I'm trying to connect to the Google Cloud Messaging with this code in dart senderIds.add("api-project-testid"); chrome.gcm.register(senderIds).then(registerCallback); but I have this error: Exception: Uncaught Error: Profile was not signed in. I think that the error arises from the fact that chromium is not connected with any account. Does anyone know how...

does the android webview version depends on the sdk or the device?

android,webview,sdk,android-5.0-lollipop,chromium
Android 5 is upgrading the WebView to Chromium 37. Does it mean I have to use the latest sdk for android 5 to enjoy the benefits, or the WebView will be automatically updated for the app once the user has been upgraded to android 5? What if I use android...

Java Chromium Embedded Framework (JCEF) save mhtml

java,chromium,chromium-embedded
Is there a way to save an mhtml/mht file using JCEF? Or generically with chromium? I need to save the page in one file. I suppose it possibile, but I didn't find a way. EDIT* I know that it is possibile using chrome using flags but I need to do...

Sending javascript code to a chrome app via the remote debug protocol

google-chrome,google-chrome-extension,google-chrome-devtools,remote-debugging,chromium
In the context of a unit test I need to send some code to the console of a chrome app I am developing. It's clear that I can do that from the chrome.debug API, but is there a way to do that from outside the browser?

Delphi: Getting error `Exception EOSError` when compile TChromium(dcef3)

delphi,chromium
I installed the latest Chromium Embbed version on XE6, did a test using demo guiclient and worked very well. But when I create a new app and put TChromium component receive this error: I did the tips on this question....

Building QtWebEngine for Raspberry Pi2 using Yocto Poky - vcos_platform_types.h: No such file or directory

chromium,raspberry-pi2,yocto,qt5.4,qtwebengine
Context NUC on Debian 7.8 for building my images with Yocto Yocto Poky REQUIREMENT Q5 QtWebEngine + QML plugins + SSH TARGET Raspberry Pi 2 Heavily inspired by this excellent tutorial for Raspberry Pi Yocto Poky fido branch mkdir -p ~/yocto/dl cd ~/yocto git clone -b fido git://git.yoctoproject.org/poky poky cd...

How to download an older branch of Chromium from Git using gclient?

git,chromium
I need to build an older version that still supports NPAPI to run the Java Plugin but I can't seem to find the correct syntax to pull it, here's my .glient which pulls the latest revision: solutions = [ { "managed": False, "name": "src", "url": "https://chromium.googlesource.com/chromium/src.git", "custom_deps": {}, "deps_file": ".DEPS.git",...

What does BASE_EXPORT in chromium sourcecode do?

c++,chromium
While studying the chromium source code I found that many classes are using a macro BASE_EXPORT defined in base_export.h which is supposed to decorate classes and functions for public use. I just can't wrap my head around this concept? Is this supposed to substitute the "classical" approach of having an...

How to integrate chromium browser project in Qt Creator in Ubuntu

c++,qt,ubuntu,chromium,chromium-embedded
I have managed to understand the structure of chromium browser and now I would like to use an IDE in order to make some changes for a personal project on a Ubuntu Trusty machine ( 14.04 ). It is already compiled and I just want to use an IDE to...

Extending HTMLCanvasElement in Custom Element issue

javascript,canvas,chromium,custom-element
I can not get a drawing context of a custom canvas element. var customCanvas = Object.create(HTMLCanvasElement.prototype), canvasConstructor = document.registerElement("custom-canvas", { prototype: customCanvas }), canvas = document.createElement("custom-canvas"), ctx = canvas.getContext("2d"); // Uncaught TypeError: Illegal invocation Is it a bug, omission or something else? P.S. I search for a solution for chromium-based...

Using fiddler to capture html when no proxy support in browser

html,webview,proxy,fiddler,chromium
I'm using the webview tag in chromium and I want to capture the html requests. Unfortunately webview does not support proxies. Is there any way I can just do a normal http request to fiddler at localhost:8888 and somehow put the real destination in the URL? Maybe something like http://localhost:8888?url=google.com?

FFMPEG H.264 encoding for HTML5 (and ultimately MPEG-DASH)

html5,google-chrome,video,ffmpeg,chromium
I want to convert an MP4 file to an MPEG-DASH video capable of being played through the DASH-IF HTML5 player on Chrome. I use FFMPEG and MP4Box (from GPAC) to transcode the video and then split it, and keep getting a MEDIA_ERR_SRC_NOT_SUPPORTED error on the JavaScript console. From the (very...

Tooltips' max-width not working in Firefox 38 but does in Chromium

html,css,firefox,chromium
I have a input's tooltip that I am trying to set a max-width, or basically "If the text is smaller than 300px, tooltip width should be the necessary to contain the element. If the text occupies more than 300px, line break and contain it." In this fiddle: http://jsfiddle.net/hrfz442d/11/ it works...

Chrome does not display suitable srcset picture

html,html5,google-chrome,chromium
I'm trying to use img srcset attribute with Chrome, but it does not display srcset suitable picture. I test it on Linux (Chromium 41) and Windows (Chrome 42) with two different 1x devices. I set up two pictures: 512px and 1054px wide pictures. But Chrome still displays 512px picture at...

How to use the methods in Electron

javascript,node.js,chromium,electron
On the Electron <webview> documentation there is a list of methods that you can use with the object. When I try to run any of the methods, none of them work. When I looked in inpect the properties of the <webview> element in the inspector, it says that its prototype...

Force Chrome cursor update when mouse-idling vanilla javascript

javascript,css,google-chrome,chromium
I have a similar issue as related in this link : https://code.google.com/p/chromium/issues/detail?id=26723 When new div appears and when mouse does not move, cursor is not updated in Chrome 40. The Chrome issue list some workarounds, but I don't get them to work with my code. There are also some stackoverflow...

Using Python to start a browser (Chromium) and change the url

python,linux,raspberry-pi,chromium
I am trying to write a script that makes it possible to change the url of an active process. So for instance, I am starting my browser using: browser = Popen(["chromium", "http://www.google.com"]) After an X interval I want to change the url of browser. I've tried allot of things to...

Chromium and Dart: “An error occurred loading file”

apache,dart,phpstorm,chromium
I'm trying to run some Dart templates from Stagehand. The 'ubersimplewebapp' app works. There's almost nothing to it. I've tried a couple of others and they don't. I'm currently trying to get 'webapp' to work. In install using PHPStorm and there are no errors. When I run it in the...