chromium

chrome.runtime.sendMessage not working as expected

左心房为你撑大大i 提交于 2019-12-17 18:39:27
问题 I am writing a Chrome plugin with a content script and a background script, and I am trying to make the two communicate. In my content script, I am doing chrome.runtime.sendMessage({greeting: "hello"}, function(response) { console.log(response.farewell); }); and in my background script, I am doing chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { console.log(sender.tab ? "from a content script:" + sender.tab.url : "from the extension"); if (request.greeting ==

How to programmatically send a unix socket command to a system server autospawned by browser or convert JavaScript to C++ souce code for Chromium?

让人想犯罪 __ 提交于 2019-12-17 16:46:21
问题 Presently the implementation of the Web Speech API Specification by Chromium and Firefox does not support parsing Speech Synthesis Markup Language (SSML) when SSML is set at text property of SpeechSyntheisUtterance instance and passed to window.speechSynthesis.speak() call; see SSML parsing implementation at browsers; 5.2.3 SpeechSynthesisUtterance Attributes; How to set options of commands called by browser?. Chromium source code for the unix socket connect to speech-dispatcher connection

SVG translate seems to behave different in Chrome/Chromium

倾然丶 夕夏残阳落幕 提交于 2019-12-17 14:54:48
问题 https://jsfiddle.net/Lpfa9umq/ Code: <svg> <symbol> <circle id="circle1" cx="50" cy="50" r="20" stroke="black" stroke-width="1" /> <circle id="circle2" cx="25" cy="25" r="10" stroke="red" fill="red" stroke-width="1" /> </symbol> </svg> <svg width="100" height="100"> <use xlink:href="#circle1" /> <svg width="50" height="50" transform="translate(20, 10)"> <use xlink:href="#circle2" /> </svg> </svg> The transform attribute is applied in Firefox, but not in Chrome/Chromium, why? Am I using it

How to use webkitRequestFileSystem at file: protocol

混江龙づ霸主 提交于 2019-12-17 14:28:59
问题 According to Exploring the FileSystem APIs at Browser support & storage limitations You may need the --allow-file-access-from-files flag if you're debugging your app from file:// . Not using these flags will result in a SECURITY_ERR or QUOTA_EXCEEDED_ERR FileError. Launched chromium with --allow-file-access-from-files , --unlimited-storage and possibly deprecated --unlimited-quota-for-files ; also --unsafely-treat-insecure-origin-as-secure=file:///path/to/directory/* with --user-data-dir=

Chromium/Chrome headless - file download not working?

三世轮回 提交于 2019-12-17 09:42:02
问题 I downloaded the latest version of chromium, to test out the headless feature. When I run (as root, because I'm still testing things): ./chrome --no-sandbox http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip In the GUI terminal, it opens Chromium and downloads the file. If I'm trying to run it headless, I enter the following: ./chrome --no-sandbox --headless http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip The terminal outputs some information, no window gets opened, but

Chromium/Chrome headless - file download not working?

北城余情 提交于 2019-12-17 09:41:59
问题 I downloaded the latest version of chromium, to test out the headless feature. When I run (as root, because I'm still testing things): ./chrome --no-sandbox http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip In the GUI terminal, it opens Chromium and downloads the file. If I'm trying to run it headless, I enter the following: ./chrome --no-sandbox --headless http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip The terminal outputs some information, no window gets opened, but

How to integrate Chromium Embedded Framework (CEF) with java

社会主义新天地 提交于 2019-12-17 08:54:12
问题 I'd like to make a desktop application to let a website be browsed, I don't want to make a browser but a Browser embeded Application. I've tried with JavaFx but I've found some problems like missing support for plugins (eg: flash, pdf viewer, etc). After lots of search i found Chromium Embedded Framework (CEF) or JCEF Java wrapper for CEF but i don't know how to use it in java to start with.What are the dependencies?How i can start development (POC) using netbeans ? Is it possible to embed

Android 4.4 giving ERR_CACHE_MISS error in onReceivedError for WebView back

大憨熊 提交于 2019-12-17 07:22:04
问题 I have a webview in my Layout. By default, a search form is opened in it. On search, a listing section appears below the search form. If any link in the list is clicked, the details page opened. Now I want to controlled the back navigation for the webview. I placed this code in Activity. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { Log.d("TYPE", TYPE); WebView myWebView = null; if (TYPE.equalsIgnoreCase("REPORT_ACTIVITY")) myWebView = reportView; if (TYPE.equalsIgnoreCase

How to change chrome packaged app id Or Why do we need key field in the manifest.json?

我是研究僧i 提交于 2019-12-17 02:07:12
问题 I'm developing packaged app for chrome store using one-time chrome wallet payments. For my app I need to check during the runtime if user bought the app or not to decide should it be demo functionality or full functionality. According to the chrome identity API documentation : to keep application ID constant, You need to copy the key in the installed manifest.json to your source manifest. I have 2 questions about this procedure: 1) under what condition the id of my application may change? I

ElectronJs: HellowWorld application is not starting

99封情书 提交于 2019-12-14 04:00:42
问题 I have started with electron js hello world application first application with electron I am doing exactly what is instructed. Created 3 files main.js, index.html, package.json package.json { "name" : "your-app", "version" : "0.1.0", "main" : "main.js" } main.js const electron = require('electron'); // Module to control application life. const {app} = electron; // Module to create native browser window. const {BrowserWindow} = electron; // Keep a global reference of the window object, if you