google-chrome

Redirect the Chrome extension popup.html page to a URL for Oauth

六眼飞鱼酱① 提交于 2021-02-10 15:40:44
问题 Is it possible to redirect the popup Html of a chrome extension to a remote URL? I'm looking into this scenario for the purpose of OAuth. When a user clicks on the "Login with FB" button, I want the Html page of the chrome extension to redirect to: https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri={redirect-uri} so that the user is prompted to log in. Is this the right approach to do authentication in a Chrome extension anyway? 回答1: Popups are very.. fragile. They are too

How to download XML files avoiding the popup This type of file may harm your computer through ChromeDriver and Chrome using Selenium in Python

别来无恙 提交于 2021-02-10 15:36:39
问题 I want to download a daily xml file from a supplier. I managed to login and click the link Accept Download to start the downloading using chromedriver. But I get the popup "This type of file may harm your computer". The MIME of the page is text/html, I am not sure if link is text/javascript I tried all suggested solutions with options like print('Starting..') prefs = { 'download.default_directory': 'C:\\Users\MainDesk\Downloads', 'download.prompt_for_download': False, 'download.extensions_to

How to download XML files avoiding the popup This type of file may harm your computer through ChromeDriver and Chrome using Selenium in Python

情到浓时终转凉″ 提交于 2021-02-10 15:36:04
问题 I want to download a daily xml file from a supplier. I managed to login and click the link Accept Download to start the downloading using chromedriver. But I get the popup "This type of file may harm your computer". The MIME of the page is text/html, I am not sure if link is text/javascript I tried all suggested solutions with options like print('Starting..') prefs = { 'download.default_directory': 'C:\\Users\MainDesk\Downloads', 'download.prompt_for_download': False, 'download.extensions_to

Generate RSA key pair with WebCrypto in Chromium

时间秒杀一切 提交于 2021-02-10 14:48:35
问题 The following code works in Firefox 76.0.1: "use strict" let RSAKeys (async () => { RSAKeys = await crypto.subtle.generateKey({ name: "RSA-OAEP", modulusLength: 3072, publicExponent: new Uint8Array([1, 0, 1]), hash: "SHA-256"}, true, // Chromium bug causes it to falsely complain that the array is empty. Sometimes adding "encrypt" helps. ["wrapKey"]) })() but in Chromium 80 I get: Uncaught (in promise) DOMException: Usages cannot be empty when creating a key. ["wrapKey"] clearly isn't an empty

Chrome is not letting HTTP hosted site to access Camera & Microphone

混江龙づ霸主 提交于 2021-02-10 11:57:23
问题 I'm using react-webcam to capture a selfie for an application. On localhost, react-webcam works perfectly whereas on HTTP hosted web server camera access is being denied by default on the Chrome. Is there any workaround for webcam access or any other npm plugin which can serve the purpose here. NOTE: HTTPS supported sites are allowed to access both the Camera & Microphone. Here, I'm left with only HTTP choice. 回答1: The react-webcam uses the getUserMedia API which specification states: When on

Chrome is not letting HTTP hosted site to access Camera & Microphone

送分小仙女□ 提交于 2021-02-10 11:56:50
问题 I'm using react-webcam to capture a selfie for an application. On localhost, react-webcam works perfectly whereas on HTTP hosted web server camera access is being denied by default on the Chrome. Is there any workaround for webcam access or any other npm plugin which can serve the purpose here. NOTE: HTTPS supported sites are allowed to access both the Camera & Microphone. Here, I'm left with only HTTP choice. 回答1: The react-webcam uses the getUserMedia API which specification states: When on

Requested texture size [0x0] is invalid. error when i am loading image in browser

我的未来我决定 提交于 2021-02-10 11:56:00
问题 Tensorflow.js error in browser while calling predict function I'm using Node.js to run the webapp. This is my scripts I have included and I'm running Node.js in Chrome and not able to solve the error. This project has 7 classes as output that is dense layer in output of shape 1x7. https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js https://code.jquery.com/jquery-3.3.1.slim.min.js This is my JavaScript

Requested texture size [0x0] is invalid. error when i am loading image in browser

会有一股神秘感。 提交于 2021-02-10 11:54:15
问题 Tensorflow.js error in browser while calling predict function I'm using Node.js to run the webapp. This is my scripts I have included and I'm running Node.js in Chrome and not able to solve the error. This project has 7 classes as output that is dense layer in output of shape 1x7. https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js https://code.jquery.com/jquery-3.3.1.slim.min.js This is my JavaScript

Requested texture size [0x0] is invalid. error when i am loading image in browser

北城以北 提交于 2021-02-10 11:53:33
问题 Tensorflow.js error in browser while calling predict function I'm using Node.js to run the webapp. This is my scripts I have included and I'm running Node.js in Chrome and not able to solve the error. This project has 7 classes as output that is dense layer in output of shape 1x7. https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js https://code.jquery.com/jquery-3.3.1.slim.min.js This is my JavaScript

How to change cursor for resizable textarea?

淺唱寂寞╮ 提交于 2021-02-10 09:26:30
问题 I have an HTML element textarea with defined CSS rule { resize: both } . In FF when the user mouse over the right bottom corner of textarea the cursor changed according to value of property resize , but in Chrome cursor doesn't change. Please open this example in FF and Chrome to check the difference. Is it a bug of Google Chrome and can I fix it with CSS on my side? Update I reported bug to Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=942017 Update 2 The bug was fixed in