google-chrome

Error “ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY” in Google Chrome while accessing locally hosted SPA

江枫思渺然 提交于 2021-01-29 20:19:18
问题 I've a locally hosted SPA. It is using a self signed certificate for HTTPS communication (generated through Server Certificates in windows 10). It works well with IE11, however when accessed from Google Chrome, shows up error - ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY. Any clues on what could be done to overcome this? Troubleshooting done so far: 1. Custom cipher suites order. 2. Disabling HTTP2 through windows registry. 回答1: To use HTTP/2 you must be using TLSv1.2 and cannot use a number of

How to apply mask in pixijs container that will not show it's color at page refresh?

旧巷老猫 提交于 2021-01-29 18:01:48
问题 I'm using the code below to apply a mask in a container, but after I click the refresh button on page (chrome) the pixi stage becomes completely white until the refresh completes. Do you know how to fix that? let mask = new PIXI.Sprite(PIXI.Texture.WHITE); mask.x = maskX; mask.y = maskY; mask.width = maskWidth; mask.height = maskHeight; container.addChild(mask); container.mask = mask; 回答1: The mask shouldn't be a child of the container. You're creating a sprite, adding it as a visible child,

<all_urls> get changed into \u003Call_urls> when uploading to the Chrome store

﹥>﹥吖頭↗ 提交于 2021-01-29 16:23:56
问题 I have an extension that works well on my local, the manifest has those configuration: "background": { "scripts": [ "js/tabCapture.js", "js/main.js" ], "persistent": false }, "permissions": [ "desktopCapture", "tabs", "activeTab", "<all_urls>", "identity" ], However, when uploading to Chrome store (successfully), I tried installing it but it didn't work any more. I checked the Extension tab and see no background page for my extension. Upon further investigation, I tried loading the extension

Scheduled trigger of chrome extension app

試著忘記壹切 提交于 2021-01-29 15:50:18
问题 I'm trying to find a way to implement: - this code using python - schedule a timed trigger - select a tab on the google chrome I've copied and pasted the solution into my python just to test it but seem to be getting a URL error below, can someone help me understand why a variable is facing a syntax error? Here is my code: from selenium import webdriver from selenium.webdriver import ChromeOptions from Common_Methods.GenericMethods import * import pyautogui #<== need this to click on

Can Tampermonkey Userscript access Chrome API?

大憨熊 提交于 2021-01-29 14:13:44
问题 I am developing a userscript that requiers chrome object, but I can't access it. How to access to chrome object inside tampermonkey's userscript? Maybe, some permissions in manifest or what... 回答1: Refer to Chrome extension code vs Content scripts vs Injected scripts. Chrome extensions can access Chrome APIs and Tampermonkey is an extension. However, Tampermonkey must make a given API's functionality to a userscript via GM_ functions. If there is not a GM_ function for what you want, then you

No right click - open in new tab

橙三吉。 提交于 2021-01-29 13:01:04
问题 I right click this element in browser on Chrome, and my context menu is different to what is usually seen. I'm missing the open in new tab option. Is this correct? Why is it showing this versus the normal? is there a way to override this? 来源: https://stackoverflow.com/questions/60773118/no-right-click-open-in-new-tab

Padding changes when the browser is zoomed in or out

痴心易碎 提交于 2021-01-29 11:29:25
问题 I have a thumbnail image and another smaller image which overlaps the thumbnail image. But the padding changes for the smaller overlapping image as I zoom in and out and the problem exist only with the CHROME browser. Its working fine with IE and firefox. I tried using percentage to set the padding values for the smaller image but the problem still exist. Here are the images. This is the HTML <div class="car-item"> <div class=" car-image"> <img src="/~/media/images/thumb.ashx" alt="Image 1" /

Exact same CSS font taking more space in Safari

落花浮王杯 提交于 2021-01-29 11:21:10
问题 I'm using this CSS to style a div: #mainSection .mainArticle .text { width: 600px; margin-top: 0px; margin-left: 20px; line-height: 26px; color: white; float: left; font-family: 'Open Sans', sans-serif; font-size: 15px; } The image below shows the difference between Safari and Chrome: I can't tell why it's this different. The font looks 'bolder' in Chrome, yet each character takes an tiny bigger length in Safari, meaning it sticks on average less chars on each line. Because the div box size

Downloaded ChromeStandaloneSetup.exe with PowerShell is corrupt

偶尔善良 提交于 2021-01-29 11:10:37
问题 This is based on my previous question where I use the script in the accepted answer: https://stackoverflow.com/a/51933920/3737177 I manage to download the exe via a ps1 script, but it seems it is corrupt. If I compare it to a file downloaded through the browser they look the same. Same file version, same SHA, but the one downloaded with a script gets an error: If I try to execute it from the script ".\ChromeStandaloneSetup.exe /install" there is some more information, but this doesn't help

Alert Python Selenium, Chrome WebDriver: switch to alert doesn't work

心已入冬 提交于 2021-01-29 09:39:01
问题 Dismissing the alert doesn't work. I get an error every time, I'm using python and working with chrome webdriver. Passing login and password works fine. I would really appreciate some help:) Thanks:D from selenium import webdriver import time browser = webdriver.Chrome('My chromedriver path') a = 1 while a == 1: try: browser.get('https://www.facebook.com/') time.sleep(2) l = browser.find_element_by_id('email') l.send_keys('myphonenumber') l = browser.find_element_by_id('pass') l.send_keys(