google-chrome

Chrome App fails to communicate with native host on windows

若如初见. 提交于 2021-02-07 14:54:18
问题 I have written a chrome app and a native messaging host in Java. The combo works fine on linux. However when I try to port the combo to windows the communication can not be established. The jar where the host is contained is exactly the same as the linux variant. I am using the following script (start.bat) to start the Java host: @echo off java -jar "%~dp0theHost.jar" The json manifest is as follows: { "name": "com.service.host", "description": "Native messaging host", "path": "start.bat",

How can I call functions defined in a Chrome Extension from regular websites?

一笑奈何 提交于 2021-02-07 14:15:58
问题 I'd like to make a website that is not part of the chrome plugin but rather just uses some API that the plugin exposes to it. Is this possible and if so, how do I do it? I googled this question and was unable to find anything. I'm trying to use content scripts but nothing happens. Can someone explain what's wrong here? manifest.json { "manifest_version": 2, "name": "Hello World Extension", "description": "This extension prints hello world.", "version": "1.0", "background": { "page":

Erroneous table border displays in Chrome only **Confirmed Bug**

社会主义新天地 提交于 2021-02-07 13:26:59
问题 I have an issue that seems to be isolated to Chrome...which is usually NOT the way it goes. However, I have recreated the issue as purely as possible in the following plunkr. http://plnkr.co/edit/k0viyc To illustrate the problem, here is an image that displays the border in the highlighted row in Chrome and how it isn't showing in IE. If you remove either of the following rows: <tr class="spacer"> <td colspan="14" class="noBorder noBackground"> *** By removing this row, the extended border

How to get a list of all loaded CSS classes in Google Chrome?

丶灬走出姿态 提交于 2021-02-07 12:32:26
问题 Sometimes I need to print a list of CSS classes to find an appropriate one. The most suitable for me would be a function like in JS console: JS class list is loaded and filtered when you are typing. So for example if I need to remember an image class I'm typing "Img" and then a list of image classes is loaded ("ImgFolder", "ImgPencil" ...). 回答1: var allTags = document.body.getElementsByTagName('*'); var classNames = {}; for (var tg = 0; tg< allTags.length; tg++) { var tag = allTags[tg]; if

Are SVG fonts still working in Google Chrome?

冷暖自知 提交于 2021-02-07 12:29:18
问题 I have been redesigning a website for a while on and off, but for the last 6 months I've been out of the loop so to speak and may have missed something important regarding svg fonts no longer working with chrome? Here is a snippet of one of my stylesheets: @media screen and (-webkit-min-device-pixel-ratio:0) { @font-face { font-family: 'NewFont'; src: url("newfont-webfont.svg#NewFont") format("svg"); }} I've replaced the SVG with my WOFF version and the fonts look just about OK, however the

is Google Chrome <input /> Auto fill background color changed in Version 72.0?

▼魔方 西西 提交于 2021-02-07 12:01:05
问题 I Recently Noticed in Google Chrome it is showing blue color background for all inputs elements which are auto filled values 回答1: Yes Google changed the background color of the autofill preview to GoogleBlue50 . You can find the issue here: https://bugs.chromium.org/p/chromium/issues/detail?id=935991 Since Google Chrome 72 the new autofill color is #E8F0FE / rgb(232, 240, 254) . Until Google Chrome 72 the autofill fields were colored with #FAFFBD / rgb(250, 255, 189) : input { border: 1px

about:blank#blocked on <a href=“file:///XXX”>Link</a> (Markdown Page)

夙愿已清 提交于 2021-02-07 11:54:34
问题 In a Markdown Page (Microsoft TFS Wiki) I try crate A tag for file link: <a href="file:///C:/temp\file.txt">file.txt</a> On click (Chrome), I got about:blank#blocked 回答1: It's not a Chrome-specific issue with protocol file: , Opera and Firefox display blank page too. When I want to browse HTML files on my localhost, I have to access them via protocol http: instead. For instance when I want to see C:\temp\file.html in Chrome, I will make a virtual directory in my local Apache host:

How does Google Sheets override browser shortcuts?

我与影子孤独终老i 提交于 2021-02-07 10:53:48
问题 I'm creating a complicated in-browser app and I'd like to use some keyboard shortcuts that are currently used by Chrome and/or the other major browsers. I searched online and couldn't find a way to override browser shortcuts, but I saw that Google Sheets has just the kind of functionality I want: a user can select an option to override browser shortcuts. How does Google sheets make this work? Update: To clarify, since this has gotten some downvotes: I'm aware of event.preventDefault(). The

Drawing a SVG with d3.js while tab is in background

流过昼夜 提交于 2021-02-07 10:27:00
问题 Context : I am working on a webapp that has to display some fairly complicated and constantly updating (multiple times per second) SVG images. The updates stem from a seperate server and the SVG is updates as soon as an update is received by the web frontend. The webapp is written in Scala.js and the image is created using the d3js library (see also: scala-js-d3). We currently only support Google Chrome. Problem : Once the webapp has been in a background tab for a while, the whole site gets

Drawing a SVG with d3.js while tab is in background

社会主义新天地 提交于 2021-02-07 10:26:22
问题 Context : I am working on a webapp that has to display some fairly complicated and constantly updating (multiple times per second) SVG images. The updates stem from a seperate server and the SVG is updates as soon as an update is received by the web frontend. The webapp is written in Scala.js and the image is created using the d3js library (see also: scala-js-d3). We currently only support Google Chrome. Problem : Once the webapp has been in a background tab for a while, the whole site gets