google-chrome

jQuery Scroll delays (lags) on chrome but smooth on firefox

大城市里の小女人 提交于 2021-01-29 09:27:46
问题 I was trying to do full page animation without using any scrolling library, the scroll works fine and smooth on the firefox browser, but on Google Chrome scroll animation lags for a second for no reason. I thought this lag in chrome is because of the scrollTop jQuery Animate method, but I wasn't able to find any workaround. I have attached the whole code snippet, I would appreciate suggestions on how I can achieve a smooth scroll on chrome. (function ($) { let $htmlBody = $('html, body'); let

How do I store Chrome extension data securely?

与世无争的帅哥 提交于 2021-01-29 09:01:14
问题 Chrome extension documentation explicitly states that storage.sync data is not encrypted: "Confidential user information should not be stored! The storage area isn't encrypted." What is the recommended method to: 1) Save persistent data securely (ie, no loss from restarting browser or logging into Chrome on a different device) 2) Without transferring anything to my server (unnecessary in my case and want to give user full data control) 回答1: You can't - that's the thing. Google Chrome docs

Chrome only displaying some images as webp

◇◆丶佛笑我妖孽 提交于 2021-01-29 08:58:12
问题 I've been working on converting images on my website to Webp to improve performance. Typically I'm using the following HTML to display them: <picture> <source srcset="/img/about/image.webp" type="image/webp"> <source srcset="/img/about/image.jpg" type="image/jpeg"> <img src="/img/about/image.jpg" alt="alt text"> </picture> Using the Lighthouse auditing feature in Chrome's Dev Tools and in the pagespeed insights I keep getting told that image could be served in next-gen formats despite the

Selenium-Chromedriver test execution leaves scoped_dir* temp files which makes test execution on an internal website to return 500 error

天涯浪子 提交于 2021-01-29 08:07:16
问题 We have Selenium-C# automation tests running an internal web application that requires an Outh-2 Bearer token. When I run the tests, set of temp files named scope_dir are created. These files get deleted automatically for some tests. But at some time during the test execution, they just remain without being deleted. After, this point, I receive a 500 error response. I have tried the following: Chromedriver not deleting scoped* dir in temp folder after test is complete https://bugs.chromium

How to improve touchmove performance @Android/Chrome?

笑着哭i 提交于 2021-01-29 07:07:47
问题 I'm developing a custom drag UI using touch events. When there is a scrollbar on the page, Chrome Android touchmove performance is abysmal, the event will only fire a couple times per second which results in extremely jerky dragging. The problem won't reproduce when there is no scrollbar or when testing using Chrome devtools emulator. Adding touch-events: none; CSS property helps with the issue but also prevents native scrolling from happening inside the container so using this approach will

Chrome blocks download at second attempt

↘锁芯ラ 提交于 2021-01-29 07:04:47
问题 I have an anchor on my page with href set to a PDF file URL and download set to a string. With first attempt the file is downloaded ok but second time and consecutive attempts it doesn't work with the error "This site attempted to download multiple files automatically". When I try with firefox the download works every single time. What's going on here? 回答1: Setting -> advanced -> setting content -> Automatic downloads You have two options. Use the slider next to Do not allow any site to

Google JavaScript API - Chrome.printerProvider: Printer id format

▼魔方 西西 提交于 2021-01-29 06:20:58
问题 I trying to use chrome.printerProvider to make a printing extension. Can anyone give me an example about PrintInfo id ? I'm request print via network and I setting PrintInfo Id by printer address but it's not working. Here is my script: chrome.printerProvider.onGetPrintersRequested.addListener(function callback(resultCallback) { resultCallback([{ id: '192.16.1.18', // printer address name: 'My Printer', }]); }); or chrome.printerProvider.onGetPrintersRequested.addListener(function callback

How can I delete the _myapp_session cookie in Google Chrome Storage using a controller in Rails 6?

会有一股神秘感。 提交于 2021-01-29 06:19:19
问题 I'm using Rails 6, Devise for authentication and testing my app on Google Chrome. I can log in successfully. However when the user tries to log out by clicking on the Log Out button, it doesn't log out and only redirects to the home page. I have the application containerised using Docker and Docker Compose and I'm using PostgreSQL for the database, ElasticSearch for search and NGINX for the web server. This appears to be a caching or cookie issue. When I delete the _myapp_session cookie in

Android Chrome click after keyboard entry not working

时光毁灭记忆、已成空白 提交于 2021-01-29 06:13:55
问题 It's hard to capture this problem in a short title, but replicating the issue is dead simple: Code example <input type="text" style="width: 100%; border: 1px solid #ccc; padding: 10px;"/> <pre> Android Chrome: - Click the input field to open virtual keyboard - Type a character using said keybaord - Scroll down - Click the button Click is not registered :( Button is selected, keyboard just closes </pre> <button href="#" onclick="alert('clicked');" style="display: block; text-align: center;

“Not allowed to load local resource” error is seen while launching the chrome crash url

◇◆丶佛笑我妖孽 提交于 2021-01-29 05:12:26
问题 I want to crash the chrome url in a separate window for my application testing purpose, But the below piece of code gives me 'Not allowed to load local resource' error. Is there any way I can launch the chrome crash url through window.open without receiving the error ? Here is what I tried : <html> <head> <title>Sample Test</title> <script type="text/javascript"> function crashTest() { window.open("chrome://inducebrowsercrashforrealz", "windowInMyApp", "left=50, top=100, width=600, height=400