chromium

Programatically open the URL in new tab in chromium browser using javascript

左心房为你撑大大i 提交于 2019-12-11 19:21:46
问题 I have a web application where I have four/five icons in the default page. On click of these icons i am redirecting to some URL in new tab of already opened chromium browser instance using javascript. Below is the javascript code snippet that I am using to launch the URL in new tab of already opened chromium browser instance. Here I am manually clicking the icon window.open(myURL, '_blank'); But the issue is when I am trying to open the same URL using the same code and programatically

ERR_SSL_SERVER_CERT_BAD_FORMAT in Chromium 6.3

泄露秘密 提交于 2019-12-11 17:37:50
问题 I am using my own CA and have created a certificate for the HTTPS server. I have installed the root CA certificate through this set of instructions and this set of instructions. The openssl s_client verifies the SSL certificate when I connect to my website and give it the CApath to /etc/ssl/certs/ But Chromium complains with a ERR_SSL_SERVER_CERT_BAD_FORMAT when I try to connect. I am currently lost as to how to see what specifically is causing Chromium to block my website. When I go into

Chrome extension: optional permissions without background page?

痞子三分冷 提交于 2019-12-11 15:16:42
问题 Is it possible to use optional_permissions in a chrome extension without a background page? I have an extension that doesn't currently have a background page, but I would like to add one, which requires a change to the ext's permissions. However, if I update the permissions, the ext will be disabled for my users until they accept the new permissions. I would like to add background as an optional permission so I can programatically ask the user to approve the permissions and not deactivate the

How to checkout and BUILD specific chromium tag/branch without download the FULL source code of all history?

馋奶兔 提交于 2019-12-11 13:46:36
问题 I don't want build master branch. Instead I would like to build a specific tag which the latest stable release as same as my Desktop Chrome. 回答1: This is probably the fastest way to fetch Chromium's source code. Suppose 59.0.3071.115 is the version of Chromium, you wish to build. You run this command: git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/59.0.3071.115:chromium_59.0.3071.115 If you don't want history to be fetched (faster fetching of Chromium source code):

What is “isForMainFrame” request in Android WebViewClient property meaning?

不羁的心 提交于 2019-12-11 13:19:39
问题 What is isForMainFrame meaning (android-21)? whether the request was made for the main frame. Will be false for iframes, for example. is not clear, since for the log below it returns false for main frame requests. Is it the same as isMainFrame in android-19? For "google.com" (which is immediately redirected to "google.ru" according to my locale) i'm getting the following log for android-19: 3068-3088 D/IoThreadClientInvocationHandler: isMainFrame=true for http://www.google.com/ 3068-3088 D

Does the chromeview project need to be built from source before attempting to use cordova-android-chromeview?

懵懂的女人 提交于 2019-12-11 12:59:20
问题 I am trying to build the example project on the cordova-android-chromeview project and I'm having a few issues. The most recent being that when deployed to the device, I receive the following runtime error: 04-25 10:29:29.593: D/CordovaActivity(1951): CordovaActivity.onCreate() 04-25 10:30:46.433: I/LibraryLoader(1951): loading: webviewchromium 04-25 10:30:46.443: D/dalvikvm(1951): Trying to load lib /data/app-lib/com.myapp.special-1/libwebviewchromium.so 0xb1d53778 04-25 10:30:46.443: D

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

ぃ、小莉子 提交于 2019-12-11 12:48:32
问题 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 get this result but nothing has succeeded so far. (stdin.write / put (PIPE) etc etc.). browser = sh.Command('uzbl-browser')(print_events=True, config='-', uri=current_browser_url, _bg=True) browser.process.stdin

Capture chrome tab without browse action

孤者浪人 提交于 2019-12-11 12:31:29
问题 I have a simple method which captures current tab, and it works only when this method triggered by click on extension button (i.e. browserAction). But when I use this method in setTimeout event it fails with following error: Unchecked runtime.lastError while running tabCapture.capture: Extension has not been invoked for the current page (see activeTab permission). Chrome pages cannot be captured. My simple capture method is: function captureTab() { var constraints = ... chrome.tabCapture

Multiple instances of PHP script won't load concurrently in the same browser from the same URL

假装没事ソ 提交于 2019-12-11 11:31:45
问题 I'm trying to get two instances of a php script to run concurrently. I have a script, 'test.php': <p><?php echo time(); ?> Sleeping...</p> <?php sleep(5); ?> <p><?php echo time(); ?> done</p> If I load the page in two browser tabs at the same time, I get this: 1446855680 Sleeping... 1446855685 done and this: 1446855686 Sleeping... 1446855691 done One instance blocks until the other loads. This happens on both Firefox and Chromium. If I make a second identical script, 'test2.php', or rewrite

how to add urls to Flash white list in puppeteer

耗尽温柔 提交于 2019-12-11 09:20:10
问题 I develop small crawler with puppeteer in Node.js. the target site has Flash contents, so I want to enable Flash in puppeteer. by default, puppeteer is unable to use Flash and white list of permitted sites is empty. I know how to enable Flash in puppeteer, but I don't know how to set white list. How to do that? Is there flag like this? const browser = await puppeteer.launch({ headless: false, args: [ '--ppapi-flash-path = {FLASH_PATH}', '--white-url = {TARGET_URL}' ] }); Or, is it only way to