chromium

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

佐手、 提交于 2019-12-11 07:14:15
问题 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==

Arial in Chrome

牧云@^-^@ 提交于 2019-12-11 06:13:32
问题 I have a problem with Arial (maybe other fonts too) in Chrome/Chromium. It looks good when I use font-family: Arial; But when I include Arial font-file via @font-face it looks different! Why could it be? What can I do to make them look the same? Where exactly Chrome takes its fonts? Here is my css @font-face { font-family: 'My Arial'; src: url(Arial.ttf) format('truetype'); font-weight: normal; font-style: normal; } body { padding: 20px; font-size: 16px; } body#native { font-family: Arial; }

display:table in <ul><li> to get vertical-align:middle of <a> item produces Chrome/Chromium issue?

烂漫一生 提交于 2019-12-11 05:36:02
问题 On a <nav> bar layout I used display: table on the parent <ul><li> item and display: table-cell on the child <a> item to be able to use vertical-align: middle on the <a> item. (Some items are multiline, so setting line-height is not a possibility). On Chrome/Chromium I get the whole <nav> bar 'shifting' to the right when I hover over menu items (only when they have children). This doesn't happen on Firefox. Load the jfiddle in both browsers and see: http://jsfiddle.net/qcQKP/2/ Does anyone

Puppeteer chrome allow multiple file download

爱⌒轻易说出口 提交于 2019-12-11 05:32:18
问题 I am trying scrape one site will multiple pdf files. But after downloading the first one, chrome asks me to allow the site to download multiple files. Can we allow this while launching the browser? This is the code which works once I allow manually and downloads all the files. for(selector of selectors){ await this.currentPage._client.send('Page.setDownloadBehavior', { behavior: 'allow', downloadPath: downloadFilePath }); await this.currentPage.waitFor(1000); await this.currentPage.evaluate

Chromium - mini_installer ignores branding

随声附和 提交于 2019-12-11 04:02:05
问题 After building chromium from source, you can create a "mini installer" for Windows by running ninja -C out\BuildFolder mini_installer This works fine and creates a mini_installer.exe in out\BuildFolder . see Chromium - How to make an actual installer out of mini_installer.exe for more details. But after running mini_installer.exe , the application ignores my branding and grd resource customizations. It is supposed to use "IDS_PRODUCT_NAME_BASE" which I have definitely customized. Here are the

Accessing Windows Authentication Web Page from Raspberry pi Browser

試著忘記壹切 提交于 2019-12-11 03:36:55
问题 We have a web page that we want to access from a raspberry pi, however the webpage in question is protected with windows authentication. Is there any way to pass this authentication across from the Raspberry pi? 回答1: Iceweasel is a port of Firefox which supports NTLM authentication on the Raspberry Pi. As far as I know, that's currently the only actively updated browser that retains the authentication throughout a session. 回答2: Chrome supports ntlm http auth scheme, you can read more about it

Electron enable touch events for a touch screen

﹥>﹥吖頭↗ 提交于 2019-12-11 01:47:07
问题 I have a Raspberry Pi connected to touchscreen and running an electron app on it through the startx command, # startx ./electron-app -- --nocursor the problem that I can't handle the touch events like (touchstart, touchend) and apparently that is because Electron (or chromium) not seeing the screen as a touch screen. 回答1: The problem is not that Electron/Blink isn't seeing the touchscreen / native touch events. There are two parts to the problem, as I understand it: You need to ensure you're

Android: URL.createObjectURL does not work properly (Failed to load because no supported source was found.)

╄→尐↘猪︶ㄣ 提交于 2019-12-11 01:13:09
问题 I am trying to play an audio file that has been stored in LocalForage of my Meteor Android App. LocalForage.getItem(track_id, (err, value)=>{ if(err) throw err; //the loaded value is an arraybuffer of an m4a file let blob = new Blob([value]); let url = (window.URL || window.webkitURL || window || {}).createObjectURL(blob); let testAudio = new Audio(url); testAudio.play().then(()=>{console.log("play successful")}).catch((err)=>{console.error(err)}); }); Before, I passed the url to an Instance

Failures during Chromium build on Ubuntu

和自甴很熟 提交于 2019-12-11 00:07:53
问题 I am trying to build unmodified Chromium following official instructions, but i am getting the following error, I tried reinstalling Ubuntu 8, 12 but no difference: [10/6591] ACTION Creating jsr_305_javalib jar FAILED: cd ../../third_party/jsr-305; python ../../build/android/jar.py "--classes-dir=../../out/Release/gen/jsr_305_javalib/classes" "--jar-path=../../out/Release/lib.java/jsr_305_javalib.jar" "--excluded-classes=\"*/R.class\" \"*/R##*.class\"" "--ignore

How to enable crypto.subtle for unsecure origins in Chrome?

假如想象 提交于 2019-12-11 00:07:33
问题 In Chrome 60, they added a feature that disables crypto.subtle for non-TLS connections. Our product needs to run a local server and forward some secure remote connections to localhost for security reasons. Because localhost isn't technically a named domain, we cannot use TLS--effectively making crypto.subtle unusable in Chrome (and chromium-based browsers like Opera), and forcing us to use a less secure shim like asmCrypto.js . Is there any way to tell Chrome to enable crypto.subtle through