google-chrome

Set focus on iframe in Chrome

ぃ、小莉子 提交于 2021-02-07 08:19:47
问题 I have an iframe ( id: 'chat' ) with designMode='on' in Chrome. On Enter keypress event I call the function send() , which takes the iframe contents and writes it to a socket. My problem is that when clearing the iframe, I lose focus. How to do I set the focus so I can continue to type text in the iframe? function send(){ var $iframe = $('#chat'); var text = $iframe.contents().text() + "\n"; socket.send(text); // When this is done, the focus is lost // If commented, the focus will not be lost

Uniquely identify a duplicated Chrome tab

自作多情 提交于 2021-02-07 08:01:42
问题 I am currently using window.sessionStorage to store a uniquely generated session ID. This ID is passed to all ajax calls to the server and persists across page navigation and reloads. This seems to work perfectly for my target browsers, with one caveat: the duplicate tab functionality in Chrome. Duplicating the tab copies the session storage to the new tab. When the new tab loads and communicates with the server, it now has the same "unique" identifier as the duplicated target tab. Are there

Chrome 88 incorrect time zone sign

孤街醉人 提交于 2021-02-07 08:00:26
问题 Starting from about 20.01.2021, after the Chrome update to version 88.0, the time zone incorrectly processed in applications. When calling the Date() function, the time zone has a different sign (-07:00 instead of +07:00): After changing the time zone in the system and restarting the browser, the time zone is picked up correctly. After restarting the operating system, the problem returns. The problem is observed on Windows 7 and Windows 10. There is no such error in the Mozilla Firefox

Uniquely identify a duplicated Chrome tab

断了今生、忘了曾经 提交于 2021-02-07 07:58:40
问题 I am currently using window.sessionStorage to store a uniquely generated session ID. This ID is passed to all ajax calls to the server and persists across page navigation and reloads. This seems to work perfectly for my target browsers, with one caveat: the duplicate tab functionality in Chrome. Duplicating the tab copies the session storage to the new tab. When the new tab loads and communicates with the server, it now has the same "unique" identifier as the duplicated target tab. Are there

Chrome 88 incorrect time zone sign

穿精又带淫゛_ 提交于 2021-02-07 07:58:22
问题 Starting from about 20.01.2021, after the Chrome update to version 88.0, the time zone incorrectly processed in applications. When calling the Date() function, the time zone has a different sign (-07:00 instead of +07:00): After changing the time zone in the system and restarting the browser, the time zone is picked up correctly. After restarting the operating system, the problem returns. The problem is observed on Windows 7 and Windows 10. There is no such error in the Mozilla Firefox

JSON breaking back button in Chrome, Reload Button in IE (Showing as naked data)

会有一股神秘感。 提交于 2021-02-07 06:21:58
问题 Before Anything: $.getJSON back button showing JSON return data not the page did not help, as well as https://groups.google.com/group/angular/browse_thread/thread/3787ad609c0beb77/eb1b57069dab9f63 did not and the internet too did not help. Here's the issue: I'm calling an url from within a page to get json data, which then gets rendered with jquery templating inside this same page. Imagine we're on the page http://someurl.com/search and we're starting a request like this $.ajax({ url: '

Is there a way to tell Chrome password generator the website password policy?

让人想犯罪 __ 提交于 2021-02-07 05:58:05
问题 From my testing so far it appears that the Chrome password generator only generates passwords with uppercase letters, lowercase letters and numbers but doesn't appear to use special characters. If I am building a website that has a password policy that requires at least one special character is there a way to make chrome aware of this policy so that the password generator will generate a compliant password? 回答1: Yes. According to the Chromium design document for password generation it takes

Google Chrome input type=“date”

天涯浪子 提交于 2021-02-07 05:36:47
问题 I have almost no knowledge of web programming, but I have been tasked to solve something on my company's website. Apparently, I have an issue with browsers using HTML5 on a legacy site using type="date" and I need to find a way around it. My site has a lot of date fields that the user must input like such: <input type="date" name="DateStart" size="15" value="8/30/2011"> In every browser we currently use except Chrome, this works just fine. Chrome is the only browser that supplies rolling

What's the difference between “memory” and “memory footprint” fields on Chrome's task manager?

不羁的心 提交于 2021-02-07 04:57:35
问题 I'm using Chrome 64 and noticed that there's two fields called "memory" on Chrome's task manager. See the picture below: I can't find any explanation of the difference between these fields on Chrome, there's no tooltips available (at least not on macOS). The "memory footprint" field seems to be new, because I don't recall seeing it before yesterday. 回答1: In Chrome, the memory column represents Shared Memory + Private Memory. If you enable those two columns and add the numbers you will find

Chrome Dev Tools Elements Broken on Mobile Device Inspect

情到浓时终转凉″ 提交于 2021-02-07 04:17:50
问题 In Chrome (40.0.2214.28), Chromium, and Canary when inspecting a website on any phone you can not click on elements like you can when you're inspecting a desktop site. The only way to change what element you're inspecting in the DOM is with the arrow keys which takes way way way longer. Is there any way to fix Chrome to be able to inspect mobile devices correctly? 来源: https://stackoverflow.com/questions/27362228/chrome-dev-tools-elements-broken-on-mobile-device-inspect