chromium

How does chrome establish the right character-encoding?

六眼飞鱼酱① 提交于 2019-12-14 03:49:59
问题 I've been working with a lot of charsets lately and I discovered a lot of issues when trying to establish the proper charset for a random web page. The charset can be set in the headers of the html document, or inside the <head> section, multiple times or sometimes the declaration is omitted. Despite these issues chrome dose a great job at setting the best charset every time. I've tried searching the sources but didn't manage to find anything as I don't know where to look. So my question is

OfflineAudioContext FFT analysis with chrome

北慕城南 提交于 2019-12-14 03:39:39
问题 i'm trying to build a waveform generator that get audiofile amplitudes values and display them to a canvas as quick as possible (faster than realtime) in javascript. so i use the OfflineAudioContext / webkitOfflineAudioContext , load the file and start the analyse. the waveform is to fill a wide canvas. i analyse buffer in a processor.onaudioprocess function. (i guess it's the way it works ?) it works fine in firefox but i've got an issue in chrome : it seems it "jumps" over much analyse to

Github上的几个C++开源项目

可紊 提交于 2019-12-14 03:29:47
Github上的几个C++开源项目 http://blog.csdn.net/fyifei0558/article/details/47001677 http://www.zhihu.com/question/28341521 有人吐槽怎么下手FreeNOS,上文档 FreeNOS: FreeNOS Documentation --更新-- 把平时关注的一些c++相关的github的project列下,欢迎补充。 1. FreeNOS lordsergioinspa/FreeNOS · GitHub 这是我在大学的时候,接触完整学习的第一个开源的C++项目,当时简直是,各种惊叹,里面有太多值得学习的地方。 这是一个用C++实现的微内核的 操作系统 ,各种宏内核中的服务作为一个独立的services在微内核中,基于消息的通信方式,这点其实跟mac内核中的mach那部分机制相似。 除了是一个操作系统的实现,另外从中也能很好的学习到OOP的设计方式,整个代码风格特别好,完全基于面相对象,还有一些常见的设计模式,在接触了这个开源项目之后,才了解,代码风格,注释,doxygen,scons,设计模式。 对于直接入手就啃 Linux kernel的同学,个人觉得会门槛有点高,身体还不是特别棒的时候,直接攀登珠穆拉玛还是有点吃力的,可以先找个黄山爬爬。 2. Chromium 向左向右

Selenium chromedriver exception when enumerating elements by xpath

帅比萌擦擦* 提交于 2019-12-14 02:46:52
问题 I'm trying to convert a Selenium script from Firefox to Chrome. The code works as expected with Firefox and geckodriver on x86_64. geckodriver does not support ARM well so I am attempting to move to Chrome. Chromium and chromedriver is causing an exception when using driver.find_elements_by_xpath('//*[@id]') . The exception is selenium.common.exceptions.WebDriverException: Message: chrome not reachable . What is the problem and how do I fix it? Here is the test program. $ cat test.py #!/usr

Chrome does not display suitable srcset picture

陌路散爱 提交于 2019-12-14 02:31:20
问题 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 734px or less viewport width and 1054px picture at 735px or more. It works fine with Firefox (enabling srcset in config). Why Chrome displays 512px picture when viewport width is higher than 512px ? body {

Building Yocto image for DragonBoard 410c, how to build Chromium

烂漫一生 提交于 2019-12-14 02:14:39
问题 How to generate an image with Sato and Chromium for the DragonBoard 410c? Starting from the qcom-oe-manifest referred in the Dragonboard-410c-OpenEmbedded-and-Yocto documentation What is the correct/proper way to add Sato desktop and Chromium to this base config? What's I have done: Added x11-base x11-sato to IMAGE_FEATURES Added chromium alsa-utils lsb to CORE_IMAGE_BASE_INSTALL my-image.bb /oe-qcom-yocto/sources$ more ./meta-rpb/recipes-samples/images/my-image.bb SUMMARY = "Basic console

React Remote Console Logging

ぐ巨炮叔叔 提交于 2019-12-14 01:09:28
问题 I setup an Express Server with Mongo to record console logs during debug testing of an Electron app using React. I simply use ajax to send what I would normally print with console.log. This works fine with individual events I want logged, but how do I export the entire chrome style console as an object so that anything that would reach the console (example: webpack messages, messages from other components etc) would all be accessible as one object that I can do a POST on. Basically a way to

How to change Chromium configs through extension

二次信任 提交于 2019-12-13 23:38:55
问题 I need some advice about Chromium extension possibilities. Can the extension change configs of the browser such as: home page, default behavior for protocol handlers (tel, mailto), security settings ("protect from dangerous websites" for example), disable sending statistics to Google, etc.? Which configs from chrome://settings/ can be changed and how to do it if it's possible? 回答1: The Chrome API index is a good place to start. From it, you can glean the following capabilities:

Atom Electron - Detect Dev Tools ready

天大地大妈咪最大 提交于 2019-12-13 18:56:35
问题 This issue relates to Chromium/Node.js (Atom Electron, Node Webkit, etc) based apps and not Chrome browser based apps. When debugging the boot code of a program that uses Chromium and Node.js, there is a significant delay between the time that Dev Tools is invoked and it actually starts up fully, including the ability to execute break points. This means that in order to debug boot logic of an app, which occurs immediately after Dev Tools is invoked, inserted or stored breakpoints don't fire

NullPointerException org.chromium.android_webview.AwContents$AwViewMethodsImpl.onDragEvent

久未见 提交于 2019-12-13 15:41:41
问题 about 10 days ago, my app started to record this exception (seen on dev console): java.lang.NullPointerException: at org.chromium.android_webview.AwContents$AwViewMethodsImpl.onDragEvent (AwContents.java:191) at com.android.webview.chromium.WebViewChromium.onDragEvent (WebViewChromium.java:782) at android.webkit.WebView.onDragEvent (WebView.java:2554) at android.view.View.dispatchDragEvent (View.java:22202) at android.view.ViewGroup.dispatchDragEvent (ViewGroup.java:1431) at android.view